/**
 * Indonesian Banks Styles
 *
 * @package AgenWebsite\Payments\IndonesianBanks
 * @since 1.0.0
 */

/* ==========================================================================
   Bank Selection Styles (Checkout)
   ========================================================================== */

.aw-bank-selection-fieldset {
    margin: 20px 0;
    padding: 0;
    border: none;
}

.aw-bank-selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin: 15px 0;
}

@media (max-width: 768px) {
    .aw-bank-selection-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .aw-bank-selection-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.aw-bank-option {
    position: relative;
}

.aw-bank-radio {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.aw-bank-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #fff;
    min-height: 80px;
    justify-content: center;
}

.aw-bank-label:hover {
    border-color: #007cba;
    background-color: #f7f9fc;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.aw-bank-label.selected {
    border-color: #007cba;
    background-color: #e8f4fc;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.aw-bank-label.selecting {
    animation: selectPulse 0.3s ease;
}

@keyframes selectPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.aw-bank-logo {
    max-width: 100px;
    height: 40px;
    object-fit: contain;
    margin-bottom: 8px;
}

.aw-bank-name {
    font-size: 12px;
    text-align: center;
    color: #333;
    line-height: 1.3;
}

.aw-bank-radio:checked + .aw-bank-label .aw-bank-name {
    font-weight: 600;
    color: #007cba;
}

/* Focus styles for accessibility */
.aw-bank-radio:focus + .aw-bank-label {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

/* ==========================================================================
   Payment Instructions Styles
   ========================================================================== */

.aw-payment-instructions {
    background: #f9f9f9;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    font-size: 14px;
    line-height: 1.6;
}

.aw-payment-title {
    margin: 0 0 25px 0;
    color: #23282d;
    font-size: 20px;
    font-weight: 600;
}

.aw-section-title {
    margin: 20px 0 15px 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
    border-bottom: 2px solid #007cba;
    padding-bottom: 8px;
}

/* Bank Details Section */
.aw-bank-details {
    margin-bottom: 30px;
}

.aw-bank-info {
    background: #fff;
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.aw-info-row {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.aw-info-row:last-child {
    margin-bottom: 0;
}

.aw-info-label {
    font-weight: 600;
    color: #555;
    min-width: 140px;
}

.aw-info-value {
    color: #333;
    flex: 1;
}

/* Multiple Bank Accounts */
.aw-multiple-accounts {
    margin-top: 15px;
}

.aw-accounts-title {
    margin-bottom: 15px;
    color: #555;
    font-style: italic;
}

.aw-account-option {
    background: #fff;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.aw-account-option:hover {
    border-color: #007cba;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.aw-account-header {
    background: #f7f9fc;
    padding: 10px 20px;
    border-bottom: 1px solid #e1e5e9;
}

.aw-account-header h5 {
    margin: 0;
    font-size: 14px;
    color: #333;
}

.aw-account-details {
    padding: 15px 20px;
}

.aw-detail-row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.aw-detail-row:last-child {
    margin-bottom: 0;
}

.aw-detail-label {
    font-weight: 600;
    color: #555;
    min-width: 120px;
    font-size: 13px;
}

.aw-detail-value {
    color: #333;
    font-size: 14px;
    font-family: 'Courier New', monospace;
}

/* Copyable Elements */
.aw-copyable {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.aw-copyable:hover {
    background-color: #e8f4fc;
}

.aw-copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px;
    color: #666;
    transition: color 0.2s ease;
}

.aw-copy-btn:hover {
    color: #007cba;
}

.aw-copy-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Payment Amount Section */
.aw-payment-amount {
    margin-bottom: 30px;
}

.aw-amount-box {
    background: #fff;
    padding: 10px 20px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #007cba;
}

.aw-total-amount {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.aw-amount-label {
    font-weight: 600;
    color: #555;
    font-size: 16px;
}

.aw-amount-value {
    font-size: 24px;
    font-weight: 700;
    color: #007cba;
}

.aw-payment-code {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: #f7f9fc;
    border-radius: 4px;
    margin-bottom: 10px;
}

.aw-code-label {
    font-weight: 600;
    color: #555;
}

.aw-code-value code {
    background: #e8f4fc;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    color: #007cba;
}

.aw-code-note {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 13px;
    margin: 10px 0 0 0;
}

.aw-code-note .dashicons {
    color: #f0ad4e;
    font-size: 18px;
}

/* Additional Instructions */
.aw-additional-instructions {
    margin-bottom: 30px;
}

/* Payment Steps */
.aw-payment-steps {
    margin-bottom: 30px;
}

.aw-steps-list {
    background: #fff;
    padding: 25px 25px 25px 45px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    margin: 0;
}

.aw-steps-list li {
    margin-bottom: 15px;
    color: #333;
    position: relative;
}

.aw-steps-list li:last-child {
    margin-bottom: 0;
}

/* Important Notes */
.aw-payment-notes {
    background: #fffbf0;
    border: 1px solid #f0ad4e;
    border-radius: 6px;
    padding: 20px;
}

.aw-notes-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.aw-notes-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    color: #856404;
}

.aw-notes-list li:last-child {
    margin-bottom: 0;
}

.aw-notes-list .dashicons {
    color: #f0ad4e;
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Copy Notification */
.aw-copy-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #333;
    color: #fff;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 14px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.aw-copy-notification.show {
    opacity: 1;
    visibility: visible;
}

/* Email Styles */
.aw-payment-instructions table {
    width: 100%;
    border-collapse: collapse;
}

.aw-payment-instructions table td {
    padding: 8px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .aw-payment-instructions {
        padding: 20px;
    }
    
    .aw-info-row,
    .aw-detail-row,
    .aw-total-amount,
    .aw-payment-code {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .aw-amount-value {
        font-size: 20px;
    }
    
    .aw-bank-info,
    .aw-amount-box,
    .aw-instructions-content,
    .aw-steps-list {
        padding: 15px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .aw-payment-instructions {
        background: #1e1e1e;
        border-color: #333;
        color: #ddd;
    }
    
    .aw-bank-info,
    .aw-amount-box,
    .aw-instructions-content,
    .aw-steps-list {
        background: #2a2a2a;
    }
    
    .aw-section-title,
    .aw-payment-title {
        color: #fff;
    }
    
    .aw-info-label,
    .aw-detail-label,
    .aw-amount-label,
    .aw-code-label {
        color: #aaa;
    }
    
    .aw-info-value,
    .aw-detail-value,
    .aw-steps-list li {
        color: #ddd;
    }
}