/* =========================================================
   GMD Buy Now - Layout
========================================================= */

/* Main Layout */

.gmd-buy-wrap {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 30px;

    max-width: 1150px;
    margin: 40px auto;
}

/* Cards */

.gmd-buy-card,
.gmd-buy-summary {
    margin-bottom: 22px;
    padding: 28px;

    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;

    box-shadow: 0 8px 25px rgba(0,0,0,.06);
}

.gmd-buy-card h2,
.gmd-buy-card h3,
.gmd-buy-summary h3 {
    margin-top: 0;
    color: #111827;
}

/* Email Row */

.gmd-buy-email-row {
    display: flex;
    gap: 12px;
}

.gmd-buy-email-row input {
    flex: 1;
    height: 52px;
    padding: 0 16px;

    border: 1px solid #d1d5db;
    border-radius: 12px;

    font-size: 16px;
}

.gmd-buy-email-row button {
    height: 52px;
    padding: 0 24px;

    border: none;
    border-radius: 12px;

    background: #0F7BFF;
    color: #fff;

    font-weight: 700;
    cursor: pointer;
}

/* Disabled */

.gmd-buy-disabled {
    opacity: .55;
}

/* Summary */

.gmd-buy-summary {
    position: sticky;
    top: 30px;
    height: max-content;
}

.gmd-buy-summary img {
    width: 100%;
    margin: 15px 0;
    border-radius: 14px;
}

.gmd-buy-summary h4 {
    margin: 10px 0;
    font-size: 22px;
}

.gmd-buy-price {
    margin: 15px 0;

    color: #0F7BFF;
    font-size: 26px;
    font-weight: 700;
}

.gmd-buy-trust {
    margin-top: 20px;
    padding-top: 15px;

    border-top: 1px solid #e5e7eb;

    color: #374151;
    font-size: 14px;
}
/* =========================================================
 * GMD Checkout - Payment Security
 * ========================================================= */

.gmd-payment-security {
    margin: 20px 0 28px;
    padding: 18px 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.gmd-security-items {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}

.gmd-security-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    color: #1f2937;
}

.gmd-security-item strong {
    font-weight: 600;
}

.gmd-security-icon {
    font-size: 18px;
    line-height: 1;
}

.gmd-security-message {
    margin: 12px 0 0 !important;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
    font-size: 13px;
    color: #64748b;
}

/* Mobile */
@media (max-width: 700px) {

    .gmd-security-items {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .gmd-payment-security {
        padding: 16px;
    }
}

/* =========================================================
 * GMD Checkout - Payment Processing Overlay
 * ========================================================= */

#gmd-processing-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(15, 23, 42, 0.72);

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

    padding: 20px;
}

.gmd-processing-box {
    width: 100%;
    max-width: 460px;

    background: #ffffff;
    border-radius: 18px;

    padding: 38px 32px;

    text-align: center;

    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.gmd-processing-spinner {
    width: 52px;
    height: 52px;

    margin: 0 auto 22px;

    border: 5px solid #e5e7eb;
    border-top-color: #2563eb;
    border-radius: 50%;

    animation: gmd-payment-spin 0.8s linear infinite;
}

@keyframes gmd-payment-spin {

    to {
        transform: rotate(360deg);
    }

}

.gmd-processing-box h2 {
    margin: 0 0 10px;

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

    color: #111827;
}

.gmd-processing-box p {
    margin: 0 0 18px;

    font-size: 15px;
    line-height: 1.5;

    color: #4b5563;
}

.gmd-processing-secure {
    display: inline-block;

    margin-bottom: 14px;
    padding: 8px 14px;

    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 20px;

    font-size: 13px;
    font-weight: 600;

    color: #166534;
}

.gmd-processing-box small {
    display: block;

    font-size: 12px;

    color: #6b7280;
}


/* Mobile */

@media (max-width: 600px) {

    .gmd-processing-box {
        padding: 30px 20px;
    }

    .gmd-processing-box h2 {
        font-size: 21px;
    }

}

/* =========================================================
   MOBILE CHECKOUT LAYOUT
========================================================= */

@media (max-width:767px){

    .gmd-buy-wrap{
        display:grid;
        grid-template-columns:1fr;
        gap:18px;

        width:100%;
        max-width:100%;

        margin:20px auto;
        padding:0 12px;

        box-sizing:border-box;
    }

    .gmd-buy-card,
    .gmd-buy-summary{
        width:100%;
        max-width:100%;

        margin-bottom:16px;
        padding:18px;

        box-sizing:border-box;
    }

    .gmd-buy-summary{
        position:static;
        top:auto;
    }

    .gmd-buy-email-row{
        flex-direction:column;
        gap:10px;
    }

    .gmd-buy-email-row input,
    .gmd-buy-email-row button{
        width:100%;
        max-width:100%;
        box-sizing:border-box;
    }

    /* Hide original desktop summary */

    .gmd-buy-wrap > .gmd-buy-summary:not(.gmd-mobile-summary){
        display:none !important;
    }

    /* Show mobile summary */

    .gmd-buy-main > .gmd-mobile-summary{
        display:block !important;
        width:100%;
        max-width:100%;
        position:static !important;
    }

}


/* =========================================================
   DESKTOP - HIDE MOBILE SUMMARY
========================================================= */

@media (min-width:768px){

    .gmd-buy-main > .gmd-mobile-summary{
        display:none !important;
    }

}

