@import url('https://fonts.googleapis.com/css2?family=Alexandria:wght@400;500;600;700&display=swap');

:root {
    --d7-blue: #25adde;
    --d7-navy: #071c2c;
    --d7-gold: #d7b56d;
    --d7-mist: #f4f8fa;
}

.d7-offers,
.d7-offers * {
    box-sizing: border-box;
    font-family: 'Alexandria', sans-serif;
}

.d7-offers {
    width: 100vw;
    margin-inline: calc(50% - 50vw);
    padding: 54px max(20px, calc((100vw - 1240px) / 2)) 64px;
    background: var(--d7-mist);
    color: var(--d7-navy);
    overflow: hidden;
}

.d7-offers__heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.d7-offers__eyebrow {
    color: var(--d7-blue);
    font-size: 12px;
    font-weight: 600;
}

.d7-offers h2 {
    margin: 8px 0;
    font-size: clamp(26px, 4vw, 42px);
    line-height: 1.2;
}

.d7-offers__heading p {
    margin: 0;
    color: #61717b;
    font-size: 13px;
}

.d7-offers__hint,
.d7-offers__verified,
.d7-shorts__verified {
    border: 1px solid rgba(37, 173, 222, .3);
    border-radius: 999px;
    background: #fff;
    color: var(--d7-navy);
    font-size: 10px;
    padding: 9px 13px;
    white-space: nowrap;
}

.d7-offers__carousel {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: clamp(185px, 19vw, 235px);
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    padding-bottom: 10px;
}

.d7-offers__card {
    position: relative;
    height: 330px;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 24px;
    background: var(--d7-navy);
    color: #fff;
    cursor: pointer;
    scroll-snap-align: start;
    text-align: right;
    box-shadow: 0 18px 45px rgba(7, 28, 44, .15);
    transition: transform .25s ease, box-shadow .25s ease;
}

.d7-offers__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 55px rgba(7, 28, 44, .25);
}

.d7-offers__card img,
.d7-short > img,
.d7-short__media,
.d7-short__media video,
.d7-short__media iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.d7-short__media {
    position: absolute;
    inset: 0;
}

.d7-short__media iframe {
    border: 0;
}

.d7-offers__shade,
.d7-short__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, .08), transparent 35%, rgba(7, 28, 44, .95));
}

.d7-offers__verified {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(7, 28, 44, .88);
    color: #fff;
}

.d7-offers__play,
.d7-short__play {
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 50%;
    background: rgba(255, 255, 255, .86);
    color: var(--d7-navy);
    font-size: 20px;
}

.d7-offers__card-info {
    position: absolute;
    right: 16px;
    bottom: 17px;
    left: 16px;
    display: grid;
    gap: 5px;
}

.d7-offers__card-info strong {
    font-size: 17px;
}

.d7-offers__card-info span {
    font-size: 11px;
}

.d7-offers__card-info small {
    color: #d8e5eb;
    font-size: 10px;
}

.d7-shorts {
    position: fixed;
    z-index: 999999;
    inset: 0;
    display: none;
    background: #000;
}

.d7-shorts.is-open {
    display: block;
}

body.d7-shorts-open {
    overflow: hidden;
}

.d7-shorts__close {
    position: fixed;
    z-index: 5;
    top: 18px;
    left: 18px;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 50%;
    background: rgba(0, 0, 0, .45);
    color: #fff;
    cursor: pointer;
    font-size: 30px;
}

.d7-shorts__verified {
    position: fixed;
    z-index: 5;
    top: 20px;
    right: 20px;
    background: rgba(7, 28, 44, .82);
    color: #fff;
}

.d7-shorts__feed {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
}

.d7-short {
    position: relative;
    width: min(100%, 760px);
    height: 100vh;
    height: 100dvh;
    margin: auto;
    overflow: hidden;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    background: var(--d7-navy);
    color: #fff;
}

.d7-short__content {
    position: absolute;
    right: 18px;
    bottom: 24px;
    left: 18px;
    display: flex;
    align-items: end;
    gap: 18px;
}

.d7-short__details {
    flex: 1;
}

.d7-short__details strong {
    font-size: clamp(22px, 5vw, 32px);
}

.d7-short__details h3 {
    margin: 10px 0 5px;
    color: #fff;
    font-size: clamp(15px, 3vw, 20px);
}

.d7-short__details p {
    margin: 0 0 18px;
    color: #e2ebef;
    font-size: 11px;
}

.d7-short__primary {
    display: block;
    padding: 14px 18px;
    border-radius: 14px;
    background: #fff;
    color: var(--d7-navy) !important;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    text-decoration: none !important;
}

.d7-short__actions {
    display: grid;
    gap: 13px;
    width: 82px;
}

.d7-short__actions a,
.d7-short__actions button {
    display: grid;
    gap: 4px;
    justify-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff !important;
    cursor: pointer;
    font-size: 9px;
    text-align: center;
    text-decoration: none !important;
}

.d7-short__actions span {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 50%;
    background: rgba(0, 0, 0, .42);
    color: #fff;
    font-size: 21px;
}

.d7-short__actions [data-d7-ai] span {
    color: var(--d7-gold);
}

.d7-short__actions [data-d7-save].is-saved span {
    border-color: var(--d7-blue);
    color: var(--d7-blue);
}

.d7-ai-dialog {
    width: min(92vw, 520px);
    padding: 28px;
    border: 0;
    border-radius: 24px;
    background: var(--d7-navy);
    color: #fff;
    text-align: right;
}

.d7-ai-dialog::backdrop {
    background: rgba(0, 0, 0, .68);
}

.d7-ai-dialog > button {
    float: left;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
    font-size: 25px;
}

.d7-ai-dialog span {
    color: var(--d7-gold);
    font-size: 11px;
}

.d7-ai-dialog h3 {
    margin: 10px 0;
    color: #fff;
}

.d7-ai-dialog p {
    color: #d8e5eb;
    font-size: 11px;
}

.d7-ai-dialog form {
    display: grid;
    gap: 10px;
}

.d7-ai-dialog input,
.d7-ai-dialog form button {
    width: 100%;
    min-height: 48px;
    border: 0;
    border-radius: 12px;
    padding: 12px 14px;
}

.d7-ai-dialog form button {
    background: var(--d7-blue);
    color: #fff;
    cursor: pointer;
}

@media (max-width: 700px) {
    .d7-offers {
        padding-top: 38px;
        padding-bottom: 44px;
    }

    .d7-offers__heading {
        align-items: start;
    }

    .d7-offers__hint {
        display: none;
    }

    .d7-offers__carousel {
        grid-auto-columns: 68vw;
    }

    .d7-offers__card {
        height: 350px;
    }

    .d7-short__content {
        gap: 10px;
    }

    .d7-short__actions {
        width: 62px;
    }
}
