/* =========================================================
   CUSTOMER CHECKOUT MODAL
========================================================= */

.checkout-modal-overlay {
    position: fixed;
    inset: 0;

    width: 100%;
    height: 100%;

    background: rgba(10, 10, 10, 0.65);

    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);

    z-index: 9998;

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}


.checkout-modal-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}


/* =========================================================
   MODAL
========================================================= */

.checkout-modal {
    position: fixed;

    top: 50%;
    left: 50%;

    width: calc(100% - 30px);
    max-width: 600px;

    max-height: calc(100vh - 40px);

    background: #ffffff;

    border-radius: 18px;

    overflow: hidden;
    overflow-y: auto;

    z-index: 9999;

    transform: translate(-50%, -45%) scale(0.97);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease,
        transform 0.3s ease;

    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.25);
}


.checkout-modal.is-open {

    opacity: 1;
    visibility: visible;

    transform: translate(-50%, -50%) scale(1);
}


/* =========================================================
   HEADER
========================================================= */

.checkout-modal-header {

    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 25px;

    padding: 30px 32px 25px;

    border-bottom: 1px solid #eeeeee;
}


.checkout-modal-eyebrow {

    display: inline-block;

    margin-bottom: 7px;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 1.8px;

    text-transform: uppercase;

    opacity: 0.65;
}


.checkout-modal-heading h3 {

    margin: 0 0 7px;

    font-size: 28px;
    line-height: 1.2;

    font-weight: 700;
}


.checkout-modal-heading p {

    margin: 0;

    color: #777777;

    font-size: 14px;
    line-height: 1.6;
}


/* =========================================================
   CLOSE BUTTON
========================================================= */

.checkout-modal-close {

    flex: 0 0 auto;

    width: 42px;
    height: 42px;

    border: 0;

    border-radius: 50%;

    background: #f5f5f5;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 17px;

    cursor: pointer;

    transition:
        background 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}


.checkout-modal-close:hover {

    background: #111111;
    color: #ffffff;

    transform: rotate(90deg);
}


/* =========================================================
   BODY
========================================================= */

.checkout-modal-body {

    padding: 28px 32px 30px;
}


/* =========================================================
   FORM GROUP
========================================================= */

.checkout-form-group label {

    display: block;

    margin-bottom: 9px;

    font-size: 14px;
    font-weight: 600;

    color: #1a1a1a;
}


.checkout-form-group label span {

    color: #e63946;

    margin-left: 2px;
}


/* =========================================================
   INPUTS
========================================================= */

.checkout-form-group input,
.checkout-form-group textarea {

    width: 100%;

    border: 1px solid #e2e2e2;

    border-radius: 8px;

    background: #ffffff;

    color: #222222;

    font-size: 14px;

    outline: none;

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}


.checkout-form-group input {

    height: 52px;

    padding: 0 16px;
}


.checkout-form-group textarea {

    min-height: 115px;

    padding: 14px 16px;

    resize: vertical;
}


.checkout-form-group input::placeholder,
.checkout-form-group textarea::placeholder {

    color: #a2a2a2;
}


.checkout-form-group input:focus,
.checkout-form-group textarea:focus {

    border-color: #222222;

    background: #ffffff;

    box-shadow:
        0 0 0 3px rgba(0, 0, 0, 0.05);
}


/* =========================================================
   FOOTER
========================================================= */

.checkout-modal-footer {

    display: flex;

    align-items: center;
    justify-content: flex-end;

    gap: 15px;

    padding: 20px 32px 25px;

    border-top: 1px solid #eeeeee;

    background: #fafafa;
}


.checkout-modal-cancel {

    height: 50px;

    padding: 0 20px;

    border: 0;

    background: transparent;

    color: #555555;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition: color 0.25s ease;
}


.checkout-modal-cancel:hover {

    color: #111111;
}


.checkout-modal-submit {

    min-height: 50px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    border: 0;

    cursor: pointer;
}


/* =========================================================
   BODY LOCK
========================================================= */

body.customer-modal-open {

    overflow: hidden;
}

#checkoutCustomerForm {
    padding: 20px 30px;
}

.checkout-form-footer {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.js-payment-submit,
.checkout-continue-btn {
    text-align: center;
    width: 100%;
    padding: 12px 20px;
    border-radius: 16px;
    background: #17012C;
    display: inline-block;
    color: var(--white);
    font-weight: 700;
    transition: all ease .5s;
}

.js-payment-submit:hover,
.checkout-continue-btn:hover {
    background: var(--theme);
}

.checkout-form-row {
    display: flex;
    gap: 20px;
}

.checkout-form-row .checkout-form-group {
    width: 50%;
}

.checkout-form-group.full_width {
    margin-bottom: 30px;
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .checkout-modal {

        width: calc(100% - 20px);

        max-height: calc(100vh - 20px);

        border-radius: 14px;
    }


    .checkout-modal-header {

        padding: 23px 20px 20px;
    }


    .checkout-modal-heading h3 {

        font-size: 23px;
    }


    .checkout-modal-heading p {

        font-size: 13px;
    }


    .checkout-modal-body {

        padding: 22px 20px 25px;
    }


    .checkout-modal-footer {

        padding: 16px 20px 20px;

        flex-direction: column-reverse;

        align-items: stretch;
    }


    .checkout-modal-submit {

        width: 100%;
    }


    .checkout-modal-cancel {

        width: 100%;
    }

}


@media (max-width: 575px) {

    .checkout-modal-header {

        gap: 12px;
    }


    .checkout-modal-close {

        width: 38px;
        height: 38px;
    }


    .checkout-modal-heading h3 {

        font-size: 21px;
    }

}