/* E-Transfer Gateway - Frontend Styles */
/* Modern Bootstrap 5 Enhanced Design */

/* Hide Order Details & Billing Address on Thank You page for e-transfer orders */
.woocommerce-order-received .woocommerce-order-details,
.woocommerce-order-received .woocommerce-customer-details {
    display: none !important;
}

/* Payment Instructions Card - Dark Theme with e-Transfer Orange */
.etransfer-card {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    margin: 30px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    border: 1px solid rgba(245, 166, 35, 0.2);
}

.etransfer-card-header {
    background: linear-gradient(135deg, #f5a623 0%, #e67e22 100%);
    padding: 20px 25px;
    border-bottom: none;
}

.etransfer-card-header h2 {
    color: #000000;
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

.etransfer-card-header .icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.etransfer-card-body {
    background: #1e1e2f;
    padding: 25px;
}

/* Progress Steps */
.etransfer-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
    padding: 0 10px;
}

.etransfer-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
}

.etransfer-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    width: 100%;
    height: 3px;
    background: #2d2d44;
    z-index: 0;
}

.etransfer-step.completed:not(:last-child)::after {
    background: #f5a623;
}

.etransfer-step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #2d2d44;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #8b8b9e;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.etransfer-step.completed .etransfer-step-icon {
    background: #f5a623;
    color: #fff;
}

.etransfer-step.active .etransfer-step-icon {
    background: #f5a623;
    color: #fff;
    box-shadow: 0 0 0 4px rgba(245, 166, 35, 0.25);
}

.etransfer-step-label {
    margin-top: 10px;
    font-size: 0.85rem;
    color: #8b8b9e;
    font-weight: 500;
}

.etransfer-step.active .etransfer-step-label,
.etransfer-step.completed .etransfer-step-label {
    color: #e0e0e0;
}

/* Payment Details - Dark */
.etransfer-details {
    background: #252538;
    border-radius: 12px;
    padding: 20px;
    margin: 0 auto 20px auto;
    border: 1px solid #3d3d54;
}

.etransfer-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #3d3d54;
}

.etransfer-detail-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.etransfer-detail-row:first-child {
    padding-top: 0;
}

.etransfer-detail-label {
    color: #8b8b9e;
    font-size: 0.9rem;
    font-weight: 500;
    flex-shrink: 0;
}

.etransfer-detail-value {
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: right;
}

.etransfer-detail-value strong {
    font-size: 1rem;
    color: #e0e0e0;
    text-align: left;
}

/* Copy Button - e-Transfer Orange */
.etransfer-copy-btn {
    background: #f5a623;
    color: #000000;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.etransfer-copy-btn:hover {
    background: #e67e22;
    transform: translateY(-1px);
}

.etransfer-copy-btn.copied {
    background: #28a745;
}

.etransfer-copy-btn svg {
    width: 16px;
    height: 16px;
}

/* Amount Highlight - e-Transfer Orange */
.etransfer-amount {
    background: linear-gradient(135deg, #f5a623 0%, #e67e22 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.5rem !important;
    font-weight: 700;
}

/* Note Box - Dark */
.etransfer-note {
    background: rgba(245, 166, 35, 0.1);
    border-left: 4px solid #f5a623;
    padding: 15px 20px;
    border-radius: 0 8px 8px 0;
    margin-top: 20px;
}

.etransfer-note p {
    margin: 0;
    color: #e0e0e0;
    font-size: 0.9rem;
}

.etransfer-note .icon {
    margin-right: 10px;
}

/* Responsive */
@media (max-width: 576px) {
    .etransfer-card {
        margin: 20px 0;
        border-radius: 12px;
    }

    .etransfer-card-header {
        padding: 15px 20px;
    }

    .etransfer-card-header h2 {
        font-size: 1.2rem;
    }

    .etransfer-card-body {
        padding: 20px;
    }

    .etransfer-detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .etransfer-detail-value {
        width: 100%;
        justify-content: space-between;
    }

    .etransfer-progress {
        padding: 0;
    }

    .etransfer-step-label {
        font-size: 0.75rem;
    }
}

/* Desktop styles */
@media (min-width: 768px) {
    .etransfer-details {
        width: 50%;
        max-width: 600px;
    }
}

/* ===== LIGHT THEME ===== */
.etransfer-card.etransfer-light {
    background: linear-gradient(135deg, #f5a623 0%, #f7931e 50%, #e67e22 100%);
    box-shadow: 0 10px 40px rgba(245, 166, 35, 0.35);
    border: none;
}

.etransfer-light .etransfer-card-body {
    background: #fff;
}

.etransfer-light .etransfer-step:not(:last-child)::after {
    background: #e9ecef;
}

.etransfer-light .etransfer-step.completed:not(:last-child)::after {
    background: #28a745;
}

.etransfer-light .etransfer-step-icon {
    background: #e9ecef;
    color: #6c757d;
}

.etransfer-light .etransfer-step.completed .etransfer-step-icon {
    background: #28a745;
}

.etransfer-light .etransfer-step.active .etransfer-step-icon {
    background: #f5a623;
}

.etransfer-light .etransfer-step-label {
    color: #6c757d;
}

.etransfer-light .etransfer-step.active .etransfer-step-label,
.etransfer-light .etransfer-step.completed .etransfer-step-label {
    color: #212529;
}

.etransfer-light .etransfer-details {
    background: #f8f9fa;
    border: none;
}

.etransfer-light .etransfer-detail-row {
    border-bottom-color: #e9ecef;
}

.etransfer-light .etransfer-detail-label {
    color: #6c757d;
}

.etransfer-light .etransfer-detail-value strong {
    color: #212529;
}

.etransfer-light .etransfer-note {
    background: #fff8e6;
}

.etransfer-light .etransfer-note p {
    color: #856404;
}