/* Checkout Page Styles - XP/Candy Theme */

#card-element {
    background: white;
}
.card-label {
    color: #333;
}

.checkout-window {
    width: 700px;
    max-width: 95%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.checkout-content {
    background: #ECE9D8;
    padding: 20px;
    display: flex;
    gap: 20px;
    flex: 1;
    overflow-y: auto;
}

@media (max-width: 600px) {
    .checkout-content {
        flex-direction: column;
    }
}

/* Left Panel: Order Summary */
.checkout-summary {
    flex: 1;
    background: white;
    border: 2px solid #D4D0C8;
    border-radius: var(--radius-panel);
    padding: 15px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.summary-header {
    border-bottom: 2px solid #ECE9D8;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.summary-header h3 {
    margin: 0;
    color: #0A246A;
    font-family: var(--font-header);
    font-size: 16px;
}

.plan-display {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    background: #F9FAFC;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #E0E4E8;
}

.plan-icon-large {
    font-size: 32px;
    background: #fff;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.plan-details h4 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.plan-details .price {
    color: #0A246A;
    font-weight: bold;
    font-size: 14px;
}

.summary-rows {
    font-size: 12px;
    color: #555;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
}

.summary-row.total {
    border-top: 2px solid #ECE9D8;
    margin-top: 10px;
    padding-top: 10px;
    font-weight: bold;
    color: #000;
    font-size: 14px;
}

/* Right Panel: Payment Method */
.checkout-payment {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.payment-section {
    background: white;
    border: 1px solid #7F9DB9;
    border-radius: var(--radius-panel);
    padding: 15px;
}

.payment-header {
    font-weight: bold;
    color: #0A246A;
    font-size: 13px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid #D4D0C8;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.1s;
}

.payment-option:hover {
    background: #F0F5FF;
    border-color: #316AC5;
}

.payment-option input {
    width: auto !important; /* Override mobile generic width */
}

.payment-option label {
    flex: 1;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    color: #444;
}

.cc-icons {
    display: flex;
    gap: 5px;
}

.cc-icon {
    width: 30px;
    height: 20px;
    background: #eee;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    color: #888;
}

.info-note {
    font-size: 11px;
    color: #595959;
    background: #FFFFE1;
    border: 1px solid #E6DB55;
    padding: 8px;
    border-radius: 4px;
    display: flex;
    gap: 8px;
}

.secure-badge {
    text-align: center;
    font-size: 10px;
    color: #888;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

/* Checkout line items (invoice) */
.checkout-line-item {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 12px;
    border-bottom: 1px solid #E0E4E8;
}
.checkout-line-item:last-child {
    border-bottom: none;
}

/* === CHECKOUT NIGHT MODE === */
body.night-mode .checkout-content {
    background: #2f3640;
}
body.night-mode .checkout-summary {
    background: #353b48;
    border-color: #576574;
    color: #dcdde1;
}
body.night-mode .summary-header {
    border-color: #576574;
}
body.night-mode .summary-header h3 {
    color: #fff;
}
body.night-mode .plan-display {
    background: #2f3640;
    border-color: #576574;
}
body.night-mode .plan-icon-large {
    background: #353b48;
}
body.night-mode .plan-details h4 {
    color: #fff;
}
body.night-mode .plan-details .price {
    color: #7eb8ff;
}
body.night-mode .summary-rows {
    color: #dcdde1;
}
body.night-mode .summary-row {
    color: #dcdde1;
}
body.night-mode .summary-row.total {
    border-color: #576574;
    color: #fff;
}
body.night-mode .summary-row.total span[style*="color: #0A246A"] {
    color: #7eb8ff !important;
}
body.night-mode .checkout-line-item {
    color: #dcdde1;
    border-color: #576574;
}
body.night-mode .payment-section {
    background: #353b48;
    border-color: #576574;
    color: #dcdde1;
}
body.night-mode .payment-header {
    color: #7eb8ff;
}
body.night-mode .card-label {
    color: #dcdde1 !important;
}
body.night-mode #card-element {
    background: #2f3640 !important;
    border-color: #576574 !important;
}
body.night-mode .info-note {
    background: #353b48;
    border-color: #576574;
    color: #dcdde1;
}
body.night-mode .checkout-window div[style*="background: #e3f2fd"] {
    background: #1a3a5c !important;
    border-color: #2a5a8c !important;
}
body.night-mode .checkout-window div[style*="background: #e3f2fd"] div[style*="color: #333"] {
    color: #dcdde1 !important;
}
body.night-mode .checkout-window div[style*="color: #0A246A"] {
    color: #7eb8ff !important;
}
body.night-mode .checkout-window div[style*="color: #595959"] {
    color: #aaa !important;
}
body.night-mode .checkout-window div[style*="color: #555"] {
    color: #aaa !important;
}
body.night-mode .checkout-window div[style*="color: #444"] {
    color: #bbb !important;
}
body.night-mode .checkout-window span[style*="color: #444"] {
    color: #bbb !important;
}
body.night-mode .checkout-window div[style*="background: #f5f5f5"] {
    background: #2f3640 !important;
    border-color: #576574 !important;
}
body.night-mode .checkout-window div[style*="background: #ECE9D8"] {
    background: #353b48 !important;
    border-color: #576574 !important;
    color: #dcdde1 !important;
}
body.night-mode #payment-success {
    background: #1a3a2a !important;
    border-color: #2e7d32 !important;
}
body.night-mode #payment-success div[style*="color: #333"] {
    color: #dcdde1 !important;
}
body.night-mode .secure-badge {
    color: #888;
}
