/* Manual QR Payment Gateway - Checkout Styles v2.0.0 */
/* Accent color is driven by --mqpg-color CSS variable set inline per gateway */

.mqpg-checkout-wrapper {
    margin-top: 12px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --mqpg-color: #333333; /* fallback; overridden inline per gateway */
}

.mqpg-description {
    color: #555;
    margin-bottom: 16px;
    font-size: 14px;
}

/* ── Section Titles ─────────────────────────────────────────────────────── */
.mqpg-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--mqpg-color);
    margin: 18px 0 10px;
    padding-bottom: 6px;
    border-bottom: 2px solid color-mix(in srgb, var(--mqpg-color) 15%, transparent);
}

.mqpg-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: var(--mqpg-color);
    border-radius: 50%;
    flex-shrink: 0;
}

.mqpg-required {
    color: #e74c3c;
    font-size: 16px;
    font-weight: 900;
}

/* ── Account Details ────────────────────────────────────────────────────── */
.mqpg-account-details {
    background: color-mix(in srgb, var(--mqpg-color) 8%, white);
    border: 1px solid color-mix(in srgb, var(--mqpg-color) 30%, white);
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 16px;
}

.mqpg-details-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.mqpg-details-table td {
    padding: 4px 8px 4px 0;
    vertical-align: middle;
}

.mqpg-label {
    color: #666;
    white-space: nowrap;
    font-weight: 600;
    width: 140px;
}

.mqpg-value {
    color: #222;
    font-size: 15px;
}

/* ── QR Code ────────────────────────────────────────────────────────────── */
.mqpg-qr-section {
    text-align: center;
    margin-bottom: 16px;
}

.mqpg-qr-container {
    display: inline-block;
    background: #fff;
    border: 2px solid var(--mqpg-color);
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 2px 12px color-mix(in srgb, var(--mqpg-color) 20%, transparent);
    margin: 8px 0;
}

.mqpg-qr-image {
    display: block;
    max-width: 200px;
    height: auto;
    margin: 0 auto;
    border-radius: 6px;
}

.mqpg-qr-caption {
    margin: 8px 0 0;
    color: var(--mqpg-color);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ── Instructions ───────────────────────────────────────────────────────── */
.mqpg-instructions {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 16px;
}

.mqpg-instructions-text {
    font-size: 13px;
    color: #444;
    line-height: 1.7;
}

/* ── Proof Upload ───────────────────────────────────────────────────────── */
.mqpg-proof-upload {
    margin-bottom: 8px;
}

.mqpg-upload-desc {
    font-size: 13px;
    color: #666;
    margin: 0 0 10px;
}

.mqpg-upload-area {
    position: relative;
    border: 2px dashed color-mix(in srgb, var(--mqpg-color) 40%, #ccc);
    border-radius: 10px;
    background: color-mix(in srgb, var(--mqpg-color) 4%, white);
    transition: border-color 0.2s, background 0.2s;
    cursor: pointer;
    min-height: 120px;
}

.mqpg-upload-area:hover,
.mqpg-upload-area.dragover {
    border-color: var(--mqpg-color);
    background: color-mix(in srgb, var(--mqpg-color) 10%, white);
}

.mqpg-file-input {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.mqpg-upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    pointer-events: none;
}

.mqpg-upload-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.mqpg-upload-placeholder p {
    margin: 4px 0;
    color: #555;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

.mqpg-upload-hint {
    color: #999 !important;
    font-size: 12px !important;
    font-weight: 400 !important;
}

.mqpg-upload-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    position: relative;
}

.mqpg-upload-preview .mqpg-preview-img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid var(--mqpg-color);
}

.mqpg-upload-success {
    color: #27ae60;
    font-weight: 600;
    font-size: 14px;
}

.mqpg-remove-preview {
    position: absolute;
    top: 8px; right: 10px;
    background: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 22px; height: 22px;
    font-size: 12px;
    cursor: pointer;
    line-height: 22px;
    text-align: center;
    padding: 0;
    z-index: 3;
}

.mqpg-remove-preview:hover {
    background: #c0392b;
}

/* ── Thank You Page ─────────────────────────────────────────────────────── */
.mqpg-thankyou-box {
    background: color-mix(in srgb, var(--mqpg-color, #0070ba) 6%, white);
    border: 2px solid var(--mqpg-color, #0070ba);
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
}

.mqpg-thankyou-title {
    font-size: 20px;
    margin: 0 0 16px;
}

.mqpg-thankyou-instructions {
    font-size: 14px;
    color: #444;
    line-height: 1.7;
    margin-bottom: 16px;
    padding: 12px;
    background: #fff;
    border-radius: 8px;
}

.mqpg-thankyou-proof img {
    margin-top: 8px;
    display: block;
}

.mqpg-thankyou-noproof {
    color: #c0392b;
    margin-bottom: 12px;
}

.mqpg-thankyou-note {
    margin-top: 16px;
    padding: 10px 14px;
    background: #fff3cd;
    border-radius: 6px;
    color: #856404;
    font-size: 13px;
    border: 1px solid #ffc107;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
    .mqpg-qr-image { max-width: 160px; }
    .mqpg-label    { width: 110px; font-size: 12px; }
}

/* ── Backward-compat: old GCash class names still work ──────────────────── */
.gcash-checkout-wrapper   { --mqpg-color: #0070ba; }
.gcash-section-title      { color: var(--mqpg-color); border-bottom-color: #e8f4fd; }
.gcash-dot                { background: var(--mqpg-color); }
