/* December 2026 Camperisimo campaign banner (resources/views/partials/camper_banner.blade.php): homepage and promo zone */
/* Camperisimo banner after the benefits line: same look as the bonus product banner of the promo zone, static content */
.camper-banner-wrap {
    padding: 24px 0 4px;
    font-family: 'Sofia Sans Semi Condensed', Helvetica, sans-serif;
}
.camper-banner {
    position: relative;
    display: flex;
    flex-direction: column;
    container-type: inline-size;
}
.camper-banner__strip {
    display: none;
}
.camper-banner__main {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 28px 20px 60px;
    border-radius: 12px;
    background: linear-gradient(28deg, #0d2834 0%, #216481 97.7%);
    color: #fff;
    text-align: center;
}
.camper-banner__gift {
    width: 44px;
    height: auto;
}
.camper-banner__text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.camper-banner__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 20px;
    border-radius: 999px;
    background: rgba(110, 191, 194, .65);
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
}
.camper-banner__title {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.15;
}
.camper-banner__camper {
    position: relative;
    z-index: 2;
    --camper-width: min(300px, 80cqw);
    width: var(--camper-width);
    /* The picture has a transparent top: pull it up so the camper overlaps the bottom edge of the dark card */
    margin: calc(var(--camper-width) * -.42) auto calc(var(--camper-width) * -.2);
    aspect-ratio: 419 / 347;
    pointer-events: none;
}
.camper-banner__camper-image {
    position: absolute;
    inset: 0;
    overflow: hidden;
    transform: scaleX(-1);
}
.camper-banner__camper-image img {
    position: absolute;
    top: 0;
    left: -17.06%;
    width: 117.17%;
    height: 100%;
    max-width: none;
}
.camper-banner__logo {
    position: absolute;
    top: 50.7%;
    left: 64.9%;
    width: 20.8%;
    height: auto;
}
.camper-banner__terms {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    margin-top: -12px;
    padding: 34px 16px 16px;
    border-radius: 0 0 12px 12px;
    background: rgba(110, 191, 194, .3);
    color: #002a3c;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}
.camper-banner__terms a {
    color: #002a3c;
    text-decoration: underline;
}
.camper-banner__link {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: 12px;
}
@media (min-width: 992px) {
    /* Geometry of the Figma frame (1584 x 280 visible): percentages of the banner width, sizes in container units */
    .camper-banner {
        display: block;
        aspect-ratio: 1584 / 280;
        overflow: hidden;
    }
    .camper-banner__strip {
        display: block;
        position: absolute;
        top: 78.21%;
        right: 19.76%;
        bottom: 1.79%;
        left: 0;
        border-radius: 12px;
        background: rgba(110, 191, 194, .3);
    }
    .camper-banner__main {
        position: absolute;
        top: 38.57%;
        right: 7.89%;
        bottom: 14.29%;
        left: 0;
        flex-direction: row;
        justify-content: flex-start;
        gap: 0;
        padding: 0 0 0 9.91cqw;
        text-align: left;
    }
    .camper-banner__gift {
        position: absolute;
        top: 50%;
        left: 4.53%;
        width: 4.04cqw;
        transform: translateY(-50%);
    }
    .camper-banner__text {
        align-items: flex-start;
        gap: .95cqw;
    }
    .camper-banner__badge {
        min-height: 1.9cqw;
        padding: 0 2.5cqw;
        font-size: max(12px, 1.01cqw);
    }
    .camper-banner__title {
        font-size: 2.02cqw;
        white-space: nowrap;
        line-height: 2.15cqw;
    }
    .camper-banner__camper {
        position: absolute;
        top: 0;
        right: 0;
        left: 73.55%;
        width: auto;
        margin: 0;
    }
    .camper-banner__terms {
        position: absolute;
        top: 87.5%;
        right: 23.86%;
        left: 4.29%;
        flex-direction: row;
        justify-content: space-between;
        gap: 16px;
        height: 12.14%;
        margin: 0;
        padding: 0;
        border-radius: 0;
        background: none;
        font-size: max(11px, .884cqw);
        text-align: left;
    }
}

/* First block of the page (promo zone without a hero): the header is right above, so the space over the banner is smaller */
.camper-banner-wrap--first {
    padding-top: 16px;
}
@media (min-width: 992px) {
    /* The desktop frame has an empty top where the camper only pokes into: pull it up (and clip, so it never paints over the header) */
    .camper-banner-wrap--first {
        padding-top: 0px;
    }
    .camper-banner-wrap--first .camper-banner {
        margin-top: -64px;
        clip-path: inset(64px 0 0 0);
    }
}
