/**
 * Odomankoma Payment Options Styles
 * 
 * Styles for payment option selection UI
 * 
 * @package Astra Child - Odomankoma
 * @since 1.0.0
 */

/* ========================================
   Payment Options Container
   ======================================== */

.odomankoma-payment-options {
    margin: 2rem 0;
    padding: 2rem;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.payment-options-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c5e2a;
    font-family: 'Playfair Display', serif;
}

.payment-options-description {
    margin: 0 0 1.5rem 0;
    color: #666;
    font-size: 0.95rem;
}

/* ========================================
   Payment Option Buttons
   ======================================== */

.payment-option-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    min-height: 80px;
}

.payment-option:hover {
    background: #f0f4f0;
    border-color: #2c5e2a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 94, 42, 0.15);
}

.payment-option.selected {
    background: #e8f5e8;
    border-color: #2c5e2a;
    border-width: 3px;
    box-shadow: 0 4px 12px rgba(44, 94, 42, 0.2);
}

.payment-option-icon {
    font-size: 2rem;
    line-height: 1;
    flex-shrink: 0;
}

.payment-option-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    text-align: left;
}

.payment-option-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c5e2a;
    line-height: 1.2;
}

.payment-option-sublabel {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.2;
}

/* ========================================
   Payment Instructions
   ======================================== */

.payment-instructions {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #e2b13b;
}

.payment-instructions-content h4 {
    margin: 0 0 1rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c5e2a;
    font-family: 'Playfair Display', serif;
}

/* Mobile Money Instructions */
.momo-instructions .payment-amount-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #ffffff;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 2px solid #e2b13b;
}

.payment-amount-label {
    font-size: 0.95rem;
    color: #666;
}

.payment-amount-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c5e2a;
}

.payment-momo-number {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: #ffffff;
    border-radius: 8px;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.momo-number-label {
    font-size: 0.95rem;
    color: #666;
}

.momo-number-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c5e2a;
    letter-spacing: 0.5px;
    flex: 1;
    min-width: 200px;
}

.copy-momo-number {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #e2b13b;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.copy-momo-number:hover {
    background: #d4a02f;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.copy-momo-number.copied {
    background: #2c5e2a;
}

.copy-icon {
    font-size: 1.1rem;
}

.payment-reference-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: #ffffff;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.reference-label {
    font-size: 0.9rem;
    color: #666;
}

.reference-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c5e2a;
    font-family: 'Courier New', monospace;
}

.payment-steps {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.payment-steps li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
    color: #333;
}

.payment-steps li strong {
    color: #2c5e2a;
    font-weight: 600;
}

.payment-confirmation-checkbox {
    margin: 1.5rem 0;
    padding: 1rem;
    background: #ffffff;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
}

.payment-confirmation-checkbox label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-weight: 500;
    color: #333;
}

.payment-confirmation-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #2c5e2a;
}

.payment-note {
    margin: 1rem 0 0 0;
    padding: 0.75rem;
    background: #fff8e1;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #666;
}

/* Pay Later Instructions */
.pay-later-instructions .pay-later-message {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.6;
    color: #333;
}

.accepted-methods {
    margin: 1.5rem 0;
    padding: 1rem;
    background: #ffffff;
    border-radius: 8px;
}

.accepted-methods h5 {
    margin: 0 0 0.75rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: #2c5e2a;
}

.accepted-methods ul {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

.accepted-methods li {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    color: #333;
}

.pay-later-note {
    margin: 1rem 0 0 0;
    padding: 0.75rem;
    background: #fff8e1;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #666;
}

/* ========================================
   Error Message
   ======================================== */

.payment-error {
    margin-top: 1rem;
    padding: 1rem;
    background: #fee;
    border: 2px solid #fcc;
    border-radius: 8px;
    color: #c33;
}

.payment-error p {
    margin: 0;
    font-weight: 500;
}

/* ========================================
   Mobile Responsive Design
   ======================================== */

@media (max-width: 768px) {
    .odomankoma-payment-options {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }
    
    .payment-options-title {
        font-size: 1.25rem;
    }
    
    /* Stack payment option buttons vertically on mobile */
    .payment-option-buttons {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .payment-option {
        padding: 1rem;
        min-height: 70px;
    }
    
    .payment-option-icon {
        font-size: 1.75rem;
    }
    
    .payment-option-label {
        font-size: 1rem;
    }
    
    .payment-option-sublabel {
        font-size: 0.85rem;
    }
    
    /* Mobile Money number tap-to-copy */
    .payment-momo-number {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .momo-number-value {
        font-size: 1.25rem;
        min-width: auto;
        width: 100%;
        word-break: break-all;
    }
    
    .copy-momo-number {
        width: 100%;
        justify-content: center;
        padding: 0.75rem;
    }
    
    .payment-amount-box,
    .payment-reference-box {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .payment-amount-value {
        font-size: 1.25rem;
    }
    
    .payment-instructions {
        padding: 1rem;
    }
    
    .payment-steps {
        padding-left: 1.25rem;
    }
    
    .payment-steps li {
        font-size: 0.95rem;
    }
}

@media (max-width: 414px) {
    .odomankoma-payment-options {
        padding: 1rem;
        margin: 1rem 0;
    }
    
    .payment-option {
        min-height: 60px;
    }
    
    .payment-option-icon {
        font-size: 1.5rem;
    }
}

/* Ensure touch-friendly button sizes on mobile */
@media (max-width: 768px) {
    .payment-option,
    .copy-momo-number {
        min-height: 44px;
        min-width: 44px;
    }
}

/* ========================================
   Accessibility
   ======================================== */

.payment-option:focus {
    outline: 3px solid #e2b13b;
    outline-offset: 2px;
}

.copy-momo-number:focus {
    outline: 3px solid #2c5e2a;
    outline-offset: 2px;
}

.payment-confirmation-checkbox input[type="checkbox"]:focus {
    outline: 3px solid #2c5e2a;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .payment-option {
        border-width: 3px;
    }
    
    .payment-option.selected {
        border-width: 4px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .payment-option,
    .copy-momo-number {
        transition: none;
    }
    
    .payment-option:hover {
        transform: none;
    }
}
