/* Deal Listing */
/* Figma: EipWVj74Jb4Y7uuesQVW8T node-id=879:1182 (A) / 911:39214 (B) */
.ut-deal-listing {
    margin: var(--ut-spacing-lg) 0;
}

.ut-deal-listing__header {
    margin-bottom: var(--ut-spacing-sm); /* GT-483: 8px between title and text */
}

/* margin / font-size / font-weight were originally !important to beat
   style.css's `.entry .post-content h2/h3` typography — dropped
   post-nuke (style.css deleted in Phase 4). GT-483 stays the design
   value source. */
.ut-deal-listing__title {
    margin: 0;
    font-family: var(--ut-font-family, 'Poppins', sans-serif);
    font-size: var(--ut-font-size-xl); /* GT-483: 20px */
    font-weight: 700;
    line-height: var(--ut-line-height-lg); /* GT-483: 24px */
    color: var(--ut-blue-900);
    display: flex;
    align-items: center;
    gap: var(--ut-spacing-sm);
}

.ut-deal-listing__title-icon {
    flex: 0 0 auto;
    color: var(--icon-brand, var(--ut-orange-500));
    display: inline-flex;
}

.ut-deal-listing__title-icon svg {
    width: 24px;
    height: 24px;
    display: block;
}

.ut-deal-listing__intro {
    margin: var(--ut-spacing-sm) 0 0;
    font-family: var(--ut-font-family, 'Poppins', sans-serif);
    font-size: var(--ut-font-size-sm);
    color: var(--text-secondary-color);
    line-height: var(--ut-line-height-md);
}

.ut-deal-listing__group {
    border: 1px solid var(--border-default-primary, var(--ut-blue-20));
    border-radius: var(--ut-radius-2xl);
    margin-bottom: 12px;
    overflow: hidden;
    background: var(--background-accent-default);
}

.ut-deal-listing__group-header {
    display: flex;
    align-items: center;
    gap: var(--ut-spacing-md);
    padding: var(--ut-spacing-md) var(--ut-spacing-lg);
    background: var(--background-accent-default);
    cursor: pointer;
    user-select: none;
}

.ut-deal-listing__group-header-content {
    display: flex;
    flex-direction: column;
    gap: var(--ut-spacing-sm);
    flex: 1;
    min-width: 0;
}

.ut-deal-listing__airport {
    font-family: var(--ut-font-family, 'Poppins', sans-serif);
    font-weight: 700;
    font-size: var(--ut-font-size-md); /* GT-483: 16px */
    line-height: var(--ut-line-height-sm); /* GT-483: 20px */
    color: var(--ut-blue-900);
}

.ut-deal-listing__meta {
    display: flex;
    align-items: center;
    gap: 0;
    font-family: var(--ut-font-family, 'Poppins', sans-serif);
    font-size: var(--ut-font-size-sm);
    line-height: var(--ut-line-height-md);
    color: var(--text-primary-color);
    flex: 1;
}

.ut-deal-listing__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ut-blue-900);
}

.ut-deal-listing__meta-icon {
    flex: 0 0 auto;
    display: inline-flex;
    color: var(--icon-secondary);
}

.ut-deal-listing__meta-icon svg {
    width: 20px;
    height: 20px;
    display: block;
}

.ut-deal-listing__meta-separator {
    width: 1px;
    height: 14px;
    background: var(--button-bg-primary);
    margin: 0 12px;
    flex: 0 0 auto;
}

.ut-deal-listing__lowest-price {
    font-weight: 600;
    color: var(--ut-blue-900);
}

.ut-deal-listing__toggle {
    background: none;
    border: none;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--icon-brand, var(--ut-orange-500));
    flex: 0 0 auto;
}

.ut-deal-listing__toggle svg {
    width: 32px;
    height: 32px;
    display: block;
}

.ut-deal-listing__toggle:hover {
    opacity: 0.8;
}

.ut-deal-listing__deals {
    display: flex;
    flex-direction: column;
    gap: var(--ut-spacing-sm);
    padding: 0 var(--ut-spacing-lg);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.ut-deal-listing__deals[aria-hidden="false"] {
    max-height: 9999px;
    padding: var(--ut-spacing-sm) var(--ut-spacing-lg) var(--ut-spacing-lg);
}

.ut-deal-listing__deal {
    display: flex;
    align-items: center;
    gap: var(--ut-spacing-xl);  /* Figma: 32px between icon, info and button */
    padding: var(--ut-spacing-md);
    background: var(--ut-gray-50);
    border: 1px solid var(--border-default-primary, var(--ut-blue-20)); /* Figma: Border/Default/Primary */
    border-radius: var(--ut-radius-lg);
    transition: background 0.2s, border-radius 0.2s;
}

.ut-deal-listing__deal--lowest {
    background: #fff2e9;
    border-color: var(--border-default-primary, var(--ut-blue-20));
    border-radius: 14px;
}

.ut-deal-listing__deal:hover {
    background: var(--background-accent-muted);
    border-radius: 14px;
}

.ut-deal-listing__deal--lowest:hover {
    background: #fee5d3;
}

.ut-deal-listing__deal-icon {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--icon-secondary);
}

.ut-deal-listing__deal-icon svg {
    width: 32px;
    height: 32px;
    display: block;
}

.ut-deal-listing__lowest-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--ut-font-family, 'Poppins', sans-serif);
    font-size: var(--ut-font-size-sm);
    line-height: var(--ut-line-height-md);
    font-weight: 400;
    color: var(--ut-red-900);
}

.ut-deal-listing__lowest-label-icon {
    flex: 0 0 auto;
    display: inline-flex;
    color: var(--ut-red-900);
}

.ut-deal-listing__lowest-label-icon svg {
    width: 16px;
    height: 16px;
    display: block;
}

.ut-deal-listing__date {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: var(--ut-spacing-xs);
}

.ut-deal-listing__date-range {
    font-family: var(--ut-font-family, 'Poppins', sans-serif);
    font-weight: 500;
    font-size: var(--ut-font-size-sm);
    line-height: var(--ut-line-height-md);
    color: var(--text-primary-color);
}

.ut-deal-listing__date-label {
    font-family: var(--ut-font-family, 'Poppins', sans-serif);
    font-size: var(--ut-font-size-sm);
    line-height: var(--ut-line-height-md);
    color: var(--text-secondary-color);
}

.ut-deal-listing__price {
    flex: 0 0 auto;
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: var(--ut-spacing-xs);
}

.ut-deal-listing__price-value {
    font-family: var(--ut-font-family, 'Poppins', sans-serif);
    font-weight: 700;
    font-size: var(--ut-font-size-sm);
    line-height: var(--ut-line-height-md);
    color: var(--text-primary-color);
}

.ut-deal-listing__price-label {
    font-family: var(--ut-font-family, 'Poppins', sans-serif);
    font-size: var(--ut-font-size-sm);
    line-height: var(--ut-line-height-md);
    color: var(--text-secondary-color);
}

/* CTA Button — base styles in buttons.css (Primary M).
   Only layout-specific override here. */
.ut-deal-listing__cta {
    flex-shrink: 0;
}

/* wpautop wraps <button>/<a> in <p> — reset so it doesn't break flex layout */
.ut-deal-listing__deal > p {
    margin: 0;
    padding: 0;
    display: contents;
}

/* ================================================================== */
/*  Preview state: hide deals beyond limit, "show more" button        */
/* ================================================================== */

.ut-deal-listing__deal--hidden {
    display: none;
}

/* GT-367 (2026-06-16): when the lowest-price deal lives past the preview
   limit, it gets the `--promoted-lowest` class. The flex container is
   `flex-direction:column`, so a high `order` pushes the item to the bottom
   of the visible group — visually filling slot 5 in the collapsed state
   while the DOM stays date-sorted (so the expand handler can show items
   in pure date order with one line of JS). The 9999 is high enough that
   any item with the natural `order:0` stays before it.

   When the user clicks "Weitere Termine anzeigen", JS toggles
   `--all-visible` on the parent. That undoes the order push so the
   promoted-lowest returns to its natural date-sorted position in the
   fully-expanded list. */
.ut-deal-listing__deal--promoted-lowest {
    order: 9999;
}

/* The show-more wrapper lives inside the same flex container as the deals
   (flex-direction:column). Force it past the promoted-lowest's order so
   "Weitere Termine anzeigen" stays at the visual bottom of the group. */
.ut-deal-listing__show-more-wrapper {
    order: 99999;
    display: flex;
    justify-content: center;
    padding-top: var(--ut-spacing-sm);
}

.ut-deal-listing__deals--all-visible .ut-deal-listing__deal--promoted-lowest {
    order: 0;
}

/* Figma: outline button, 1.5px border #8182a1, pill shape, 16px font */
.ut-deal-listing__show-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--ut-spacing-xs);
    height: 44px;
    padding: var(--ut-spacing-sm) var(--ut-spacing-lg);
    border: 1.5px solid var(--button-default-tertiary, var(--button-default-tertiary));
    border-radius: var(--ut-radius-pill, 99px);
    background: transparent;
    font-family: var(--ut-font-family);
    font-size: var(--ut-font-size-md);
    font-weight: 600;
    line-height: var(--ut-line-height-lg);
    color: var(--button-default-primary, var(--ut-blue-900));
    cursor: pointer;
    white-space: nowrap;
    box-sizing: border-box;
    transition: background 0.2s, border-color 0.2s;
}

.ut-deal-listing__show-more:hover {
    background: var(--background-hover, #f0f2f8);
    border-color: var(--button-default-primary, var(--ut-blue-900));
}

.ut-deal-listing__show-more-icon {
    display: flex;
    align-items: center;
}

.ut-deal-listing__show-more-icon svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 1024px) {
    .ut-deal-listing__meta {
        flex-wrap: wrap;
    }
}

@media (max-width: 800px) {
    .ut-deal-listing__title {
        font-size: var(--ut-font-size-md);
        line-height: var(--ut-line-height-sm);
    }

    .ut-deal-listing__meta {
        flex-wrap: wrap;
        gap: var(--ut-spacing-sm);
    }

    .ut-deal-listing__meta-separator {
        display: none;
    }

    /* Mobile deal card: wrap so date+price stay in row, CTA goes below full-width */
    .ut-deal-listing__deal {
        flex-wrap: wrap;
        gap: var(--ut-spacing-sm);
    }

    .ut-deal-listing__deal-icon {
        display: none;
    }

    .ut-deal-listing__lowest-label {
        font-size: var(--ut-font-size-xs);
        line-height: var(--ut-line-height-sm);
        width: 100%; /* own row above date+price */
    }

    /* Date and price share a row on mobile */
    .ut-deal-listing__date {
        flex: 1 1 auto;
    }

    .ut-deal-listing__price {
        flex: 0 0 auto;
        text-align: right;
        flex-direction: column;
    }

    /* CTA: full width below date+price row (Figma: 310px card, full-width button)
       Note: wpautop wraps <button> in <p>, so target both the CTA and its <p> parent */
    .ut-deal-listing__deal p:has(> .ut-deal-listing__cta) {
        flex: 1 0 100%;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .ut-deal-listing__cta {
        display: flex !important;
        width: 100% !important;
        height: 40px;
        border-radius: var(--ut-radius-2xl);
        justify-content: center;
    }

    /* Deal card: tighter padding + spacing (Figma: 310px wide cards) */
    .ut-deal-listing__deal-card {
        padding: 14px;
    }

    .ut-deal-listing__deals {
        gap: var(--ut-spacing-sm);
    }
}

/* ================================================================== */
/*  Combi Deal Overlay Modal (GT-468)                                   */
/* ================================================================== */

.ut-deal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.ut-deal-overlay[aria-hidden="false"] {
    display: flex;
}

.ut-deal-overlay__backdrop {
    position: absolute;
    inset: 0;
    background: rgb(5, 7, 69, 0.5);
}

.ut-deal-overlay__card,
.post-content .ut-deal-overlay__card {
    position: relative;
    background: var(--background-secondary, var(--ut-gray-50));
    border-radius: var(--ut-radius-xl, 16px);
    max-width: 560px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    padding: var(--ut-spacing-lg, 24px);
    box-shadow: 0 16px 48px rgb(5, 7, 69, 0.2);
    display: flex;
    flex-direction: column;
    gap: var(--ut-spacing-lg, 24px);
}

.ut-deal-overlay__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ut-deal-overlay__title,
.post-content .ut-deal-overlay__title,
.post-content h3.ut-deal-overlay__title {
    margin: 0;
    font-family: var(--ut-font-family);
    font-size: var(--ut-font-size-xl);
    font-weight: 700;
    line-height: 28px;
    color: var(--ut-blue-900, var(--ut-blue-900));
}

/* Figma: 16px SemiBold, rgba(5,7,69,0.9), line-height 24px */
.ut-deal-overlay__section-title,
.post-content .ut-deal-overlay__section-title,
.post-content h4.ut-deal-overlay__section-title {
    margin: 0;
    font-family: var(--ut-font-family);
    font-size: var(--ut-font-size-md);
    font-weight: 600;
    line-height: var(--ut-line-height-lg);
    color: var(--text-primary-color, rgb(5, 7, 69, 0.9));
}

.post-content .ut-deal-overlay__section-desc,
.post-content .ut-deal-overlay__info-text {
    margin: 0;
}

.ut-deal-overlay__close {
    background: none;
    border: none;
    font-size: var(--ut-font-size-xl);
    color: var(--ut-gray-500, var(--ut-gray-500));
    cursor: pointer;
    padding: 0;
    line-height: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ut-deal-overlay__close:hover {
    color: var(--ut-blue-900, var(--ut-blue-900));
}

.ut-deal-overlay__section {
    display: flex;
    flex-direction: column;
    gap: var(--ut-spacing-md, 16px);
}

.ut-deal-overlay__section + .ut-deal-overlay__section {
    border-top: 1px solid var(--border-default-primary, var(--ut-blue-20));
    padding-top: var(--ut-spacing-lg, 24px);
}

/* The deal-row + CTA together form the white bordered card per Figma */
.ut-deal-overlay__deal-card {
    display: flex;
    flex-direction: column;
    gap: var(--ut-spacing-md, 16px);
    padding: var(--ut-spacing-md, 16px);
    border: 1px solid var(--border-default-primary, var(--ut-blue-20));
    border-radius: var(--ut-radius-lg, 12px);
    background: var(--ut-gray-50);
}

.ut-deal-overlay__section-desc {
    margin: 0;
    font-family: var(--ut-font-family);
    font-size: var(--ut-font-size-sm);
    line-height: var(--ut-line-height-md);
    color: var(--text-secondary-color, rgb(5, 7, 69, 0.7));
}

.ut-deal-overlay__deal-row {
    display: flex;
    align-items: center;
    gap: var(--ut-spacing-md, 16px);
}

.ut-deal-overlay__date,
.ut-deal-overlay__provider,
.ut-deal-overlay__price {
    display: flex;
    flex-direction: column;
    gap: var(--ut-spacing-xs);
}

.ut-deal-overlay__date {
    flex: 1;
}

.ut-deal-overlay__date-range,
.ut-deal-overlay__provider-name,
.ut-deal-overlay__price-value {
    font-family: var(--ut-font-family);
    font-size: var(--ut-font-size-sm);
    font-weight: 500;
    color: var(--text-primary-color, rgb(5, 7, 69, 0.9));
}

.ut-deal-overlay__price-value {
    font-weight: 700;
    text-align: right;
}

.ut-deal-overlay__date-label,
.ut-deal-overlay__provider-label,
.ut-deal-overlay__price-label {
    font-family: var(--ut-font-family);
    font-size: var(--ut-font-size-sm);
    color: var(--text-secondary-color, rgb(5, 7, 69, 0.7));
}

.ut-deal-overlay__price-label {
    text-align: right;
}

/* wpautop wraps CTA in <p> — align the wrapper to the right */
.ut-deal-overlay__deal-card > p:has(.ut-deal-overlay__cta),
.ut-deal-overlay__deal-card > p:last-child {
    align-self: flex-end;
    margin: 0;
}

/* CTA button inside deal card — Figma: right-aligned, Size S (14px/22px, 8px 20px) */
.ut-deal-overlay__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--button-s-padding);
    border-radius: var(--button-radius);
    background: var(--button-bg-primary);
    color: var(--button-on-brand);
    font-family: var(--button-font-family);
    font-weight: var(--button-font-weight);
    font-size: var(--button-s-font-size);
    line-height: var(--button-s-line-height);
    text-decoration: none;
    transition: background 0.2s;
}

.ut-deal-overlay__cta:hover {
    background: var(--button-bg-primary-hover);
    color: var(--button-on-brand);
    text-decoration: none;
}

.ut-deal-overlay__cta:visited {
    color: var(--button-on-brand);
    text-decoration: none;
}

/* Secondary modal action: return to the full travel-date and airport list. */
.ut-deal-overlay__more-wrapper,
.post-content .ut-deal-overlay__more-wrapper {
    display: flex;
    justify-content: center;
}

/* wpautop may wrap the button when the rendered block passes through content filters. */
.ut-deal-overlay__more-wrapper > p {
    margin: 0;
}

.ut-deal-overlay__more-terms {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: var(--ut-spacing-sm, 8px) var(--ut-spacing-lg, 24px);
    border: 1.5px solid var(--button-default-tertiary, #8182a1);
    border-radius: var(--ut-radius-pill, 99px);
    background: transparent;
    color: var(--button-default-primary, var(--ut-blue-900));
    font-family: var(--ut-font-family);
    font-size: var(--ut-font-size-md);
    font-weight: 600;
    line-height: var(--ut-line-height-lg);
    text-align: center;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.ut-deal-overlay__more-terms:hover {
    background: var(--background-hover, #f0f2f8);
    border-color: var(--button-default-primary, var(--ut-blue-900));
}

@media (max-width: 800px) {
    .ut-deal-overlay {
        z-index: 99999;
    }

    .ut-deal-overlay__card {
        position: fixed;
        inset: 0;
        max-width: none;
        width: 100vw;
        height: 100vh;
        max-height: none;
        border-radius: 0;
        overflow-y: auto;
        z-index: 99999;
    }

    /* Mobile: button fills width per Figma */
    .ut-deal-overlay__cta {
        align-self: stretch;
        width: 100%;
    }
}

/* Overlay info box */
.ut-deal-overlay__info {
    display: flex;
    gap: var(--ut-spacing-md, 16px);
    padding: var(--ut-spacing-md, 16px);
    background: transparent;
    border: 1px solid var(--border-default-primary, var(--ut-blue-20));
    border-radius: var(--ut-radius-lg, 12px);
    align-items: flex-start;
}

.ut-deal-overlay__info-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 2px;
}

.ut-deal-overlay__info-text {
    margin: 0;
    font-family: var(--ut-font-family);
    font-size: var(--ut-font-size-sm);
    line-height: var(--ut-line-height-md);
    color: var(--text-secondary-color, rgb(5, 7, 69, 0.7));
}

/* ut_responsive overrides */
.ut-deal-listing .post-content p {
    margin: 0;
}

/* ================================================================== */
/*  Combi overlay redesign: wide desktop dialog + mobile bottom sheet */
/* ================================================================== */

.ut-deal-overlay {
    box-sizing: border-box;
    padding: 24px;
}

.ut-deal-overlay__backdrop {
    background: rgb(5 7 69 / 58%);
}

.ut-deal-overlay__card,
.post-content .ut-deal-overlay__card {
    box-sizing: border-box;
    width: min(600px, calc(100vw - 48px));
    max-width: 600px;
    min-height: 0;
    max-height: 85vh;
    padding: 32px 28px;
    border-radius: 18px;
    background: var(--background-secondary, #fff);
    box-shadow: 0 24px 72px rgb(5 7 69 / 28%);
    gap: 0;
    scrollbar-width: none;
}

.ut-deal-overlay__card::-webkit-scrollbar {
    display: none;
}

.ut-deal-overlay__header {
    position: relative;
    align-items: flex-start;
    padding-right: 38px;
    margin-bottom: 47px;
}

.ut-deal-overlay__header-main {
    display: flex;
    align-items: center;
    gap: 31px;
}

.ut-deal-overlay__thumbnail {
    flex: 0 0 100px;
    width: 100px;
    height: 100px;
}

.ut-deal-overlay__thumbnail-image,
.post-content img.ut-deal-overlay__thumbnail-image {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border-radius: 50%;
    object-fit: cover;
}

.ut-deal-overlay__header-copy {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Keep the desktop dialog visually proportional to the surrounding article typography. */
.ut-deal-overlay__title,
.post-content .ut-deal-overlay__title,
.post-content h3.ut-deal-overlay__title {
    font-size: 26px;
    line-height: 1.15;
    color: var(--ut-blue-900, #050745);
}

.ut-deal-overlay__subtitle,
.post-content .ut-deal-overlay__subtitle {
    margin: 0;
    font-family: var(--ut-font-family);
    font-size: 15px;
    line-height: 1.45;
    color: var(--text-secondary-color, rgb(5 7 69 / 70%));
}

.ut-deal-overlay__close {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-default-primary, var(--ut-blue-20));
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 14px rgb(5 7 69 / 12%);
}

.ut-deal-overlay__close svg {
    width: 26px;
    height: 26px;
}

.ut-deal-overlay__section {
    gap: 34px;
}

.ut-deal-overlay__section + .ut-deal-overlay__section {
    margin-top: 27px;
    padding-top: 24px;
}

.ut-deal-overlay__header + .ut-deal-overlay__section {
    gap: 34px;
}

.ut-deal-overlay__section-intro {
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.ut-deal-overlay__section-icon,
.ut-deal-overlay__calendar-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    color: var(--ut-blue-900, #050745);
    background: linear-gradient(145deg, #f8f8ff, #f0f1fb);
    border-radius: 20px;
}

.ut-deal-overlay__section-icon {
    width: 48px;
    height: 48px;
}

.ut-deal-overlay__section-icon svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

.ut-deal-overlay__section-icon--flight svg {
    transform: rotate(45deg);
}

.ut-deal-overlay__section-icon--hotel svg {
    fill: currentColor;
}

.ut-deal-overlay__section-copy {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 2px;
    max-width: 440px;
}

.ut-deal-overlay__section-title,
.post-content .ut-deal-overlay__section-title,
.post-content h4.ut-deal-overlay__section-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-primary-color, #050745);
}

.ut-deal-overlay__section-desc {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-secondary-color, rgb(5 7 69 / 70%));
}

.ut-deal-overlay__deal-card {
    display: grid;
    grid-template-columns: minmax(190px, 1fr) 1px max-content 160px;
    grid-template-areas: 'date separator price cta';
    align-items: center;
    column-gap: 16px;
    row-gap: 12px;
    min-height: 102px;
    padding: 14px 16px;
    border-radius: 16px;
    background: var(--ut-gray-50, #fff);
    box-sizing: border-box;
    margin: 0;
}

.ut-deal-overlay__date-group {
    grid-area: date;
    display: flex;
    align-items: center;
    gap: 18px;
}

.ut-deal-overlay__calendar-icon {
    width: 64px;
    height: 64px;
}

.ut-deal-overlay__calendar-icon svg {
    width: 30px;
    height: 30px;
}

.ut-deal-overlay__date,
.ut-deal-overlay__price {
    gap: 8px;
}

.ut-deal-overlay__date-range {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
}

.ut-deal-overlay__price-value {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.15;
    text-align: left;
    white-space: nowrap;
}

.ut-deal-overlay__date-label,
.ut-deal-overlay__price-label {
    font-size: 13px;
    line-height: 1.3;
    text-align: left;
}

.ut-deal-overlay__separator-cell,
.ut-deal-overlay__deal-card > p:has(.ut-deal-overlay__card-separator) {
    grid-area: separator;
    align-self: stretch;
    display: flex;
    justify-content: center;
    margin: 0;
}

.ut-deal-overlay__card-separator {
    display: block;
    align-self: stretch;
    width: 1px;
    min-height: 72px;
    height: 100%;
    background: var(--border-default-primary, var(--ut-blue-20));
}

.ut-deal-overlay__cta-cell,
.ut-deal-overlay__deal-card > p:has(.ut-deal-overlay__cta) {
    grid-area: cta;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin: 0;
}

.ut-deal-overlay__price {
    grid-area: price;
    align-items: flex-start;
    justify-self: start;
    min-width: 0;
    padding-left: 0;
    box-sizing: border-box;
}

.ut-deal-overlay__price .ut-deal-overlay__price-label,
.ut-deal-overlay__price .ut-deal-overlay__price-value {
    text-align: left;
}

.ut-deal-overlay__cta {
    grid-area: cta;
    justify-self: end;
    gap: 10px;
    min-width: 160px;
    width: 160px;
    min-height: 48px;
    padding: 10px 14px;
    border-radius: 999px;
    background: var(--button-bg-primary, #050745);
    color: var(--button-on-brand, #fff);
    font-weight: 600;
    font-size: 14px;
    line-height: 1.25;
    box-sizing: border-box;
    white-space: nowrap;
}

.ut-deal-overlay__cta svg {
    width: 22px;
    height: 22px;
}

.ut-deal-overlay__more-wrapper,
.post-content .ut-deal-overlay__more-wrapper {
    padding-top: 29px;
}

.ut-deal-overlay__more-terms {
    gap: 12px;
    width: min(388px, 100%);
    min-height: 48px;
    padding: 10px 24px;
    border: 2px solid var(--button-default-primary, var(--ut-blue-900));
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
    box-sizing: border-box;
}

.ut-deal-overlay__more-terms svg {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
}

@media (max-width: 800px) {
    .ut-deal-overlay {
        align-items: flex-start;
        padding: 10px 4px 0;
    }

    .ut-deal-overlay__card,
    .post-content .ut-deal-overlay__card {
        inset: 10px 4px 0;
        width: auto;
        height: auto;
        min-height: 0;
        max-height: calc(100vh - 10px);
        padding: 44px 20px 28px;
        border-radius: 24px 24px 0 0;
        gap: 22px;
    }

    .ut-deal-overlay__card::before {
        content: '';
        position: absolute;
        top: 14px;
        left: 50%;
        width: 64px;
        height: 6px;
        border-radius: 99px;
        background: #d9dae4;
        transform: translateX(-50%);
    }

    .ut-deal-overlay__header {
        padding-right: 38px;
        margin-bottom: 0;
    }

    .ut-deal-overlay__header-main {
        align-items: flex-start;
        gap: 18px;
    }

    .ut-deal-overlay__thumbnail {
        flex-basis: 84px;
        width: 84px;
        height: 84px;
    }

    .ut-deal-overlay__header-copy {
        gap: 10px;
        padding-top: 8px;
    }

    .ut-deal-overlay__title,
    .post-content .ut-deal-overlay__title,
    .post-content h3.ut-deal-overlay__title {
        font-size: 22px;
        line-height: 1.22;
    }

    .ut-deal-overlay__subtitle,
    .post-content .ut-deal-overlay__subtitle {
        font-size: 15px;
        line-height: 1.55;
    }

    .ut-deal-overlay__close {
        top: -10px;
        right: 0;
        width: 36px;
        height: 36px;
        border: 1px solid var(--border-default-primary, var(--ut-blue-20));
        border-radius: 50%;
        background: #fff;
        box-shadow: 0 4px 14px rgb(5 7 69 / 12%);
    }

    .ut-deal-overlay__close svg {
        width: 22px;
        height: 22px;
    }

    .ut-deal-overlay__section {
        gap: 18px;
    }

    .ut-deal-overlay__section + .ut-deal-overlay__section {
        margin-top: 0;
        padding-top: 20px;
    }

    .ut-deal-overlay__header + .ut-deal-overlay__section {
        gap: 18px;
    }

    .ut-deal-overlay__section-intro {
        gap: 18px;
    }

    .ut-deal-overlay__section-icon {
        width: 42px;
        height: 42px;
        border-radius: 13px;
    }

    .ut-deal-overlay__section-icon svg {
        width: 25px;
        height: 25px;
    }

    .ut-deal-overlay__section-copy {
        gap: 9px;
        padding-top: 4px;
        max-width: none;
    }

    .ut-deal-overlay__section-title,
    .post-content .ut-deal-overlay__section-title,
    .post-content h4.ut-deal-overlay__section-title {
        font-size: 18px;
        line-height: 1.3;
    }

    .ut-deal-overlay__section-desc {
        font-size: 13px;
        line-height: 1.65;
        letter-spacing: -0.03em;
    }

    .ut-deal-overlay__deal-card {
        grid-template-columns: 1fr auto;
        grid-template-areas:
            'date date'
            'separator separator'
            'price cta';
        gap: 15px 16px;
        min-height: 178px;
        padding: 16px 18px;
        border-radius: 18px;
        margin: 0;
    }

    .ut-deal-overlay__date-group {
        grid-area: date;
        gap: 20px;
    }

    .ut-deal-overlay__calendar-icon {
        width: 53px;
        height: 53px;
        border-radius: 16px;
    }

    .ut-deal-overlay__calendar-icon svg {
        width: 30px;
        height: 30px;
    }

    .ut-deal-overlay__date {
        gap: 6px;
    }

    .ut-deal-overlay__date-range {
        font-size: 20px;
    }

    .ut-deal-overlay__date-label,
    .ut-deal-overlay__price-label {
        font-size: 14px;
    }

    .ut-deal-overlay__card-separator {
        width: 100%;
        min-height: 1px;
        height: 1px;
    }

    .ut-deal-overlay__separator-cell,
    .ut-deal-overlay__deal-card > p:has(.ut-deal-overlay__card-separator) {
        grid-area: separator;
        width: 100%;
    }

    .ut-deal-overlay__price {
        grid-area: price;
        align-self: center;
        align-items: flex-start;
        gap: 7px;
        justify-self: start;
        padding-left: 0;
    }

    .ut-deal-overlay__price .ut-deal-overlay__price-label,
    .ut-deal-overlay__price .ut-deal-overlay__price-value {
        text-align: left;
    }

    .ut-deal-overlay__price-value {
        font-size: 22px;
    }

    .ut-deal-overlay__cta,
    .ut-deal-overlay__cta-cell,
    .ut-deal-overlay__deal-card > p:has(.ut-deal-overlay__cta) {
        grid-area: cta;
    }

    .ut-deal-overlay__cta {
        gap: 12px;
        min-width: 162px;
        width: auto;
        min-height: 42px;
        padding: 6px 14px;
        font-size: 15px;
    }

    .ut-deal-overlay__cta svg {
        width: 20px;
        height: 20px;
    }

    .ut-deal-overlay__more-wrapper {
        padding-top: 0;
    }

    .ut-deal-overlay__more-terms {
        gap: 12px;
        width: min(302px, 100%);
        min-height: 40px;
        padding: 8px 18px;
        border-width: 1.5px;
        font-size: 14px;
    }

    .ut-deal-overlay__more-terms svg {
        width: 24px;
        height: 24px;
    }
}
