/* =========================================================
   purchase OVERLAY
   ========================================================= */

.purchase-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(7, 15, 30, 0.72);
    backdrop-filter: blur(4px);
}

.purchase-overlay[hidden] {
    display: none;
}


/* =========================================================
   purchase PANEL
   ========================================================= */

.purchase-panel {
    position: relative;

    width: 100%;
    max-width: 430px;

    padding: 34px 30px 30px;

    background: #ffffff;
    color: #152238;

    border-radius: 22px;

    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.32);
}


/* =========================================================
   CLOSE
   ========================================================= */

.purchase-close {
    position: absolute;
    top: 14px;
    right: 16px;

    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 0;
    border-radius: 50%;

    background: #eef1f5;
    color: #152238;

    font-size: 25px;
    line-height: 1;

    cursor: pointer;
}

.purchase-close:hover {
    background: #dfe4eb;
}


/* =========================================================
   TEXT
   ========================================================= */

.purchase-panel h2 {
    margin: 0 44px 10px 0;

    font-size: 27px;
    line-height: 1.2;
}

.purchase-text {
    margin: 0 0 24px;

    color: #5b6677;

    font-size: 15px;
    line-height: 1.5;
}


/* =========================================================
   FORM
   ========================================================= */

.purchase-panel label {
    display: block;

    margin-bottom: 7px;

    font-size: 14px;
    font-weight: 700;
}

.purchase-panel input {
    width: 100%;
    box-sizing: border-box;

    padding: 13px 14px;

    border: 1px solid #cfd6df;
    border-radius: 10px;

    background: #ffffff;
    color: #152238;

    font: inherit;
    font-size: 16px;

    outline: none;
}

.purchase-panel input:focus {
    border-color: #19c965;

    box-shadow:
        0 0 0 3px rgba(25, 201, 101, 0.16);
}


/* =========================================================
   MESSAGE
   ========================================================= */

.purchase-message {
    min-height: 20px;

    margin-top: 10px;

    color: #5b6677;

    font-size: 14px;
}


/* =========================================================
   SAVE BUTTON
   ========================================================= */

.purchase-save {
    width: 100%;

    margin-top: 8px;
    padding: 13px 18px;

    border: 0;
    border-radius: 12px;

    background: #19c965;
    color: #07151f;

    font-size: 16px;
    font-weight: 800;

    cursor: pointer;
}

.purchase-save:hover {
    filter: brightness(0.96);
}

.purchase-save:active {
    transform: translateY(1px);
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 520px) {

    .purchase-overlay {
        align-items: flex-end;
        padding: 12px;
    }

    .purchase-panel {
        max-width: none;

        padding: 30px 22px 24px;

        border-radius: 20px 20px 14px 14px;
    }

}



.purchase-buy:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    filter: none;
    transform: none;
}




/*------------------------------------------------------------
PURCHASE BUTTON
------------------------------------------------------------*/

.purchase-buy{

    width:100%;

    margin-top:20px;
    padding:14px 20px;

    border:none;
    border-radius:12px;

    background:linear-gradient(180deg,#38b44a,#2f9d3f);

    color:#fff;
    font-size:16px;
    font-weight:700;

    cursor:pointer;

    transition:
        transform .15s ease,
        box-shadow .20s ease,
        background .20s ease;

    box-shadow:
        0 6px 18px rgba(46,160,67,.25);

}

.purchase-buy:hover{

    transform:translateY(-2px);

    background:linear-gradient(180deg,#43c357,#35aa46);

    box-shadow:
        0 10px 24px rgba(46,160,67,.35);

}

.purchase-buy:active{

    transform:translateY(0);

    box-shadow:
        0 4px 12px rgba(46,160,67,.25);

}

.purchase-buy:disabled{

    background:#cfd8dc;

    color:#7d8b94;

    cursor:not-allowed;

    transform:none;

    box-shadow:none;

    opacity:.8;

}