/* =========================================================
   Qplata Payment Form — styles
   ========================================================= */

.qplata-wrapper {
    max-width: 480px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ── Form ── */
.qplata-form {
    display: flex;
    flex-direction: column;
    gap: 0;
    /* border-radius: 12px; */
    overflow: hidden;
    background: #fff;
}

.qplata-field {
    position: relative;
    border-bottom: 1px solid #e5e7eb;
}

.qplata-field:last-of-type {
    border-bottom: none;
}

.qplata-field input,
.qplata-field textarea {
    width: 100%;
    padding: 18px 16px;
    font-size: 15px;
    color: #111827;
    background: transparent;
    border: none;
    outline: none;
    box-sizing: border-box;
    resize: none;
    font-family: inherit;
}

.qplata-field input::placeholder,
.qplata-field textarea::placeholder {
    color: #9ca3af;
}

/* ── Phone field ── */
.qplata-phone-wrap {
    display: flex;
    align-items: center;
}

.qplata-phone-prefix {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 18px 0 18px 16px;
    font-size: 15px;
    color: #111827;
    white-space: nowrap;
    flex-shrink: 0;
}

.qplata-phone-prefix img {
    display: block;
}

.qplata-phone-wrap input {
    padding-left: 8px;
}

/* ── Error box ── */
.qplata-error {
    background: #fef2f2;
    color: #dc2626;
    font-size: 13px;
    padding: 10px 16px;
    border-top: 1px solid #fecaca;
}

/* ── Submit button ── */
.qplata-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    background: #facc15; /* yellow, matches screenshot */
    border: none;
    border-radius: 0 0 10px 10px;
    cursor: pointer;
    transition: background 0.15s;
    font-family: inherit;
}

.qplata-btn:hover:not(:disabled) {
    background: #eab308;
}

.qplata-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ── Spinner ── */
.qplata-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(0,0,0,0.2);
    border-top-color: #111827;
    border-radius: 50%;
    animation: qplata-spin 0.7s linear infinite;
}

@keyframes qplata-spin {
    to { transform: rotate(360deg); }
}

/* ── Payment iframe view ── */
.qplata-payment-view {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.qplata-iframe {
    width: 100%;
    height: 680px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #f9fafb;
}

/* ── Back button ── */
.qplata-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #4f46e5;
    background: #eef2ff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s;
    align-self: flex-start;
    font-family: inherit;
}

.qplata-back-btn:hover {
    background: #e0e7ff;
}

/* ── Responsive ── */
@media (max-width: 520px) {
    .qplata-iframe {
        height: 500px;
    }
}
