/**
 * NBBM Checkout Popup
 */


/* =====================================================
   POPUP
===================================================== */

#nbbm-checkout-popup {
    position: fixed;
    inset: 0;

    z-index: 999999;

    display: flex;
    align-items: center;
    justify-content: center;

    visibility: hidden;
    opacity: 0;

    transition:
        opacity .3s ease,
        visibility .3s ease;
}


#nbbm-checkout-popup.is-active {
    visibility: visible;
    opacity: 1;
}


/* =====================================================
   OVERLAY
===================================================== */

.nbbm-checkout-popup__overlay {
    position: absolute;
    inset: 0;

    background: rgba(30, 24, 17, .72);

    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);

    cursor: pointer;
}


/* =====================================================
   MODAL
===================================================== */

.nbbm-checkout-popup__modal {
    position: relative;
    z-index: 2;

    width: min(720px, calc(100% - 30px));

    max-height: calc(100vh - 40px);

    overflow-y: auto;

    background: #fff;

    border-radius: 5px;

    box-shadow:
        0 30px 100px rgba(0, 0, 0, .35);

    transform:
        translateY(25px)
        scale(.97);

    transition:
        transform .4s cubic-bezier(.22, 1, .36, 1);
}


#nbbm-checkout-popup.is-active
.nbbm-checkout-popup__modal {
    transform:
        translateY(0)
        scale(1);
}


/* =====================================================
   INNER
===================================================== */

.nbbm-checkout-popup__inner {
    padding: 45px 50px 50px;
}


/* =====================================================
   CLOSE
===================================================== */

.nbbm-checkout-popup__close {
    position: absolute;

    top: 18px;
    right: 20px;

    width: 38px;
    height: 38px;

    padding: 0;

    border: 1px solid #ddd;
    border-radius: 50%;

    background: #fff;

    color: #4b3824;

    font-size: 25px;
    line-height: 35px;

    cursor: pointer;

    z-index: 10;

    transition:
        background .25s ease,
        color .25s ease,
        transform .25s ease;
}


.nbbm-checkout-popup__close:hover {
    background: #b78a27;

    color: #fff;

    transform: rotate(90deg);
}


/* =====================================================
   HEADER
===================================================== */

.nbbm-checkout-popup__header {
    padding-right: 45px;

    margin-bottom: 28px;
}


.nbbm-checkout-popup__eyebrow {
    display: block;

    margin-bottom: 8px;

    color: #b78a27;

    font-size: 11px;
    font-weight: 600;

    letter-spacing: 2px;
}


.nbbm-checkout-popup__header h2 {
    margin: 0 0 8px;

    color: #2d241c;

    font-size: 30px;
    line-height: 1.2;

    font-weight: 500;
}


.nbbm-checkout-popup__header p {
    margin: 0;

    color: #777;

    font-size: 14px;
    line-height: 1.6;
}


/* =====================================================
   CART SUMMARY
===================================================== */

.nbbm-cart-summary {
    margin-bottom: 32px;

    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}


.nbbm-cart-summary__title {
    padding: 15px 0;

    color: #3b2d20;

    font-size: 12px;
    font-weight: 600;

    letter-spacing: 1.5px;
}


.nbbm-cart-products {
    border-top: 1px solid #eee;
}


/* =====================================================
   CART PRODUCT
===================================================== */

.nbbm-cart-product {
    display: flex;

    align-items: center;

    gap: 15px;

    padding: 14px 0;

    border-bottom: 1px solid #eee;
}


.nbbm-cart-product__image {
    flex: 0 0 65px;

    width: 65px;
    height: 65px;

    overflow: hidden;

    background: #f7f5f1;
}


.nbbm-cart-product__image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}


.nbbm-cart-product__details {
    flex: 1;
}


.nbbm-cart-product__name {
    margin-bottom: 5px;

    color: #3b2d20;

    font-size: 15px;
    font-weight: 500;
}


.nbbm-cart-product__quantity {
    color: #777;

    font-size: 13px;
}


.nbbm-cart-product__price {
    color: #4b3827;

    font-size: 14px;
    font-weight: 600;

    white-space: nowrap;
}


/* =====================================================
   TOTAL
===================================================== */

.nbbm-cart-summary__total {
    display: flex;

    align-items: center;
    justify-content: space-between;

    padding: 18px 0;
}


.nbbm-cart-summary__total span {
    color: #33281f;

    font-size: 16px;
    font-weight: 500;
}


.nbbm-cart-summary__total strong {
    color: #4b3827;

    font-size: 20px;
    font-weight: 600;
}


/* =====================================================
   LOADING
===================================================== */

.nbbm-cart-loading {
    padding: 20px 0;

    color: #777;

    font-size: 14px;
}


/* =====================================================
   FORMIDABLE
===================================================== */

.nbbm-formidable-wrapper .frm_forms {
    margin: 0 !important;
}


.nbbm-formidable-wrapper .frm_form_field {
    margin-bottom: 18px;
}


.nbbm-formidable-wrapper label {
    color: #3c3025;

    font-size: 13px;
    font-weight: 500;
}


.nbbm-formidable-wrapper input[type="text"],
.nbbm-formidable-wrapper input[type="tel"],
.nbbm-formidable-wrapper input[type="email"],
.nbbm-formidable-wrapper input[type="number"],
.nbbm-formidable-wrapper select,
.nbbm-formidable-wrapper textarea {
    width: 100% !important;

    box-sizing: border-box !important;

    padding: 12px 14px !important;

    border: 1px solid #d8d3cc !important;

    border-radius: 2px !important;

    background: #fff !important;

    color: #33281f !important;

    font-size: 14px !important;
}


.nbbm-formidable-wrapper input:focus,
.nbbm-formidable-wrapper select:focus,
.nbbm-formidable-wrapper textarea:focus {
    outline: none !important;

    border-color: #b78a27 !important;

    box-shadow:
        0 0 0 3px rgba(183, 138, 39, .10) !important;
}


/* =====================================================
   SUBMIT BUTTON
===================================================== */

.nbbm-formidable-wrapper .frm_button_submit {
    width: 100% !important;

    min-height: 54px !important;

    margin-top: 8px !important;

    padding: 15px 25px !important;

    border: 0 !important;

    border-radius: 0 !important;

    background: #b78a27 !important;

    color: #fff !important;

    font-size: 15px !important;

    font-weight: 600 !important;

    letter-spacing: .6px !important;

    text-transform: uppercase !important;

    cursor: pointer;

    transition:
        background .25s ease,
        transform .25s ease;
}


.nbbm-formidable-wrapper .frm_button_submit:hover {
    background: #96701e !important;

    transform: translateY(-1px);
}


/* =====================================================
   BODY LOCK
===================================================== */

body.nbbm-checkout-popup-open {
    overflow: hidden !important;
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 600px) {

    .nbbm-checkout-popup__modal {
        width: calc(100% - 16px);

        max-height: calc(100vh - 16px);
    }


    .nbbm-checkout-popup__inner {
        padding: 35px 20px 30px;
    }


    .nbbm-checkout-popup__header {
        padding-right: 35px;
    }


    .nbbm-checkout-popup__header h2 {
        font-size: 25px;
    }


    .nbbm-checkout-popup__close {
        top: 12px;
        right: 12px;

        width: 34px;
        height: 34px;

        font-size: 22px;
    }


    .nbbm-cart-product__image {
        flex: 0 0 55px;

        width: 55px;
        height: 55px;
    }


    .nbbm-cart-product__name {
        font-size: 14px;
    }


    .nbbm-cart-product__price {
        font-size: 13px;
    }

}