/* Coupon Base */
.fcoupon {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 2 / 1;
    /* ✅ keep natural ticket shape */
    border-radius: 10px;
    overflow: hidden;
    margin: auto;
    display: flex;
    align-items: stretch;
    position: relative;
    text-transform: uppercase;
    font-family: var(--font-primary, system-ui, Roboto, Arial, sans-serif);
    background: gold;
    color: #000;
    filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .5));
    cursor: pointer;
}


/* Scalloped edges */
.fcoupon::before,
.fcoupon::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 26px;
    z-index: 2;
    pointer-events: none;
    background: radial-gradient(circle at 0 50%, transparent 0 24px, gold 25px);
}

.fcoupon::after {
    right: 0;
    transform: scaleX(-1);
}

.fcoupon::before {
    left: 0;
}

/* Regions */
.fcoupon__left,
.fcoupon__center,
.fcoupon__right {
    display: flex;
    align-items: center;
    justify-content: center;
}

.fcoupon__left {
    width: 20%;
    border-right: 2px dashed rgba(0, 0, 0, .13);
}

.fcoupon__vertical {
    transform: rotate(-90deg);
    white-space: nowrap;
    font-weight: 700;
    font-size: .85rem;
    letter-spacing: .5px;
}

.fcoupon__center {
    flex: 1;
    text-align: center;
    padding: .5rem .75rem;
}

.fcoupon__center-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .15rem;
}

.fcoupon__amount {
    background: #000;
    color: gold;
    padding: 0 10px;
    font-size: 2.15rem;
    font-weight: 700;
    letter-spacing: .5px;
}

.fcoupon__label {
    font-size: 2.15rem;
    font-weight: 600;
    margin: 0;
}

.fcoupon__expiry {
    font-size: .625rem;
    font-weight: 600;
    letter-spacing: 2px;
}

.fcoupon__right {
    width: 120px;
    background: #fff;
    border-left: 2px dashed rgba(0, 0, 0, .13);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    writing-mode: vertical-rl;
}

.fcoupon__barcode-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .4rem;
    height: 100%;
}

.fcoupon__barcode {
    display: block;
    width: 70px;
    height: 150px;
}

.fcoupon__serial {
    font-size: .55rem;
    letter-spacing: 2px;
    font-weight: 600;
    opacity: .85;
    line-height: 1;
    margin-top: .1rem;
}

/* Focus style */
.fcoupon:focus-visible {
    outline: 3px solid var(--site-color-accent, #2563eb);
    outline-offset: 2px;
}

/* Variants */
.fcoupon--accent {
    background: var(--site-color-accent);
    color: #fff;
}

.fcoupon--accent::before {
    background: radial-gradient(circle at 0 50%, transparent 25px, var(--site-color-accent) 26px);
}

.fcoupon--accent::after {
    background: radial-gradient(circle at 100% 50%, transparent 25px, var(--site-color-accent) 26px);
}

.fcoupon--accent .fcoupon__amount {
    background: #fff;
    color: var(--site-color-accent);
}

.fcoupon--dark {
    background: #111;
    color: #fff;
}

.fcoupon--dark::before {
    background: radial-gradient(circle at 0 50%, transparent 25px, #111 26px);
}

.fcoupon--dark::after {
    background: radial-gradient(circle at 100% 50%, transparent 25px, #111 26px);
}

.fcoupon--dark .fcoupon__amount {
    background: #fff;
    color: #111;
}

/* Responsive */
@media (max-width: 500px) {
    .fcoupon {
        width: 100%;
        max-width: 100%;
        aspect-ratio: 2 / 1;
        /* ✅ keep rectangle proportion */
        height: auto;
        /* no squishing */
        flex-direction: row;
        /* always horizontal */
    }

    .fcoupon__left {
        width: 22%;
        /* slightly wider so "Enjoy Your Gift" fits */
    }

    .fcoupon__center {
        padding: .4rem;
        /* reduce padding */
    }

    .fcoupon__right {
        width: 80px;
        /* narrow barcode strip */
    }

    .fcoupon__amount,
    .fcoupon__label {
        font-size: 1.4rem;
        /* scaled text */
    }

    .fcoupon__expiry {
        font-size: .55rem;
    }

    .fcoupon__barcode {
        width: 40px;
        height: 100px;
    }
}



/* Offer Slider (re-added after overwrite) */
.offers-for-you {
    background: none;
    border: none;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

.offer-slider {
    display: flex;
    align-items: center;
    gap: .85rem;
}

.offer-slider__viewport {
    overflow: hidden;
    flex: 1;
}

.offer-slider__track {
    display: flex;
    transition: transform .55s cubic-bezier(.65, .05, .36, 1);
    will-change: transform;
}

.offer-slider__slide {
    flex: 0 0 100%;
    max-width: 100%;
    display: flex;
    justify-content: center;
    padding: .25rem;
}

.offer-slider__nav {
    background: var(--site-color-accent, #000);
    color: var(--site-color-text-inverse, #fff);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    font-weight: 600;
    cursor: pointer;
    transition: .25s;
}

.offer-slider__nav:hover:not([disabled]) {
    background: var(--site-color-accent-hover, #333);
}

.offer-slider__nav[disabled] {
    opacity: .4;
    cursor: not-allowed;
    box-shadow: none;
}

.offer-code-box .form-control {
    font-family: monospace;
    font-size: .85rem;
}

.offer-code-box #offer-copy-btn {
    font-size: .7rem;
    letter-spacing: .5px;
    text-transform: uppercase;
    font-weight: 600;
}

@media (max-width:600px) {
    .offer-slider__nav {
        width: 34px;
        height: 34px;
        font-size: 1.1rem;
    }
}