﻿
/* inline styles scoped to the partial - CSS3 only */
.detty-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1400;
    background: rgba(2,6,23,0.45);
}

.detty-modal[aria-hidden="false"] {
    display: flex;
}

.detty-deals__inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 12px;
}


/* replace or add these rules (overrides existing .icon/.detty-card__features li rules) */
.detty-card__features li {
    display: flex;
    align-items: flex-start; /* keep top-aligned if you want icons at top, or use center to vertically center */
    gap: 10px;
}

/* ensure SVG icons keep a fixed size and never shrink */
.icon,
.feature-icon {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px;
    min-height: 22px;
    flex: 0 0 22px; /* no grow, no shrink, fixed basis */
    align-self: center; /* or center */
    display: inline-block;
    vertical-align: middle;
}

.detty-modal__backdrop {
    position: absolute;
    inset: 0;
    background: var(--detty-bg));
    background-size: cover;
    background-position: center;
    filter: saturate(.95) blur(0px);
    opacity: .95;
    z-index: 1;
}

.detty-modal__panel {
    position: relative;
    width: min(1020px,96%);
    max-height: 92vh;
    overflow: auto;
    border-radius: 12px;
    box-shadow: 0 24px 60px rgba(2,6,23,0.35);
    background: transparent;
    padding: 0;
    z-index: 2;
}

/* close button */
.detty-modal__close {
    position: absolute;
    right: 12px;
    top: 12px;
    z-index: 10;
    border: none;
    background: rgba(255,255,255,0.9);
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
}

    .detty-modal__close:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 18px rgba(2,6,23,0.15);
    }

.detty-deals {
    --card-radius: 10px;
    --detty-confetti-opacity: 0.28; /* change this value to control confetti transparency */
    position: relative;
    padding: 48px 28px;
    background-color: #ffffff; /* white base */
    border-radius: 10px;
    margin: 12px;
    overflow: hidden;
}

    /* background-image placed in a separate layer so we can fade it independently */
    .detty-deals::before {
        content: "";
        position: absolute;
        inset: 0;
        background-image: var(--detty-bg, url('/images/confetti.png'));
        background-repeat: no-repeat;
        background-position: center;
        background-size: cover;
        opacity: var(--detty-confetti-opacity);
        pointer-events: none;
        z-index: 0;
    }

/* keep confetti canvas above the image layer but below content */
.detty-confetti-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    mix-blend-mode: normal;
    /* if confetti is rendered on canvas, adjust canvas opacity here too */
    opacity: var(--detty-confetti-opacity);
}

/* ensure content sits above the decorative layers */
.detty-deals__inner {
    position: relative;
    z-index: 2;
}

/* header */
.detty-deals__header {
    text-align: center;
    margin-bottom: 50px;
    margin-top: 25px;
}

#benefitsTitle {
    font-family: 'Publico', 'Source Sans Pro', Arial, sans-serif;
}

.detty-deals__title {
    font-size: 34px;
    margin: 0 0 8px;
    font-weight: 800;
    color: #0b1220;
    font-family: 'Publico', 'Source Sans Pro', Arial, sans-serif;
}

.detty-deals__subtitle {
    color: #4b5563;
    margin: 0;
}

/* grid */
.detty-deals__cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 1fr)); /* min card width 260px */
    gap: 36px; /* increased spacing between cards */
    align-items: stretch; /* ensure grid items stretch vertically */
    grid-auto-rows: 1fr;
    justify-items: stretch;
}

/* card */
.detty-card {
    border-radius: var(--card-radius);
    padding: 14px 16px; /* reduced padding for slimmer card */
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 8px 20px rgba(2,6,23,0.06);
    transition: transform .18s ease, box-shadow .18s ease;
    eight: 100%;
}

    .detty-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 18px 36px rgba(2,6,23,0.12);
    }

/* accents */
.detty-card--accent-blue {
    background: linear-gradient(180deg,#3b76c6 0%,#2f66b2 100%);
    color: #fff;
}

.detty-card--accent-amber {
    background: linear-gradient(180deg,#b87348 0%,#9d6a4a 100%);
    color: #fff;
}

.detty-card--accent-maroon {
    background: linear-gradient(180deg,#91363b 0%,#7b2f33 100%);
    color: #fff;
}

/* card head */
.detty-card__head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
}

.detty-card__name {
    font-size: 18px;
    margin: 0;
}

.detty-card__price {
    font-size: 28px;
    display: flex;
    gap: 8px;
    align-items: baseline;
}

    .detty-card__price .currency {
        font-size: 28px;
        opacity: .95;
    }

    .detty-card__price small {
        font-size: 12px;
        opacity: .9;
    }

/* CTA */
.detty-card__cta {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 8px;
    background: rgba(255,255,255,0.95);
    color: #0b5e5e;
    text-decoration: none;
    text-align: center;
    font-weight: 700;
}

.detty-card--accent-blue .detty-card__cta {
    color: #2f66b2; /* matches blue accent */
}

.detty-card--accent-amber .detty-card__cta {
    color: #9d6a4a; /* matches amber accent */
}

.detty-card--accent-maroon .detty-card__cta {
    color: #7b2f33; /* matches maroon accent */
}

/* subtle hover/focus states (keep strong contrast on white background) */
.detty-card__cta:hover,
.detty-card__cta:focus {
    background: #fff;
    filter: brightness(0.98);
    text-decoration: none;
    outline: none;
    box-shadow: 0 6px 18px rgba(2,6,23,0.06);
}

/* features */
.detty-card__features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
    color: rgba(255,255,255,0.95);
    font-size: 14px;
    line-height: 1.45;
    flex: 1;
}

    .detty-card__features li {
        display: flex;
        gap: 10px;
        align-items: center;
    }

/* icon */
.icon {
    width: 18px;
    height: 18px;
    display: inline-block;
    flex: 0 0 18px;
}

.icon-check {
    stroke: rgba(255,255,255,0.95);
    stroke-width: 2;
    fill: none;
}

/* Responsive overrides for _dettyDecember (add to the existing <style> block) */

/* Make the panel fit smaller viewports and keep vertical gaps */
@media (max-width: 1024px) {
    .detty-modal__panel {
        width: min(920px, 96%);
        max-height: calc(100vh - 64px);
    }

    .detty-deals {
        padding: 36px 20px;
        margin: 10px;
    }

    .detty-deals__title {
        font-size: 28px;
    }

    .detty-deals__subtitle {
        font-size: 15px;
    }

    .detty-deals__cards {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
        gap: 20px;
    }

    .detty-card {
        padding: 12px 14px;
    }
}

/* Tablet / small laptop and large phones */
@media (max-width: 768px) {
    .detty-modal__panel {
        width: calc(100% - 32px);
        max-height: calc(100vh - 48px);
        border-radius: 10px;
    }

    .detty-deals {
        padding: 28px 16px;
    }

    /* stack cards vertically */
    .detty-deals__cards {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
        gap: 18px;
    }

    /* make cards grow naturally and avoid fixed min-height */
    .detty-card {
        height: auto;
        min-height: 0;
        box-shadow: 0 6px 18px rgba(2,6,23,0.06);
    }

    /* Larger, easier-to-tap CTA */
    .detty-card__cta {
        display: block;
        width: 100%;
        padding: 14px 18px;
        font-size: 16px;
        box-sizing: border-box;
    }

    /* Tone down confetti / canvas on smaller devices for perf & contrast */
    .detty-confetti-canvas {
        display: none;
    }

    .detty-deals::before {
        opacity: calc(var(--detty-confetti-opacity, 0.28) * 0.7);
    }

    /* Header */
    .detty-deals__title {
        font-size: 24px;
    }

    .detty-deals__subtitle {
        font-size: 14px;
        margin-top: 6px;
    }

    /* Remove hover transform for touch devices */
    .detty-card:hover {
        transform: none;
        box-shadow: 0 8px 22px rgba(2,6,23,0.08);
    }
}

/* Mobile phones */
@media (max-width: 480px) {
    .detty-modal__panel {
        width: calc(100% - 20px);
        max-height: calc(100vh - 32px);
    }

    .detty-deals {
        padding: 20px 12px;
        border-radius: 8px;
        margin: 8px;
    }

    .detty-deals__title {
        font-size: 20px;
    }

    .detty-deals__subtitle {
        font-size: 13px;
    }

    .detty-deals__cards {
        gap: 14px;
    }

    .detty-card {
        padding: 10px 12px;
        gap: 8px;
    }

    .detty-card__name {
        font-size: 16px;
    }

    .detty-card__price {
        font-size: 20px;
    }

    .detty-card__cta {
        padding: 12px;
        font-size: 15px;
    }

    /* If you use a decorative corner icon (hat) — scale it down */
    .detty-december .detty-corner-icon,
    .detty-deals .detty-corner-icon {
        width: 56px;
        top: -10px;
        right: -10px;
    }

    /* ensure page doesn't scroll behind modal unnecessarily */
    body.modal-open {
        overflow: hidden;
    }
}

/* Accessibility / focus */
.detty-modal__close:focus,
.detty-card__cta:focus {
    outline: 3px solid rgba(10,110,150,0.18);
    outline-offset: 2px;
}

.detty-table-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(2,6,23,0.65);
    z-index: 1600;
}

    .detty-table-modal[aria-hidden="false"] {
        display: flex;
    }

.detty-table-modal__panel {
    width: min(1120px, 96%);
    max-height: 88vh;
    overflow: auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 30px 60px rgba(2,6,23,0.45);
    position: relative;
    padding: 18px;
}

.detty-table-modal__close {
    position: absolute;
    right: 12px;
    top: 12px;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(255,255,255,0.95);
    cursor: pointer;
    font-size: 18px;
}

/* Table */
.detty-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    color: #0b1220;
}

    .detty-table thead th {
        background: #0b4258;
        color: #fff;
        padding: 10px 12px;
        text-align: left;
        font-weight: 800;
        border: 1px solid rgba(0,0,0,0.08);
        position: sticky;
        top: 0;
        z-index: 5;
    }

    .detty-table tbody td, .detty-table tbody th {
        padding: 10px 12px;
        border: 1px solid rgba(0,0,0,0.06);
        vertical-align: middle;
    }

    .detty-table tbody tr:nth-child(odd) td {
        background: #fcfeff;
    }

    .detty-table tbody tr:nth-child(even) td {
        background: #f7fbfc;
    }

    .detty-table .section-row th {
        background: #144a59;
        color: #fff;
        text-align: left;
        font-weight: 700;
        padding: 8px 12px;
    }

    .detty-table .price {
        font-weight: 800;
        color: #0b3550;
        text-align: center;
    }

    .detty-table thead th, .detty-table tbody td, .detty-table tbody th {
        font-size: 13px;
        padding: 8px;
    }

@media (max-width: 720px) {
    .detty-table-modal__panel {
        padding: 12px;
    }

    .detty-table thead th, .detty-table tbody td, .detty-table tbody th {
        font-size: 13px;
        padding: 8px;
    }
}

