/* Modul Go4Taste Ads dla archiwow przepisow:
   slider produktow, promo card w gridzie oraz wspolne tokeny ads w archive-*.html. */

.g4t-archive-hero-shell {
    --g4t-ads-banner-width: 180px;
    --g4t-ads-banner-height: 299px;
}

.ingredient-archive {
    --g4t-ads-banner-width: 180px;
    --g4t-ads-banner-height: 299px;
    --g4t-ads-hero-column-width: 360px;
}

.g4t-ads-hero {
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-self: end;
    min-width: 0;
    width: min(100%, var(--g4t-ads-hero-column-width));
}

.g4t-ads-hero__head {
    margin-bottom: 12px;
}

.g4t-ads-hero__title {
    color: var(--c-meta);
    font-family: var(--font-head);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    line-height: 1.3;
    margin: 0;
    text-transform: uppercase;
}

.g4t-ads-hero__viewport {
    cursor: grab;
    overflow: hidden;
    user-select: none;
    width: var(--g4t-ads-banner-width);
}

.g4t-ads-hero__viewport:active {
    cursor: grabbing;
}

.g4t-ads-hero__track {
    display: grid;
    gap: 0;
    grid-auto-columns: var(--g4t-ads-banner-width);
    grid-auto-flow: column;
    list-style: none;
    margin: 0;
    padding: 0;
    transition: transform 280ms ease;
    will-change: transform;
}

.g4t-ads-hero .g4t-product-card {
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    height: var(--g4t-ads-banner-height);
    overflow: hidden;
    width: var(--g4t-ads-banner-width);
}

.g4t-ads-hero .g4t-product-card__figure {
    background: #ebebeb;
    flex: 0 0 var(--g4t-ads-banner-width);
    height: var(--g4t-ads-banner-width);
    margin-bottom: 0;
    overflow: hidden;
}

.g4t-ads-hero .g4t-product-card__link {
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
}

.g4t-ads-hero .g4t-product-card__image {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.g4t-ads-hero .g4t-product-card__info {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    padding: 13px 14px;
}

.g4t-ads-hero .g4t-product-card__top {
    flex: 1;
}

.g4t-ads-hero .g4t-product-card__title {
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.4;
    margin-bottom: 0;
}

.g4t-ads-hero .g4t-product-card__bottom {
    align-items: center;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 8px;
    justify-content: space-between;
    margin-top: 10px;
    padding-top: 10px;
}

.g4t-ads-hero .g4t-product-card__price {
    color: var(--c-heading);
    font-family: var(--font-head);
    font-size: 0.82rem;
    margin-bottom: 0;
}

.g4t-ads-hero .g4t-product-card__cta {
    align-items: center;
    background: transparent;
    border: 1px solid #515151;
    border-radius: 50%;
    color: #515151;
    display: flex;
    flex-shrink: 0;
    height: 32px;
    justify-content: center;
    letter-spacing: 0;
    padding: 0;
    text-transform: none;
    width: 32px;
}

.g4t-ads-hero .g4t-product-card__cta svg {
    height: 14px;
    width: 14px;
}

.g4t-ads-hero .g4t-product-card__link:hover .g4t-product-card__cta {
    background: var(--c-accent);
    border-color: var(--c-accent);
    color: #fff;
}

.g4t-ads-hero .g4t-product-card__link:hover .g4t-product-card__title {
    color: var(--c-heading);
}

.g4t-ads-hero__dots {
    align-items: center;
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 14px;
}

.g4t-ads-hero__dot {
    background: #8ebf79;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    height: 8px;
    padding: 0;
    transition: width 220ms ease, background-color 220ms ease;
    width: 8px;
}

.g4t-ads-hero__dot.is-active {
    background: var(--c-accent);
    width: 26px;
}

.g4t-ads-hero__dot:focus-visible {
    outline: 2px solid var(--c-accent);
    outline-offset: 2px;
}

.recipe-teaser-card--ad {
    border: 0;
    display: flex;
    grid-column: 3;
    grid-row: 1 / span 2;
    min-height: 100%;
}

.g4t-ads-in-grid {
    display: flex;
    flex: 1;
}

.g4t-ads-in-grid__surface {
    align-items: center;
    background:
        radial-gradient(circle at 50% 0%, rgba(61,122,31,.08) 0%, rgba(61,122,31,0) 55%),
        linear-gradient(180deg, #f8faf7 0%, #f2f6f0 100%);
    border: 1px solid #dbe7d4;
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    padding: 16px 10px 14px;
    position: relative;
}

.g4t-ads-in-grid__kicker {
    color: var(--c-accent);
    font-family: var(--font-head);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    margin: 0 0 8px;
    text-transform: uppercase;
}

.g4t-ads-in-grid .g4t-ads-hero {
    align-items: center;
    justify-self: center;
    width: 100%;
}

.g4t-ads-in-grid .g4t-ads-hero__head {
    margin-bottom: 10px;
}

.g4t-ads-in-grid .g4t-ads-hero__title {
    font-size: 0.68rem;
    letter-spacing: 0.14em;
}

@media (max-width: 1024px) {
    .recipe-teaser-card--ad {
        grid-column: auto;
        grid-row: auto;
    }
}

@media (max-width: 660px) {
    .g4t-ads-in-grid__surface {
        padding-left: 8px;
        padding-right: 8px;
    }
}

@media (max-width: 640px) {
    .g4t-ads-hero {
        justify-self: start;
        width: min(100%, var(--g4t-ads-hero-column-width));
    }

    .g4t-ads-hero__title {
        font-size: 0.74rem;
    }
}