/**
 * Market4ch Bank Gateway Checkout Styles
 */

.m4c-checkout-fields {
    margin: 20px 0;
    padding: 20px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

/* Bank Details Section */
.m4c-bank-details-section {
    margin-bottom: 20px;
}

.m4c-bank-details-section h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

.m4c-bank-info {
    background: #fff;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.m4c-currency-label {
    margin: 0 0 12px 0;
    font-size: 15px;
    color: #1f2937;
}

.m4c-details-table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
}

.m4c-details-table tr {
    border-bottom: 1px solid #f3f4f6;
}

.m4c-details-table tr:last-child {
    border-bottom: none;
}

.m4c-details-table td {
    padding: 8px 0;
    vertical-align: top;
    font-size: 14px;
}

.m4c-details-table td:first-child {
    width: 40%;
    color: #6b7280;
}

.m4c-details-table td:last-child {
    color: #1f2937;
    font-weight: 500;
}

.m4c-transfer-note {
    margin: 10px 0 0 0;
    font-size: 13px;
    color: #6b7280;
}

/* Sender Name Section */
.m4c-sender-name-section {
    margin: 20px 0;
}

.m4c-field-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #374151;
    font-size: 14px;
}

.m4c-field-label .required {
    color: #ef4444;
    font-weight: bold;
}

.m4c-sender-input {
    width: 100% !important;
    padding: 12px 16px !important;
    border: 2px solid #d1d5db !important;
    border-radius: 6px !important;
    font-size: 15px !important;
    transition: all 0.2s ease;
    box-sizing: border-box !important;
}

.m4c-sender-input:focus {
    outline: none !important;
    border-color: #667eea !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1) !important;
}

.m4c-sender-input.woocommerce-invalid {
    border-color: #ef4444 !important;
}

.m4c-sender-input.woocommerce-invalid:focus {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

.m4c-field-hint {
    display: block;
    color: #6b7280;
    font-size: 13px;
    margin-top: 6px;
}

/* Important Notice */
.m4c-important-notice {
    background: #fff3cd;
    border: 1px solid #ffc107;
    padding: 15px;
    border-radius: 6px;
    margin-top: 20px;
}

.m4c-important-notice strong {
    display: block;
    margin-bottom: 8px;
    color: #856404;
}

.m4c-important-notice ul {
    margin: 0 0 0 20px;
    padding: 0;
}

.m4c-important-notice li {
    margin-bottom: 6px;
    line-height: 1.5;
    color: #856404;
}

.m4c-important-notice li:last-child {
    margin-bottom: 0;
}

/* Thank You Page */
.m4c-thankyou-section {
    margin: 20px 0 !important;
}

.m4c-thankyou-details {
    background: #f9fafb;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    margin-top: 15px;
}

.m4c-order-info {
    background: #fff;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    margin: 15px 0;
}

.m4c-order-info p {
    margin: 8px 0;
    font-size: 14px;
}

.m4c-order-info p:first-child {
    margin-top: 0;
}

.m4c-order-info p:last-child {
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .m4c-checkout-fields {
        padding: 16px;
    }

    .m4c-thankyou-details {
        padding: 16px;
    }

    .m4c-details-table td {
        font-size: 13px;
    }

    .m4c-details-table td:first-child {
        width: 45%;
    }
}

/* CartFlows Compatibility */
.wcf-embed-checkout-form .m4c-checkout-fields,
.cartflows-step .m4c-checkout-fields {
    margin: 15px 0;
}

/* WooCommerce Blocks Compatibility */
.wc-block-checkout .m4c-checkout-fields {
    margin: 15px 0;
}
