/* ==================================================
   HOUSE OF CRIBBAGE
   BLACK FRIDAY & CYBER MONDAY SALE BANNER
   ================================================== */


/* ==================================================
   1. MAIN BANNER CONTAINER
   ================================================== */

.hocr-bfcm-section {
    margin-top: 15px;
    margin-bottom: 15px;
}

.hocr-bfcm-banner {
    position: relative;
    width: 100%;
    overflow: hidden;
    isolation: isolate;
    border: 1px solid #b89148;
    border-radius: 6px;

    background-color: #140d08;

    background-image:
        linear-gradient(
            rgba(0, 0, 0, 0.12),
            rgba(0, 0, 0, 0.12)
        ),
        url('../images/shared/ads/bfcm-desktop.webp');

    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;

    color: #ffffff;
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
}

.hocr-bfcm-banner * {
    box-sizing: border-box;
}


/* ==================================================
   2. BANNER CONTENT AND HEADINGS
   ================================================== */

.hocr-bfcm-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
    margin: 0 auto;
    padding: 30px 25px;
}

.hocr-bfcm-heading {
    color: #ffffff;
    font-size: clamp(26px, 4vw, 44px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: 2px;
    margin: 0 0 5px;
}

.hocr-bfcm-headline {
    color: #edc777;
    font-size: clamp(42px, 6vw, 68px);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 10px;
}

.hocr-bfcm-headline span {
    font-size: 0.45em;
    font-weight: 700;
}

.hocr-bfcm-subheading {
    color: #f2e8d5;
    font-size: 16px;
    line-height: 1.5;
    margin: 0 0 22px;
}


/* ==================================================
   3. THREE DISCOUNT BOXES
   ================================================== */

.hocr-bfcm-offers {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
    max-width: 700px;
    margin: 0 auto 25px;
}

.hocr-bfcm-offer {
    min-width: 0;
    padding: 18px 12px 12px;
    border: 1px solid #b89148;
    border-radius: 6px;
    background: rgba(20, 13, 8, 0.78);
}

.hocr-bfcm-label {
    font-size: 14px;
    color: #e7d9c0;
}

.hocr-bfcm-amount {
    color: #ffffff;
    font-size: 25px;
    font-weight: 700;
    line-height: 1.4;
    white-space: nowrap;
}

.hocr-bfcm-discount {
    color: #edc777;
    font-size: 30px;
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 10px;
    white-space: nowrap;
}


/* ==================================================
   4. CLICKABLE COUPON BUTTONS
   ================================================== */

.hocr-bfcm-code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    width: 100%;
    max-width: 180px;
    min-height: 44px;

    padding: 10px 12px;
    border: 1px dashed #e7c47d;
    border-radius: 4px;

    background: rgba(231, 196, 125, 0.08);
    color: #ffffff;

    font-family: inherit;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 1px;
    white-space: nowrap;

    cursor: pointer;
    pointer-events: auto;

    transition:
        background 0.2s,
        color 0.2s,
        border-color 0.2s;
}


/* Copy icon */

.hocr-bfcm-code::after {
    content: "";
    display: inline-block;
    flex-shrink: 0;

    width: 11px;
    height: 13px;

    border: 1.5px solid currentColor;
    border-radius: 2px;

    box-shadow:
        3px -3px 0 -1px #24170f,
        3px -3px 0 0 currentColor;

    margin-right: 3px;
}


/* Coupon button hover */

.hocr-bfcm-code:hover {
    background: #edc777;
    color: #21130f;
}


/* Keyboard accessibility */

.hocr-bfcm-code:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
}


/* Successful coupon copy */

.hocr-bfcm-code.is-copied {
    background: #216b3a;
    border-color: #91d5a5;
    color: #ffffff;
}

.hocr-bfcm-code.is-copied::after {
    content: "\2713";
    width: auto;
    height: auto;
    border: none;
    box-shadow: none;
}


/* Click to copy label */

.hocr-bfcm-copy-label {
    color: #cdbb9e;
    font-size: 11px;
    margin-top: 6px;
}


/* ==================================================
   5. SHOP NOW BUTTON
   ================================================== */

.hocr-bfcm-shop {
    display: inline-block;
    padding: 13px 36px;
    border-radius: 4px;

    background: linear-gradient(
        135deg,
        #f7dfa0,
        #c99a43
    );

    color: #24170f !important;

    font-size: 15px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-decoration: none !important;

    transition: background 0.2s;
}

.hocr-bfcm-shop:hover {
    background: #ffe3a2;
}

.hocr-bfcm-shop:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
}


/* ==================================================
   6. SALE DEADLINE
   ================================================== */

.hocr-bfcm-deadline {
    color: #f2e8d5;
    font-size: 14px;
    font-weight: 600;
    margin-top: 15px;
}


/* ==================================================
   7. ACCESSIBLE COPY CONFIRMATION
   ================================================== */

.hocr-bfcm-status {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}


/* ==================================================
   8. SHOP NOW SCROLL TARGET
   ================================================== */

#shop-cribbage-boards {
    scroll-margin-top: 120px;
}

@media (prefers-reduced-motion: no-preference) {

    html {
        scroll-behavior: smooth;
    }

}


/* ==================================================
   9. TABLET ADJUSTMENTS
   ================================================== */

@media (min-width: 768px) and (max-width: 991px) {

    .hocr-bfcm-content {
        max-width: 700px;
        padding: 28px 20px;
    }

    .hocr-bfcm-offers {
        max-width: 600px;
        gap: 12px;
    }

    .hocr-bfcm-offer {
        padding: 16px 10px 12px;
    }

    .hocr-bfcm-amount {
        font-size: 22px;
    }

    .hocr-bfcm-discount {
        font-size: 25px;
    }

    .hocr-bfcm-code {
        font-size: 15px;
    }

}


/* ==================================================
   10. MOBILE VERSION
   ================================================== */

@media (max-width: 767px) {

    /* Mobile background image */

    .hocr-bfcm-banner {
        background-image:
            linear-gradient(
                to bottom,
                rgba(0, 0, 0, 0.25) 0%,
                rgba(0, 0, 0, 0.55) 30%,
                rgba(0, 0, 0, 0.50) 70%,
                rgba(0, 0, 0, 0.15) 100%
            ),
            url('../images/shared/ads/bfcm-mobile.webp');

        background-position: center;
        background-size: cover;
        background-repeat: no-repeat;
    }


    /* Mobile content */

    .hocr-bfcm-content {
        padding: 26px 12px;
    }

    .hocr-bfcm-heading {
        font-size: clamp(20px, 6.2vw, 27px);
        line-height: 1.2;
        letter-spacing: 0.5px;
    }

    .hocr-bfcm-headline {
        font-size: clamp(36px, 10.5vw, 48px);
        margin-top: 5px;
        margin-bottom: 10px;
    }

    .hocr-bfcm-subheading {
        font-size: 12px;
        line-height: 1.5;
        margin-bottom: 20px;
    }


    /* Mobile discount boxes */

    .hocr-bfcm-offers {
        gap: 8px;
        margin-bottom: 22px;
    }

    .hocr-bfcm-offer {
        padding: 14px 5px 12px;
        background: rgba(20, 13, 8, 0.90);
    }

    .hocr-bfcm-label {
        font-size: 11px;
    }

    .hocr-bfcm-amount {
        font-size: clamp(15px, 4.5vw, 19px);
        white-space: nowrap;
    }

    .hocr-bfcm-discount {
        font-size: clamp(14px, 4.3vw, 20px);
        white-space: nowrap;
        line-height: 1.4;
        margin-top: 4px;
        margin-bottom: 12px;
    }


    /* Mobile coupon buttons */

    .hocr-bfcm-code {
        font-size: 12px;
        letter-spacing: 0;
        gap: 5px;
        min-height: 44px;
        padding: 8px 4px;
    }

    .hocr-bfcm-code::after {
        width: 8px;
        height: 10px;
    }

    .hocr-bfcm-code.is-copied::after {
        width: auto;
        height: auto;
    }

    .hocr-bfcm-copy-label {
        font-size: 10px;
        margin-top: 6px;
    }


    /* Mobile Shop Now button */

    .hocr-bfcm-shop {
        padding: 13px 34px;
        font-size: 15px;
    }


    /* Mobile sale deadline */

    .hocr-bfcm-deadline {
        font-size: 12px;
        margin-top: 16px;
    }

}


/* ==================================================
   11. EXTRA SMALL MOBILE DEVICES
   ================================================== */

@media (max-width: 380px) {

    .hocr-bfcm-content {
        padding: 22px 8px;
    }

    .hocr-bfcm-offers {
        gap: 5px;
    }

    .hocr-bfcm-offer {
        padding-left: 4px;
        padding-right: 4px;
    }

    .hocr-bfcm-amount {
        font-size: 15px;
    }

    .hocr-bfcm-discount {
        font-size: 14px;
    }

    .hocr-bfcm-code {
        font-size: 11px;
    }

    .hocr-bfcm-code::after {
        display: none;
    }

}


/* ==================================================
   12. REDUCED MOTION ACCESSIBILITY
   ================================================== */

@media (prefers-reduced-motion: reduce) {

    .hocr-bfcm-code,
    .hocr-bfcm-shop {
        transition: none;
    }

}


/* ==================================================
   END OF HOUSE OF CRIBBAGE BFCM BANNER CSS
   ================================================== */