/* QPay Payment Gateway - Checkout Styles */

.qpay-payment-wrap,
.qpay-form-wrap {
    max-width: 560px;
    margin: 20px auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Status bar */
.qpay-status-bar {
    background: #1a6efc;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px 8px 0 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    transition: background .3s;
}

.qpay-status-dot {
    width: 8px;
    height: 8px;
    background: rgba(255,255,255,.6);
    border-radius: 50%;
    animation: qpay-pulse 1.5s infinite;
    flex-shrink: 0;
}

@keyframes qpay-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .3; }
}

/* Content area */
.qpay-content,
.qpay-panel {
    background: #fff;
    border: 1px solid #e8e8e4;
    border-top: none;
    border-radius: 0 0 8px 8px;
    padding: 32px 24px;
}

/* Amount */
.qpay-amount,
.qpay-amount-display {
    text-align: center;
    font-size: 40px;
    font-weight: 700;
    color: #0f1117;
    margin: 0 0 20px;
    line-height: 1;
}

.qpay-amount span,
.qpay-amount-display span {
    font-size: 18px;
    font-weight: 400;
    color: #8a8f9e;
    margin-left: 6px;
}

/* QR Code */
.qpay-qr-section {
    text-align: center;
}

.qpay-qr-wrap {
    display: inline-block;
    padding: 12px;
    background: #fff;
    border: 2px solid #e8e8e4;
    border-radius: 12px;
    margin-bottom: 12px;
}

.qpay-qr-img {
    display: block;
    width: 200px;
    height: 200px;
}

.qpay-qr-hint {
    font-size: 13px;
    color: #8a8f9e;
    margin: 0 0 16px;
}

/* Timer */
.qpay-timer {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f0f6fc;
    color: #1a6efc;
    font-size: 13px;
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 24px;
}

#qpay-countdown {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

/* Deeplinks */
.qpay-deeplinks {
    border-top: 1px solid #e8e8e4;
    padding-top: 24px;
    margin-top: 24px;
}

.qpay-deeplinks-title {
    font-size: 13px;
    color: #8a8f9e;
    text-align: center;
    margin: 0 0 16px;
}

.qpay-bank-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
}

.qpay-bank-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 8px;
    background: #fafaf8;
    border: 1px solid #e8e8e4;
    border-radius: 8px;
    text-decoration: none;
    transition: border-color .15s, transform .15s;
    cursor: pointer;
}

.qpay-bank-btn:hover {
    border-color: #1a6efc;
    transform: translateY(-1px);
    text-decoration: none;
}

.qpay-bank-icon {
    font-size: 20px;
}

.qpay-bank-name {
    font-size: 11px;
    color: #4a4f5e;
    text-align: center;
    line-height: 1.3;
}

/* Simple form */
.qpay-amount-form {
    background: #fff;
    border: 1px solid #e8e8e4;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 0;
}

.qpay-form-field {
    margin-bottom: 16px;
}

.qpay-form-field label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #4a4f5e;
    margin-bottom: 6px;
}

.qpay-amount-input,
.qpay-desc-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e8e8e4;
    border-radius: 6px;
    font-size: 15px;
    color: #0f1117;
    transition: border-color .15s;
    box-sizing: border-box;
}

.qpay-amount-input:focus,
.qpay-desc-input:focus {
    outline: none;
    border-color: #1a6efc;
}

.qpay-submit-btn,
.qpay-pay-now-btn {
    width: 100%;
    background: #0f1117;
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background .15s;
}

.qpay-submit-btn:hover,
.qpay-pay-now-btn:hover {
    background: #1a6efc;
}

.qpay-fixed-amount {
    text-align: center;
    background: #fff;
    border: 1px solid #e8e8e4;
    border-radius: 8px;
    padding: 24px;
}

.qpay-desc-display {
    font-size: 14px;
    color: #8a8f9e;
    margin-bottom: 20px;
}

.qpay-cancel-btn {
    display: block;
    width: 100%;
    background: none;
    border: 1px solid #e8e8e4;
    color: #8a8f9e;
    padding: 10px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    margin-top: 16px;
    transition: border-color .15s, color .15s;
}

.qpay-cancel-btn:hover {
    border-color: #d63638;
    color: #d63638;
}

/* Mobile */
@media (max-width: 480px) {
    .qpay-qr-img {
        width: 160px;
        height: 160px;
    }

    .qpay-bank-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .qpay-amount,
    .qpay-amount-display {
        font-size: 32px;
    }
}

/* I have paid button */
.qpay-check-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: 2px solid #1a6efc;
    color: #1a6efc;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all .15s;
    margin-top: 8px;
    margin-bottom: 8px;
}

.qpay-check-btn:hover {
    background: #1a6efc;
    color: #fff;
}

.qpay-check-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
}

/* eBarimt selector */
.qpay-ebarimt-selector {
    background: #fff;
    border: 1px solid #e8e8e4;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
}

.qpay-ebarimt-title {
    font-size: 14px;
    font-weight: 500;
    color: #0f1117;
    margin: 0 0 14px;
}

.qpay-ebarimt-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

@media (max-width: 480px) {
    .qpay-ebarimt-options {
        grid-template-columns: 1fr;
    }
}

.qpay-ebarimt-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1.5px solid #e8e8e4;
    border-radius: 8px;
    cursor: pointer;
    transition: all .15s;
    background: #fafaf8;
}

.qpay-ebarimt-option:hover {
    border-color: #1a6efc;
    background: #f0f6fc;
}

.qpay-ebarimt-option input[type="radio"] {
    accent-color: #1a6efc;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin: 0;
}

.qpay-ebarimt-option input[type="radio"]:checked ~ span:first-of-type,
.qpay-ebarimt-option:has(input:checked) {
    border-color: #1a6efc;
    background: #f0f6fc;
}

.qpay-ebarimt-option:has(input:checked) {
    border-color: #1a6efc;
    background: #f0f6fc;
}

.qpay-ebarimt-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.qpay-ebarimt-option span:last-child {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.qpay-ebarimt-option strong {
    font-size: 13px;
    color: #0f1117;
    font-weight: 500;
}

.qpay-ebarimt-option small {
    font-size: 11px;
    color: #8a8f9e;
}

.qpay-ebarimt-company-reg {
    margin-top: 8px;
    animation: fadeIn .2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Success overlay */
.qpay-content {
    transition: opacity .3s ease;
}

.qpay-success-overlay {
    text-align: center;
    padding: 40px 20px;
    animation: qpaySuccessPop .4s ease;
}

@keyframes qpaySuccessPop {
    0%   { transform: scale(.95); opacity: 0; }
    60%  { transform: scale(1.02); }
    100% { transform: scale(1); opacity: 1; }
}
