/**
 * File: payment-bank-transfer.css
 * Location: /assets/css/payment-bank-transfer.css
 * Purpose: Styling the Bank Transfer Gateway (Safe Compatibility Version).
 */

/* 1. Gateway Item Container */
.daf-gateway-item {
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #ffffff;
}

.daf-gateway-item:hover {
    border-color: #cbd5e1;
}

/* 2. Label & Input Handling */
.daf-gateway-label {
    display: block;
    cursor: pointer;
    padding: 20px;
    position: relative;
}

/* Radio button ko physically hide karna lekin exist rehne dena */
.daf-gateway-label input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* 3. Gateway Header UI (Selection Highlights) */
.daf-gateway-ui {
    display: flex;
    align-items: center;
    gap: 18px;
    transition: all 0.3s ease;
}

.daf-gateway-ui .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
    color: #64748b;
}

.daf-gateway-text strong {
    display: block;
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
}

/* ✅ Selection Logic: Jab input check ho toh icon green ho jaye */
.daf-gateway-label input:checked + .daf-gateway-ui .dashicons {
    color: #8cc63f;
}

.daf-gateway-label input:checked + .daf-gateway-ui .daf-gateway-text strong {
    color: #8cc63f;
}

/* 4. Details Section (Expanded on Click) */
.daf-gateway-details {
    display: none;
    padding: 20px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

/* Standard sibling selector to show details */
.daf-gateway-label input:checked ~ .daf-gateway-details {
    display: block;
    animation: dafFadeIn 0.4s ease;
}

/* 5. Bank Info Table (App Style) */
.daf-bank-info-table {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
}

.daf-bank-info-table .row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
}

.daf-bank-info-table .row:last-child {
    border-bottom: none;
}

.daf-bank-info-table .value {
    font-size: 13px;
    color: #1e293b;
    font-weight: 700;
}

/* 6. Note Box */
.daf-gateway-note {
    margin-top: 15px;
    font-size: 13px;
    color: #856404;
    background: #fff9db;
    padding: 14px;
    border-radius: 10px;
    border-left: 4px solid #f59e0b;
}

@keyframes dafFadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
    .daf-bank-info-table .row { flex-direction: column; gap: 4px; }
}