/* =====================================================
   InstaPay & Vodafone Cash – Frontend Styles
   ===================================================== */

/* ── Thank-you box wrapper ── */
.ivc-thankyou-box {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 28px 32px;
    margin: 28px 0;
    max-width: 600px;
    box-shadow: 0 2px 8px rgba(0,0,0,.07);
    font-family: inherit;
}

/* ── Accent colour per gateway ── */
.ivc-instapay-box  { border-top: 4px solid #0047BB; }
.ivc-vodafone-box  { border-top: 4px solid #E60000; }

/* ── Header ── */
.ivc-thankyou-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.ivc-logo {
    height: 44px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.ivc-thankyou-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a1a;
}

/* ── Intro text ── */
.ivc-intro {
    color: #444;
    margin-bottom: 14px;
    font-size: .97rem;
    line-height: 1.6;
}

/* ── Steps list ── */
.ivc-steps {
    margin: 0 0 22px 0;
    padding-left: 22px;
    list-style: decimal;
}

.ivc-steps li {
    padding: 6px 0;
    color: #333;
    font-size: .97rem;
    line-height: 1.6;
    border-bottom: 1px dashed #f0f0f0;
}

.ivc-steps li:last-child {
    border-bottom: none;
}

.ivc-steps li strong {
    color: #111;
}

/* ── Upload section ── */
.ivc-upload-section {
    background: #f8f9fa;
    border: 1px dashed #ccc;
    border-radius: 6px;
    padding: 20px;
    margin-top: 10px;
    text-align: center;
}

.ivc-upload-label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    font-size: 1rem;
    cursor: pointer;
}

.ivc-upload-types {
    font-weight: 400;
    color: #888;
    font-size: .85rem;
    margin-left: 4px;
}

.ivc-receipt-input {
    display: block;
    margin: 0 auto 14px;
    font-size: .9rem;
    cursor: pointer;
}

.ivc-upload-btn {
    display: inline-block;
    padding: 10px 28px;
    font-size: .95rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    border: none;
    transition: opacity .2s;
}

.ivc-instapay-box  .ivc-upload-btn { background: #0047BB; color: #fff; }
.ivc-vodafone-box  .ivc-upload-btn { background: #E60000; color: #fff; }

.ivc-upload-btn:hover {
    opacity: .88;
}

.ivc-upload-btn:disabled {
    opacity: .55;
    cursor: not-allowed;
}

/* ── Messages ── */
.ivc-upload-msg {
    margin-top: 12px;
    font-size: .92rem;
    font-weight: 500;
    min-height: 22px;
}

.ivc-upload-msg.ivc-success { color: #2e7d32; }
.ivc-upload-msg.ivc-error   { color: #c62828; }
.ivc-upload-msg.ivc-info    { color: #555; }

/* ── Already uploaded ── */
.ivc-receipt-done {
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    border-radius: 6px;
    padding: 14px 18px;
    color: #2e7d32;
    font-weight: 600;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.ivc-receipt-done a {
    color: #1b5e20;
    text-decoration: underline;
}

.ivc-check {
    font-size: 1.3rem;
    line-height: 1;
}

/* ── Checkout description ── */
.payment_method_instapay .payment_box,
.payment_method_vodafone_cash .payment_box {
    background: #f9f9f9;
    border-radius: 6px;
    padding: 14px 18px !important;
}
