/* ==========================================
   WooCommerce Checkout
   ========================================== */

:root {
    --wc-primary: #2563eb;
    --wc-primary-hover: #1d4ed8;
    --wc-bg: #f8fafc;
    --wc-card: #ffffff;
    --wc-border: #e5e7eb;
    --wc-text: #111827;
    --wc-muted: #6b7280;
    --wc-radius: 12px;
    --wc-shadow: 0 8px 30px rgba(0, 0, 0, .05);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

.vpn-checkout {
    padding: 60px 20px;
    background: var(--wc-bg);
}

.vpn-checkout__container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.vpn-checkout__content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 30px;
    align-items: start;
}

/* ==========================
   Cards
========================== */

.vpn-checkout__billing,
.vpn-order-summary {
    background: var(--wc-card);
    border: 1px solid var(--wc-border);
    border-radius: var(--wc-radius);
    box-shadow: var(--wc-shadow);
    padding: 30px;
}

/* ==========================
   Header
========================== */

.vpn-checkout__header {
    margin-bottom: 30px;
}

.vpn-checkout__header h1 {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 700;
    color: var(--wc-text);
}

.vpn-checkout__header p {
    margin: 0;
    color: var(--wc-muted);
    font-size: 15px;
}

/* ==========================
   Billing Fields
========================== */

.woocommerce-billing-fields__field-wrapper {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-row {
    width: 100%;
    margin: 0;
}

.form-row-first,
.form-row-last {
    width: calc(50% - 8px);
}

.woocommerce-billing-fields__field-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.form-row-wide {
    width: 100%;
}

.form-row label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--wc-text);
}

.form-row input,
.form-row textarea,
.form-row select {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid var(--wc-border);
    border-radius: 10px;
    background: #fff;
    outline: none;
    transition: .2s;
    font: inherit;
}

.form-row textarea {
    height: 120px;
    resize: vertical;
    padding: 14px;
}

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
    border-color: var(--wc-primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}

/* ==========================
   Order Summary
========================== */

.vpn-order-summary h2 {
    margin: 0 0 24px;
    font-size: 20px;
    font-weight: 700;
}

.shop_table {
    width: 100%;
    border-collapse: collapse;
}

.shop_table th,
.shop_table td {
    padding: 14px 0;
    border-bottom: 1px solid var(--wc-border);
    text-align: right;
}

.shop_table th {
    font-weight: 600;
}

.shop_table tfoot th,
.shop_table tfoot td {
    font-weight: 700;
}

/* ==========================
   Payment
========================== */

#payment {
    margin-top: 25px;
}

.wc_payment_methods {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
}

.wc_payment_method {
    border: 1px solid var(--wc-border);
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 12px;
}

.wc_payment_method label {
    cursor: pointer;
    font-weight: 500;
}

.payment_box {
    margin-top: 12px;
    color: var(--wc-muted);
    font-size: 14px;
}

/* ==========================
   Button
========================== */

#place_order,
.button.alt {
    width: 100%;
    height: 50px;
    border: none;
    border-radius: 10px;
    background: var(--wc-primary);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: .2s;
}

#place_order:hover,
.button.alt:hover {
    background: var(--wc-primary-hover);
}

/* ==========================
   Notices
========================== */

.woocommerce-error,
.woocommerce-message,
.woocommerce-info {
    padding: 16px 18px;
    margin-bottom: 20px;
    border-radius: 10px;
    border: 1px solid var(--wc-border);
    background: #fff;
    list-style: none;
}

/* ==========================
   Coupon
========================== */

.checkout_coupon {
    margin-bottom: 24px;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--wc-border);
    border-radius: var(--wc-radius);
}

.checkout_coupon input {
    width: 100%;
    margin-bottom: 12px;
}

/* ==========================
   Responsive
========================== */

@media (max-width: 992px) {

    .vpn-checkout__content {
        grid-template-columns: 1fr;
    }

    .vpn-order-summary {
        order: -1;
    }

}

@media (max-width: 640px) {

    .vpn-checkout {
        padding: 30px 15px;
    }

    .vpn-checkout__billing,
    .vpn-order-summary {
        padding: 20px;
    }

    .form-row-first,
    .form-row-last {
        width: 100%;
    }

    .vpn-checkout__header h1 {
        font-size: 24px;
    }

}

/* ==========================
   Order Review
========================== */

.vpn-order {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.vpn-order-summary{
    min-height: 650px;
    overflow-y: scroll;
}

.vpn-order__items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.vpn-order__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--wc-border);
}

.vpn-order__info h4 {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 600;
}

.vpn-order__info span {
    color: var(--wc-muted);
    font-size: 14px;
}

.vpn-order__total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px;
    background: #f8fafc;
    border: 1px solid var(--wc-border);
    border-radius: 10px;
}

.vpn-order__total strong {
    font-size: 20px;
    color: var(--wc-primary);
}

/* ==========================
   Payment
========================== */

.vpn-payment {
    margin-top: 24px;
}

.vpn-payment__methods {
    list-style: none;
    padding: 0;
    margin: 0;
}

.vpn-payment__methods li {
    padding: 16px;
    border: 1px solid var(--wc-border);
    border-radius: 10px;
    margin-bottom: 12px;
}

.vpn-payment__methods label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 500;
}

.vpn-payment__methods input[type="radio"] {
    margin: 0;
}

.payment_box {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--wc-border);
    color: var(--wc-muted);
    font-size: 14px;
}

.vpn-payment__footer {
    margin-top: 24px;
}

#place_order {
    width: 100%;
}

.vpn-payment__empty {
    padding: 16px;
}