/* === PROMO BAR (cart header strip) === */
.zv-promo-bar {
    display: flex;
    flex-direction: column;
    align-items: stretch;

    background-color: #000;
    color: #fff;
    padding: 12px 14px;
    border-radius: 4px;
    margin-top: 16px;
    margin-bottom: 16px;
    font-family: inherit;
    border: 1px solid #1a1a1a;
    gap: 12px;
}

/* tablet+ goes horizontal */
@media (min-width: 600px) {
    .zv-promo-bar {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
        gap: 16px;
    }

    .zv-promo-bar {
        align-items: center;
    }
}

/* LEFT (message, opens modal) */
.zv-promo-bar__left {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    flex: 1 1 auto;
    min-width: 0;
    gap: 10px;
    cursor: pointer;
}

@media (min-width: 600px) {
    .zv-promo-bar__left {
        align-items: center;
    }
}

.zv-promo-bar__icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background: #b80000;
    /* brand red */
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.zv-promo-bar__messages {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.35;
}

/* headline = main message */
.zv-promo-bar__headline {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    word-break: break-word;
}

/* upsell = secondary line, lighter and slightly smaller */
.zv-promo-bar__upsell {
    font-size: 12px;
    font-weight: 400;
    color: #cfcfcf;
    margin-top: 2px;
    word-break: break-word;
}

/* bump sizes slightly on bigger screens so desktop still feels strong */
@media (min-width: 600px) {
    .zv-promo-bar__headline {
        font-size: 14px;
    }

    .zv-promo-bar__upsell {
        font-size: 13px;
    }
}

/* RIGHT (code pill + view all) */
.zv-promo-bar__actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    flex-shrink: 0;
    width: 100%;
}

/* at >=360px we try to go inline row */
@media (min-width: 360px) {
    .zv-promo-bar__actions {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        width: auto;
    }
}

@media (min-width: 600px) {
    .zv-promo-bar__actions {
        justify-content: flex-end;
        gap: 10px;
    }
}

/* code pill */
.zv-promo-bar__pill {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    background: transparent;
    border: 1px solid #fff;
    color: #fff;
    border-radius: 4px;

    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;

    padding: 10px 8px;
    cursor: pointer;
    text-align: center;
    width: 100%;
    min-height: 36px;
}

@media (min-width: 360px) {
    .zv-promo-bar__pill {
        width: auto;
        padding: 6px 8px;
        min-height: 0;
    }
}

.zv-promo-bar__pill:hover {
    background: rgba(255, 255, 255, 0.08);
}

.zv-promo-bar__pill-code {
    font-weight: 700;
    font-size: 12px;
}

.zv-promo-bar__pill-copy {
    font-weight: 500;
    opacity: 0.9;
    font-size: 12px;
}

/* "View All Codes" button */
.zv-promo-bar__seeall {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    background: transparent;
    border: 1px solid #fff;
    color: #fff;
    border-radius: 4px;

    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;

    cursor: pointer;
    padding: 10px 8px;
    text-align: center;
    width: 100%;
    min-height: 36px;
}

@media (min-width: 360px) {
    .zv-promo-bar__seeall {
        width: auto;
        min-height: 0;
        padding: 6px 8px;
    }
}

/* turn "View All Codes" into link-style on wider screens if you want it lighter */
@media (min-width: 600px) {
    .zv-promo-bar__seeall {
        border: 0;
        border-radius: 0;
        padding: 6px 0;
        background: transparent;
    }

    .zv-promo-bar__seeall:hover {
        text-decoration: underline;
        background: transparent;
    }
}

.zv-promo-bar__seeall-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: currentColor;
}

.zv-promo-bar__arrow {
    flex-shrink: 0;
    margin-left: 12px;
    display: flex;
    align-items: center;
    color: #fff;
}

.zv-promo-bar__arrow svg {
    width: 18px;
    height: 18px;
}


/* === MODAL OVERLAY & WRAPPER === */
.zv-promo-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    font-family: inherit;
}

.zv-promo-modal-overlay.is-visible {
    display: flex !important;
}

.zv-promo-modal {
    position: relative;
    background: #fff;
    width: calc(100% - 24px);
    max-width: 520px;
    border-radius: 6px;
    border: 1px solid #dcdcdc;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
    color: #000;
    font-size: 14px;
    line-height: 1.45;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    /* so we can scroll inside */
}

/* Header strip (fixed) */
.zv-promo-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 16px 20px 12px;
    flex-shrink: 0;
    border-bottom: 1px solid #eee;
}

.zv-promo-modal__title {
    font-size: 15px;
    font-weight: 600;
    color: #000;
    margin: 0;
    line-height: 1.3;
}

.zv-promo-modal__close {
    border: none;
    background: transparent;
    padding: 4px;
    line-height: 0;
    cursor: pointer;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zv-promo-modal__close svg {
    width: 16px;
    height: 16px;
    stroke-width: 1.5;
}

/* Scrollable body */
.zv-promo-modal__content {
    padding: 16px 20px 20px;
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
}

/* Note box */
.zv-promo-modal__note {
    font-size: 12px;
    color: #444;
    background: #f8f8f8;
    border: 1px solid #e3e3e3;
    border-radius: 4px;
    padding: 8px 10px;
    line-height: 1.4;
    margin-bottom: 16px;
    text-align: left;
}

/* Grid of cards */
.zv-promo-modal__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

@media (min-width: 480px) {
    .zv-promo-modal__grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 768px) {
    .zv-promo-modal__grid {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 16px;
    }
}

/* === DISCOUNT CARD LAYOUT ===
   Card now has:
   - accent bar/badge at top
   - dark body
   - footer button with lighter accent
*/
.zv-discount-row {
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #2f2f2f;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
    background: #1a1a1a;
    /* shared dark body */
    color: #fff;
    display: flex;
    flex-direction: column;
    min-height: 150px;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 500;
}

/* top accent strip */
.zv-discount-row__badge {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    padding: 6px 8px;
    color: #fff;
    line-height: 1.2;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

/* body copy */
.zv-discount-row__body {
    flex: 1;
    padding: 12px 12px 16px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.zv-discount-row__headline {
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 13px;
    line-height: 1.4;
    color: #fff;
}

.zv-discount-row__code {
    font-size: 12px;
    color: #ccc;
}

.zv-discount-row__code strong {
    font-weight: 700;
    color: #fff;
}

/* footer copy bar */
.zv-discount-row__footer {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 10px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    line-height: 1.2;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    /* gets overridden per tier */
    border-top: 1px solid rgba(0, 0, 0, 0.4);
}

.zv-discount-row__footer.is-copied {
    background: #444;
    color: #fff;
}

/* ---------- STATE THEMES ---------- */

/* LOCKED (dimmed gray, muted accent) */
.zv-discount-row--locked {
    border-color: #3a3a3a;
    background: #1f1f1f;
    color: #888;
}

.zv-discount-row--locked .zv-discount-row__badge {
    background: #3a3a3a;
    color: #ccc;
}

.zv-discount-row--locked .zv-discount-row__headline {
    color: #ccc;
}

.zv-discount-row--locked .zv-discount-row__code {
    color: #888;
}

.zv-discount-row--locked .zv-discount-row__footer {
    background: #3a3a3a;
    color: #fff;
    font-weight: 500;
}

/* ACTIVE TIER 1 (neutral / premium black) */
.zv-discount-row--active-tier1 {
    background: #1a1a1a;
    border-color: #51b2f5;
}

.zv-discount-row--active-tier1 .zv-discount-row__badge {
    background: #51b2f5;
    color: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.4);
}

.zv-discount-row--active-tier1 .zv-discount-row__footer {
    background: #51b2f5;
    color: #fff;
    font-weight: 600;
}

/* ACTIVE TIER 2 (ZanVos red accent) */
.zv-discount-row--active-tier2 {
    background: #1a1a1a;
    border-color: #b80000;
}

.zv-discount-row--active-tier2 .zv-discount-row__badge {
    background: #b80000;
    color: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.4);
}

.zv-discount-row--active-tier2 .zv-discount-row__footer {
    background: #b80000;
    color: #fff;
    font-weight: 600;
}

/* ACTIVE TIER 3 (deep green accent for "best deal") */
.zv-discount-row--active-tier3 {
    background: #1a1a1a;
    border-color: #007a24;
}

.zv-discount-row--active-tier3 .zv-discount-row__badge {
    background: #007a24;
    color: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.4);
}

.zv-discount-row--active-tier3 .zv-discount-row__footer {
    background: #007a24;
    color: #fff;
    font-weight: 600;
}

/* Override shopify css */
.heading-wrapper {
    margin-bottom: 0px !important;
}

.announcement-bar-zv {
    cursor: pointer !important;
}