/* PromptPay QR — Stylesheet */

.pp-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    max-width: 640px;
    margin: 32px auto;
    font-family: 'Sarabun', sans-serif;
}

/* ===== QR Section ===== */
.pp-qr-section {
    flex: 1;
    min-width: 200px;
    background: #fff;
    border: 2px solid #1a56db;
    border-radius: 16px;
    padding: 24px 20px;
    text-align: center;
    box-shadow: 0 4px 24px rgba(26, 86, 219, .1);
}

.pp-badge {
    display: inline-block;
    background: #1a56db;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 3px 12px;
    border-radius: 20px;
    margin-bottom: 14px;
}

.pp-qr-img {
    width: 180px;
    height: 180px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    display: block;
    margin: 0 auto;
}

.pp-amount {
    margin-top: 14px;
    font-size: 14px;
    color: #6b7280;
}

.pp-amount span {
    display: block;
    font-size: 30px;
    font-weight: 800;
    color: #1a56db;
    line-height: 1.2;
}

.pp-amount span em {
    font-style: normal;
    font-size: 16px;
    font-weight: 600;
}

.pp-phone {
    margin-top: 8px;
    font-size: 13px;
    color: #9ca3af;
}

/* ===== Upload Section ===== */
.pp-upload-section {
    flex: 1;
    min-width: 220px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.pp-drop-zone {
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    padding: 32px 16px;
    text-align: center;
    cursor: pointer;
    background: #f9fafb;
    transition: border-color .2s ease, background .2s ease;
}

.pp-drop-zone:hover,
.pp-drop-zone.is-drag-over {
    border-color: #1a56db;
    background: #eff6ff;
}

.pp-drop-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.pp-drop-text {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    line-height: 1.7;
}

.pp-drop-text small {
    display: block;
    font-size: 12px;
    color: #9ca3af;
}

/* Preview */
.pp-preview-wrap {
    text-align: center;
}

.pp-preview-wrap img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    object-fit: contain;
}

#pp-change-btn {
    display: inline-block;
    margin-top: 8px;
    background: none;
    border: none;
    font-size: 13px;
    color: #ef4444;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}

/* Submit Button */
.pp-submit-btn {
    width: 100%;
    background: #1a56db;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 14px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s ease, opacity .2s ease;
}

.pp-submit-btn:disabled {
    background: #93c5fd;
    cursor: not-allowed;
}

.pp-submit-btn:not(:disabled):hover {
    background: #1e429f;
}

/* Result */
.pp-result {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

.pp-result.is-success {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.pp-result.is-error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

/* Error fallback */
.pp-error {
    color: #dc2626;
    font-size: 14px;
}
