/* shopAccount/public/assets/css/payOs/payos.css */

.payos-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    z-index: 9999;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 30px 12px;
    overflow-y: auto;
}

.payos-overlay.is-open {
    display: flex;
}

.payos-box {
    background: #fff;
    width: 100%;
    max-width: 440px;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    animation: payosFadeIn .18s ease-out;
}

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

.payos-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: linear-gradient(135deg, #1e40af, #2563eb);
    color: #fff;
}

.payos-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}

.payos-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
}

.payos-body {
    padding: 18px;
}

.payos-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

.payos-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 15px;
    box-sizing: border-box;
    margin-bottom: 12px;
}

.payos-input:focus {
    outline: none;
    border-color: #2563eb;
}

.payos-quick-amounts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 14px;
}

.payos-chip {
    padding: 8px 4px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    cursor: pointer;
    transition: all .15s;
}

.payos-chip:hover { border-color: #2563eb; color: #2563eb; }
.payos-chip.active { background: #2563eb; border-color: #2563eb; color: #fff; }

.payos-btn {
    display: block;
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: #2563eb;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
}

.payos-btn:hover { background: #1d4ed8; }
.payos-btn:disabled { background: #94a3b8; cursor: not-allowed; }

.payos-btn-outline {
    display: block;
    width: 100%;
    padding: 10px;
    border: 1px solid #2563eb;
    border-radius: 8px;
    background: #fff;
    color: #2563eb;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    margin-top: 10px;
    box-sizing: border-box;
}

.payos-note {
    font-size: 12px;
    color: #64748b;
    margin: 8px 0 0;
    line-height: 1.5;
}

.payos-alert {
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 12px;
}

.payos-alert.error   { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.payos-alert.warning { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.payos-alert.info    { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }

/* Khu vực QR */
.payos-qr-wrap {
    text-align: center;
}

.payos-qr-wrap img {
    width: 250px;
    max-width: 100%;
    height: auto;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 6px;
    background: #fff;
}

.payos-amount-big {
    font-size: 22px;
    font-weight: 800;
    color: #dc2626;
    margin: 10px 0 4px;
}

.payos-bank-info {
    margin-top: 12px;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 13px;
    color: #334155;
    text-align: left;
}

.payos-bank-info .row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 3px 0;
}

.payos-bank-info .row span:last-child {
    font-weight: 700;
    word-break: break-all;
    text-align: right;
}

.payos-copy {
    border: none;
    background: #e2e8f0;
    border-radius: 5px;
    font-size: 11px;
    padding: 2px 6px;
    margin-left: 6px;
    cursor: pointer;
}

.payos-waiting {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
    font-size: 13px;
    color: #475569;
}

.payos-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #cbd5e1;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: payosSpin .8s linear infinite;
}

@keyframes payosSpin { to { transform: rotate(360deg); } }

.payos-success {
    text-align: center;
}

.payos-success .icon { font-size: 44px; }

.payos-success h4 {
    margin: 6px 0 10px;
    color: #16a34a;
    font-size: 18px;
}

.payos-delivered {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 10px;
    font-family: monospace;
    font-size: 13px;
    box-sizing: border-box;
    resize: vertical;
}
