/* =========================================
   1. MAIN CONTAINER LAYOUT
   ========================================= */
.checkout-container {
    max-width: 1000px;
    margin: 40px auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr; /* Left: Summary, Right: Payment */
    gap: 30px;
    padding: 0 20px;
}

/* =========================================
   2. LEFT COLUMN: ORDER SUMMARY
   ========================================= */
.order-summary {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 25px;
    height: fit-content;
}

.summary-header {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
}

.checkout-product {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.checkout-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    background: #e2e8f0;
}

.checkout-details h3 {
    font-size: 1rem;
    color: #334155;
    margin-bottom: 5px;
    line-height: 1.4;
}

.checkout-tag {
    font-size: 0.75rem;
    background: #dbeafe;
    color: #1e40af;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.price-row {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    color: #64748b;
    font-size: 0.95rem;
}

.total-row {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px dashed #cbd5e1;
    font-size: 1.3rem;
    font-weight: 800;
    color: #0f172a;
}

/* =========================================
   3. RIGHT COLUMN: PAYMENT METHODS
   ========================================= */
.payment-section {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.payment-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: #1e293b;
}

.payment-options {
    display: grid;
    gap: 15px;
    margin-bottom: 30px;
}

.payment-option {
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 15px;
}

.payment-option:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.payment-option.selected {
    border-color: #3b82f6;
    background: #eff6ff;
    box-shadow: 0 0 0 1px #3b82f6;
}

/* Disabled State (Coming Soon) */
.payment-option.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #f1f5f9;
}
.payment-option.disabled:hover {
    border-color: #e2e8f0;
}

.coming-soon-badge {
    font-size: 0.7rem;
    background: #f59e0b;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    font-weight: bold;
    text-transform: uppercase;
}

.pm-icon {
    font-size: 1.8rem;
    margin-right: 15px;
}

.pm-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.pm-name {
    font-weight: 700;
    color: #334155;
    font-size: 1rem;
}

.pm-fee-note {
    font-size: 0.8rem;
    color: #64748b;
}

.pm-radio {
    accent-color: #3b82f6;
    transform: scale(1.2);
    margin-right: 15px;
}

/* Pay Button */
.btn-pay-now {
    width: 100%;
    background-color: #22c55e;
    color: white;
    padding: 16px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-pay-now:hover {
    background-color: #16a34a;
}

.btn-pay-now:disabled {
    background-color: #94a3b8;
    cursor: not-allowed;
}

.trust-badges {
    margin-top: 20px;
    text-align: center;
    font-size: 0.8rem;
    color: #94a3b8;
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* =========================================
   4. CRYPTO & USDT SPECIFIC STYLES
   ========================================= */
.crypto-box {
    display: none;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    text-align: center;
}

.crypto-selector {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.crypto-chip {
    padding: 8px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    color: #64748b;
    background: white;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.crypto-chip:hover {
    background: #f1f5f9;
}

.crypto-chip.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

/* Network Dropdown */
.network-select-container {
    margin: 15px 0;
    text-align: left;
}

.network-select {
    width: 100%;
    padding: 10px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-weight: 600;
    color: #334155;
    background: white;
    cursor: pointer;
    outline: none;
}

.network-select:focus {
    border-color: #3b82f6;
}

.crypto-amount {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 5px;
}

.crypto-address-box {
    background: #fff;
    border: 1px dashed #94a3b8;
    padding: 10px;
    border-radius: 6px;
    font-family: monospace;
    word-break: break-all;
    margin: 15px 0;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}

.crypto-address-box:hover {
    background: #f1f5f9;
    border-color: #3b82f6;
}

.copy-tooltip {
    font-size: 0.75rem;
    color: #22c55e;
    display: none;
    position: absolute;
    top: -20px;
    right: 0;
    font-weight: bold;
}

.qr-placeholder {
    margin: 15px auto;
    width: 150px;
    height: 150px;
    background: #fff;
    padding: 5px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.qr-img {
    width: 100%;
    height: 100%;
}

.tx-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    margin-top: 10px;
    font-family: monospace;
}

/* Responsive Design */
@media (max-width: 768px) {
    .checkout-container {
        grid-template-columns: 1fr;
    }
    .order-summary {
        order: 2; /* Move Summary below Payment on mobile */
    }
    .payment-section {
        order: 1;
    }
}