@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&display=swap');
/* font-family: "Manrope", sans-serif; */

/* ==========================================
  BUY NOW POPUP
========================================== */

.buy-modal {font-family: "Manrope", sans-serif;
    position: fixed;
    inset: 0;
    z-index: 999999;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 20px;
}

.buy-modal.active {
    display: flex;
}

.buy-modal-overlay {
    position: absolute;
    inset: 0;

    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
}

.buy-modal-box {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 620px;
    max-height: 92vh;

    overflow-y: auto;

    background: #ffffff;

    border-radius: 24px;

    padding: 35px;

    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.25);

    animation: buyModalIn .3s ease;
}

@keyframes buyModalIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


/* Close Button */

.buy-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;

    width: 40px;
    height: 40px;

    border: 0;
    border-radius: 50%;

    background: #f3f4f6;

    color: #333;

    font-size: 27px;
    line-height: 1;

    cursor: pointer;

    transition: all .25s ease;
}

.buy-modal-close:hover {
    background: #2D4121;
    color: #fff;

    transform: rotate(90deg);
}


/* Header */

.buy-modal-header {
    padding-right: 45px;
    margin-bottom: 25px;
}

.buy-modal-label {
    display: inline-flex;
    align-items: center;

    padding: 6px 13px;

    border-radius: 50px;

    background: #E8F2DC;

    color: #2D4121;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: .08em;
    text-transform: uppercase;
}

.buy-modal-header h3 {
    margin: 12px 0 5px;

    color: #24311F;

    font-size: 28px;
    line-height: 1.2;
    font-weight: 700;
}

.buy-modal-header p {
    margin: 0;

    color: #64748B;

    font-size: 14px;
    line-height: 1.6;
}


/* Form */

.buy-form-group {
    margin-bottom: 17px;
}

.buy-form-group label {
    display: block;

    margin-bottom: 7px;

    color: #24311F;

    font-size: 13px;
    font-weight: 700;
}

.buy-form-group input,
.buy-form-group select, .buy-form-group textarea {
    width: 100%;
    /* height: 50px; */

    padding:10px 15px;

    border: 1px solid #DDE4D8;
    border-radius: 10px;

    outline: none;

    background: #fff;

    color: #24311F;

    font-family: inherit;
    font-size: 14px;
 font-weight: 500;
    transition: .25s ease;

    box-sizing: border-box;
}

.buy-form-group input:focus,
.buy-form-group select:focus {
    border-color: #4E8B2C;

    box-shadow:
        0 0 0 3px rgba(78, 139, 44, .10);
}

.buy-form-group input[readonly] {
    background: #F7F8F5;
}


/* Two Columns */

.buy-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 15px;
}


/* Price */

.buy-price-wrapper {
    position: relative;
}

.buy-price-wrapper .currency {
    position: absolute;

    left: 15px;
    top: 50%;

    transform: translateY(-50%);

    color: #2D4121;

    font-weight: 700;

    pointer-events: none;
}

.buy-price-wrapper input {
    padding-left: 32px;
}


/* Quantity */

.buy-quantity {
    display: flex;

    width: 100%;
    height: 50px;

    overflow: hidden;

    border: 1px solid #DDE4D8;
    border-radius: 10px;
}

.buy-quantity button {
    width: 50px;

    border: 0;

    background: #F7F8F5;

    color: #2D4121;

    font-size: 22px;

    cursor: pointer;

    transition: .2s ease;
}

.buy-quantity button:hover {
    background: #E8F2DC;
}

.buy-quantity input {
    flex: 1;

    width: 100%;

    height: 100%;

    padding: 0;

    border: 0 !important;
    border-radius: 0 !important;

    text-align: center;

    box-shadow: none !important;
}


/* Total */

.buy-total-box {
    display: flex;

    align-items: center;
    justify-content: space-between;

    margin: 5px 0 20px;

    padding: 15px 18px;

    border-radius: 12px;

    background: #F7F8F5;
}

.buy-total-box span:first-child {
    color: #64748B;

    font-size: 14px;
    font-weight: 600;
}

.buy-total-amount {
    color: #2D4121;

    font-size: 21px;
    font-weight: 800;
}


/* Submit */

.buy-submit-btn {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 10px;

    width: 100%;
    height: 55px;

    margin-top: 5px;

    border: 0;
    border-radius: 12px;

    background: #2D4121;

    color: #fff;

    font-family: inherit;

    font-size: 16px;
    font-weight: 700;

    cursor: pointer;

    transition: all .3s ease;
}

.buy-submit-btn:hover {
    background: #4E8B2C;

    transform: translateY(-2px);

    box-shadow:
        0 10px 25px rgba(45, 65, 33, .20);
}

.buy-submit-btn span {
    font-size: 20px;
}


/* Loading */

.buy-submit-btn.loading {
    opacity: .7;

    pointer-events: none;
}


/* Mobile */

@media (max-width: 600px) {

    .buy-modal {
        padding: 10px;
    }

    .buy-modal-box {
        max-height: 95vh;

        padding: 25px 18px;

        border-radius: 18px;
    }

    .buy-modal-header {
        padding-right: 40px;
    }

    .buy-modal-header h3 {
        font-size: 23px;
    }

    .buy-form-row {
        grid-template-columns: 1fr;

        gap: 0;
    }

    .buy-modal-close {
        top: 12px;
        right: 12px;
    }
}


   /* ==========================================
   ORDER MESSAGE POPUP
========================================== */

.order-message-popup {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
}

.order-message-popup.active {
    display: flex !important;
}

.order-message-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(5px);
}

.order-message-box {
    position: relative;
    z-index: 2;

    width: calc(100% - 40px);
    max-width: 450px;

    padding: 40px 30px 30px;

    background: #ffffff;

    border-radius: 20px;

    text-align: center;

    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.25);

    animation:
        orderPopupShow 0.3s ease;
}

@keyframes orderPopupShow {

    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }

}


/* ==========================================
   ICON
========================================== */

.order-message-icon {
    width: 70px;
    height: 70px;

    margin: 0 auto 20px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 38px;
    font-weight: 700;
}


/* SUCCESS */

.order-message-popup.success
.order-message-icon {

    background: #e8f2dc;
    color: #2d4121;

}


/* ERROR */

.order-message-popup.error
.order-message-icon {

    background: #fee2e2;
    color: #dc2626;

}


/* ==========================================
   TITLE
========================================== */

.order-message-box h3 {

    margin: 0 0 12px;

    color: #24311f;

    font-size: 24px;

    line-height: 1.3;

}


/* ==========================================
   MESSAGE
========================================== */

.order-message-box p {

    margin: 0 0 25px;

    color: #64748b;

    font-size: 15px;

    line-height: 1.7;

}


/* ==========================================
   CLOSE
========================================== */

.order-message-close {

    position: absolute;

    top: 10px;
    right: 12px;

    width: 35px;
    height: 35px;

    border: 0;

    background: transparent;

    color: #64748b;

    font-size: 28px;

    line-height: 1;

    cursor: pointer;

}


/* ==========================================
   OK BUTTON
========================================== */

.order-message-ok {

    min-width: 120px;

    padding: 12px 25px;

    border: 0;

    border-radius: 8px;

    background: #2d4121;

    color: #ffffff;

    font-size: 14px;

    font-weight: 600;

    cursor: pointer;
}


.order-message-ok:hover {

    opacity: 0.9;

}


/* ==========================================
   LOADING BUTTON
========================================== */

.buy-submit-btn.loading {

    opacity: 0.7;

    cursor: not-allowed;

}