/* DONE DEAL — Midea x FC Barcelona campaign */


.main-block {
    margin-top: 0;
    margin-bottom: 0;
}

footer {
    margin-top: 0;
}

.block-done-deal,
.block-done-deal-products,
.block-done-deal-film,
.block-done-deal-faq {
    --dd-navy: #00284c;
    --dd-ink: #00284c;
    --dd-blue: #0092d8;
    --dd-blue-2: #33a8e0;
    --dd-ice: #cce9f7;
    --dd-gold: #e9b949;
    --dd-white: #fff;
    --dd-grey: #808080;
    --dd-line: #e6e6e6;
    --dd-radius: 4px;
    --dd-wrap: 1240px;
    --dd-gap: clamp(16px, 3vw, 32px);
}

.block-done-deal {
    color: var(--dd-ink);
    background: var(--dd-white);
    line-height: 1.5;
    font-size: 16px;
    position: relative;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
}

.block-done-deal *,
.block-done-deal *::before,
.block-done-deal *::after {
    box-sizing: border-box;
}

.block-done-deal img,
.block-done-deal video {
    display: block;
    max-width: 100%;
}

.dd-wrap {
    max-width: var(--dd-wrap);
    margin-inline: auto;
    padding-inline: var(--dd-gap);
}

.dd-wrap-narrow {
    max-width: 860px;
}

.dd-eyebrow {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--dd-blue-2);
    margin-bottom: 12px;
}

.dd-h1 {
    font-size: clamp(32px, 4.6vw, 60px);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.dd-h2 {
    font-size: clamp(28px, 3.4vw, 44px);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.015em;
    margin-bottom: clamp(20px, 3vw, 36px);
}

.dd-lead {
    font-size: clamp(16px, 1.3vw, 18px);
    opacity: 0.82;
    max-width: 56ch;
}

.dd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 52px;
    padding: 14px 32px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.15s, background-color 0.2s, color 0.2s, box-shadow 0.2s;
    text-align: center;
}

.dd-btn:focus-visible {
    outline: 3px solid var(--dd-gold);
    outline-offset: 3px;
}

.dd-btn-primary {
    background: var(--dd-blue);
    color: var(--dd-white);
    box-shadow: rgba(0, 146, 216, 0.6) 0 8px 24px -8px;
}

.dd-btn-primary:hover {
    background: var(--dd-blue-2);
    color: var(--dd-white);
    transform: translateY(-1px);
}

.dd-btn-ghost {
    background: transparent;
    color: currentColor;
    border-color: currentColor;
}

.dd-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    color: currentColor;
}

.dd-btn-sm {
    min-height: 44px;
    padding: 10px 18px;
    font-size: 15px;
}

/* HERO */
.dd-hero-kv {
    display: block;
    background: var(--dd-navy);
}

.dd-hero-kv img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

@media (max-width: 1023px) {
    .dd-hero-kv img {
        aspect-ratio: 1 / 1;
    }
}

@media (max-width: 599px) {
    .dd-hero-kv img {
        aspect-ratio: 4 / 5;
    }
}

.dd-hero-panel {
    background: radial-gradient(120% 140% at 80% 0%, #0092d8 0%, var(--dd-navy) 60%);
    color: var(--dd-white);
    padding-block: clamp(40px, 6vw, 72px) 0;
    position: relative;
}

.dd-hero-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(40% 60% at 85% 10%, rgba(255, 255, 255, 0.14), transparent 70%);
    pointer-events: none;
}

.dd-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: var(--dd-gap);
    align-items: center;
    position: relative;
}

.dd-hero-copy {
    display: grid;
    gap: 18px;
}

.dd-hero-copy .dd-eyebrow {
    color: var(--dd-blue-2);
}

.dd-offer {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 10px;
    justify-self: start;
    background: var(--dd-gold);
    color: var(--dd-navy);
    font-weight: 700;
    font-size: clamp(16px, 1.35vw, 18px);
    line-height: 1.3;
    padding: 14px 22px;
    border-radius: var(--dd-radius);
    box-shadow: rgba(233, 185, 73, 0.85) 0 14px 34px -14px;
}

.dd-offer-pre {
    font-size: max(13px, 0.78em);
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.78;
}

.dd-offer-pct {
    font-size: clamp(30.4px, 3.6vw, 46.4px);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -0.035em;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.dd-offer-post {
    font-weight: 700;
}

.dd-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 6px;
}

.dd-countdown {
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(6px);
    border-radius: 8px;
    padding: 24px;
}

.dd-countdown-label {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.8;
    margin-bottom: 14px;
}

.dd-countdown-units {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.dd-countdown-units span {
    display: grid;
    justify-items: center;
    background: rgba(0, 40, 76, 0.6);
    border-radius: 6px;
    padding: 12px 4px;
}

.dd-countdown-units b {
    font-size: clamp(28px, 3vw, 40px);
    font-variant-numeric: tabular-nums;
    line-height: 1;
    font-weight: 800;
}

.dd-countdown-units small {
    font-size: 13px;
    opacity: 0.7;
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.dd-countdown.is-ended .dd-countdown-units {
    display: none;
}

.dd-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 32px;
    padding-block: 28px;
    margin-top: clamp(32px, 5vw, 56px);
    margin-bottom: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 15px;
    position: relative;
    list-style: none;
    padding-left: var(--dd-gap);
    padding-right: var(--dd-gap);
}

.dd-trust li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dd-trust li::before {
    content: "";
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--dd-blue-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat;
}

@media (max-width: 860px) {
    .dd-hero-grid {
        grid-template-columns: 1fr;
    }
}

/* PRODUCTS */
.block-done-deal-products {
    background: var(--dd-ice);
    padding-block: clamp(56px, 8vw, 112px);
}

.dd-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.dd-tabs .nav-link {
    font-weight: 600;
    font-size: 15px;
    min-height: 44px;
    padding: 8px 18px;
    border-radius: 999px;
    border: 1px solid var(--dd-line);
    background: var(--dd-white);
    color: var(--dd-ink);
    line-height: 1.4;
}

.dd-tabs .nav-link:hover {
    color: var(--dd-ink);
    background: #f5f5f5;
}

.dd-tabs .nav-link.active,
.dd-tabs .nav-link[aria-selected="true"] {
    background: var(--dd-ink);
    color: var(--dd-white);
    border-color: var(--dd-ink);
}

.dd-tabs .nav-link:focus-visible {
    outline: 3px solid var(--dd-blue);
    outline-offset: 2px;
    box-shadow: none;
}

.dd-card {
    background: var(--dd-white);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 1px 0 var(--dd-line);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

.dd-card:hover {
    transform: translateY(-4px);
    box-shadow: rgba(10, 35, 80, 0.35) 0 18px 40px -18px;
}

.dd-card-media {
    aspect-ratio: 1 / 1;
    background: linear-gradient(160deg, rgb(234, 246, 252), rgb(204, 233, 247));
    display: grid;
    place-items: center;
    position: relative;
}

.dd-card-placeholder {
    width: 42%;
    aspect-ratio: 3 / 4;
    border-radius: 6px;
    background: linear-gradient(rgb(77, 77, 77), rgb(26, 26, 26));
    box-shadow: rgba(0, 0, 0, 0.45) 0 20px 30px -14px;
}

.dd-card-badge {
    position: absolute;
    top: 14px;
    inset-inline-start: 14px;
    background: var(--dd-navy);
    color: var(--dd-white);
    font-weight: 800;
    font-size: 13px;
    padding: 6px 10px;
    border-radius: var(--dd-radius);
}

.dd-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1 1 0%;
}

.dd-card-sku {
    font-size: 13px;
    color: var(--dd-grey);
    letter-spacing: 0.04em;
}

.dd-card-name {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
}

.dd-card-spec {
    font-size: 15px;
    color: var(--dd-grey);
}

.dd-card-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 10px;
    margin-top: auto;
    padding-top: 12px;
}

.dd-card-now {
    font-size: 24px;
    font-weight: 800;
    color: var(--dd-ink);
}

.dd-card-was {
    font-size: 15px;
    color: var(--dd-grey);
    text-decoration: line-through;
}

.dd-card .dd-btn {
    margin-top: 14px;
    width: 100%;
}

/* FILM */
.block-done-deal-film {
    background: var(--dd-navy);
    color: var(--dd-white);
    position: relative;
    overflow: hidden;
    padding-block: clamp(56px, 8vw, 112px);
}

.block-done-deal-film::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -20%;
    width: 70%;
    aspect-ratio: 1 / 1;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(0, 146, 216, 0.28), transparent 60%);
    pointer-events: none;
}

.dd-film-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
    gap: clamp(24px, 5vw, 64px);
    align-items: center;
    position: relative;
}

.dd-film-copy {
    display: grid;
    gap: 18px;
    justify-items: start;
}

.dd-film-copy .dd-h2 {
    margin-bottom: 0;
    font-size: clamp(40px, 6vw, 72px);
}

.dd-film-copy .dd-eyebrow {
    color: var(--dd-blue-2);
}

.dd-film-player {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
    aspect-ratio: 16 / 9;
    box-shadow: rgba(0, 146, 216, 0.5) 0 30px 80px -30px;
}

.dd-film-player video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dd-film-play {
    position: absolute;
    inset: 0;
    border: 0;
    cursor: pointer;
    background: center / cover no-repeat url("../image/done-deal/key-visual-16x9.png");
    display: grid;
    place-items: center;
    padding: 0;
}

.dd-film-play::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(4, 18, 46, 0.55), rgba(4, 18, 46, 0.1));
}

.dd-film-play-icon {
    position: relative;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: var(--dd-white);
    box-shadow: rgba(255, 255, 255, 0.18) 0 0 0 12px;
    transition: transform 0.2s;
}

.dd-film-play-icon::after {
    content: "";
    position: absolute;
    left: 36px;
    top: 28px;
    border-left: 26px solid var(--dd-blue);
    border-top: 16px solid transparent;
    border-bottom: 16px solid transparent;
}

.dd-film-play:hover .dd-film-play-icon {
    transform: scale(1.08);
}

.dd-film-play:focus-visible {
    outline: 3px solid var(--dd-gold);
    outline-offset: -3px;
}

.dd-film-player.is-playing .dd-film-play {
    display: none;
}

@media (max-width: 860px) {
    .dd-film-grid {
        grid-template-columns: 1fr;
    }

    .dd-film-player {
        aspect-ratio: 9 / 16;
        max-height: 80vh;
        width: min(100%, 460px);
        justify-self: center;
        order: -1;
        background: center / cover no-repeat url("../image/done-deal/key-visual-9x16.png");
    }

    .dd-film-play {
        background-image: url("../image/done-deal/key-visual-9x16.png");
    }
}

/* FAQ */
.block-done-deal-faq {
    background: var(--dd-ice);
    padding-block: clamp(56px, 8vw, 112px);
}

.dd-accordion {
    --bs-accordion-border-color: transparent;
    --bs-accordion-bg: transparent;
    --bs-accordion-btn-bg: transparent;
    --bs-accordion-active-bg: transparent;
    --bs-accordion-btn-focus-box-shadow: none;
    --bs-accordion-btn-padding-x: 0;
    --bs-accordion-btn-padding-y: 20px;
    --bs-accordion-body-padding-x: 0;
    --bs-accordion-body-padding-y: 0 0 20px;
}

.dd-accordion .accordion-item {
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--dd-line);
    border-radius: 0;
}

.dd-accordion .accordion-button,
.dd-accordion .accordion-button:hover,
.dd-accordion .accordion-button:focus {
    font-weight: 700;
    font-size: 17px;
    color: var(--dd-ink);
    box-shadow: none;
    padding-left: 0;
    padding-right: 0;
    text-decoration: none;
}

.dd-accordion .accordion-button:not(.collapsed) {
    color: var(--dd-ink);
    box-shadow: none;
}

.dd-accordion .accordion-button::after {
    background-image: none;
    content: "+";
    font-size: 24px;
    line-height: 1;
    color: var(--dd-blue);
    width: auto;
    height: auto;
    transform: none;
    transition: transform 0.2s;
}

.dd-accordion .accordion-button:not(.collapsed)::after {
    background-image: none;
    content: "+";
    transform: rotate(45deg);
}

.dd-accordion .accordion-body {
    color: #4d4d4d;
    font-size: 16px;
    line-height: 1.6;
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 20px;
}

.dd-terms {
    margin-top: 24px;
    font-size: 15px;
}

.dd-terms a {
    color: var(--dd-blue);
    text-decoration: none;
}

.dd-terms a:hover {
    text-decoration: underline;
}

/* STICKY CTA */
.dd-sticky {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 50;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px var(--dd-gap) calc(12px + env(safe-area-inset-bottom));
    background: var(--dd-navy);
    color: var(--dd-white);
    transform: translateY(110%);
    transition: transform 0.3s;
}

.dd-sticky-offer {
    font-weight: 700;
    font-size: 14px;
    min-width: 0;
}

.dd-sticky-offer .dd-offer-pct {
    font-size: 21px;
    font-weight: 900;
    letter-spacing: -0.03em;
    vertical-align: -0.06em;
}

.dd-sticky.is-visible {
    transform: none;
}

@media (max-width: 767px) {
    .dd-sticky {
        display: flex;
    }
}

/* REVEAL */
.block-done-deal .dd-reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s, transform 0.6s;
}

.block-done-deal .dd-reveal.is-in {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .block-done-deal * {
        animation: none !important;
        transition: none !important;
    }

    .block-done-deal .dd-reveal {
        opacity: 1;
        transform: none;
    }
}

@media (max-height: 500px) and (orientation: landscape) {
    .dd-h1 {
        font-size: clamp(28px, 4vw, 40px);
    }

    .dd-film-player {
        aspect-ratio: 16 / 9;
        max-height: none;
        width: 100%;
    }
}
