.g2bwc-topup-fields {
    margin: 18px 0;
    padding: 16px;
    border: 1px solid #dcdcde;
    border-radius: 6px;
    background: #fff;
}
.g2bwc-topup-fields__header p {
    margin: 6px 0 14px;
    opacity: 0.8;
}
.g2bwc-topup-fields .form-row {
    margin-bottom: 12px;
}
.g2bwc-topup-fields label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}
.g2bwc-topup-fields input,
.g2bwc-topup-fields select {
    width: 100%;
    max-width: 420px;
}
.g2bwc-topup-fields .required {
    color: #b32d2e;
    text-decoration: none;
}

.g2bwc-topup-field-error {
    margin-top: 8px;
    padding: 8px 10px;
    border-left: 4px solid #cc1818;
    background: #ffe9e9;
    color: #8a0000;
    font-size: 13px;
    line-height: 1.4;
}
.g2bwc-topup-error-field {
    border-color: #cc1818 !important;
    box-shadow: 0 0 0 1px #cc1818 !important;
}

.g2bwc-topup-required-summary,
.g2bwc-topup-instructions {
    margin: 10px 0 12px;
    padding: 10px 12px;
    border-radius: 6px;
    background: #f6f7f7;
    color: #3c434a;
    font-size: 13px;
    line-height: 1.5;
}
.g2bwc-topup-required-summary ul {
    margin: 6px 0 0 18px;
    padding: 0;
}
.g2bwc-topup-required-summary li {
    margin: 2px 0;
}
.g2bwc-topup-instructions p {
    margin: 6px 0 0;
    white-space: pre-line;
}
.g2bwc-topup-help {
    display: block;
    margin-top: 6px;
    color: #646970;
    font-size: 12px;
    line-height: 1.45;
}

.g2bwc-topup-customer-status {
    margin-top: 28px;
}
.g2bwc-topup-customer-status__intro {
    margin: 0 0 14px;
    color: #646970;
}
.g2bwc-topup-status-table-wrap {
    overflow-x: auto;
}
.g2bwc-topup-status-table small {
    color: #646970;
}
.g2bwc-topup-status-badge {
    display: inline-block;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    border: 1px solid #c3c4c7;
    background: #f6f7f7;
    color: #2c3338;
}
.g2bwc-topup-status-badge--completed {
    border-color: #00a32a;
    background: #edfaef;
    color: #006b1b;
}
.g2bwc-topup-status-badge--processing,
.g2bwc-topup-status-badge--pending,
.g2bwc-topup-status-badge--not_submitted,
.g2bwc-topup-status-badge--waiting_admin,
.g2bwc-topup-status-badge--manual_required {
    border-color: #dba617;
    background: #fff8e5;
    color: #7a4d00;
}
.g2bwc-topup-status-badge--failed,
.g2bwc-topup-status-badge--order_not_active,
.g2bwc-topup-status-badge--cancelled {
    border-color: #d63638;
    background: #fcf0f1;
    color: #8a0000;
}
.g2bwc-topup-status-badge--waiting_payment {
    border-color: #72aee6;
    background: #f0f6fc;
    color: #135e96;
}
.g2bwc-topup-status-badge--manual_completed {
    border-color: #14b8a6;
    background: #ccfbf1;
    color: #115e59;
}
.g2bwc-topup-order-list-status {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

/* Customer-facing Top-up delivery cards */
.g2bwc-topup-delivery {
    margin: 28px 0;
    padding: 0;
}
.g2bwc-topup-delivery__box {
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 22px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}
.g2bwc-topup-delivery__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.g2bwc-topup-delivery__icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #3157ff;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
    line-height: 1;
    flex: 0 0 auto;
}
.g2bwc-topup-delivery__title {
    margin: 0 !important;
    font-size: 22px;
    line-height: 1.25;
    color: #0f172a;
}
.g2bwc-topup-delivery__intro {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 14px;
}
.g2bwc-topup-delivery__items {
    display: grid;
    gap: 14px;
}
.g2bwc-topup-delivery-item {
    border: 1px solid #dbeafe;
    background: #eff6ff;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 8px 18px rgba(30, 64, 175, 0.05);
}
.g2bwc-topup-delivery-item--completed {
    border-color: #86efac;
    background: #f0fdf4;
    box-shadow: 0 8px 18px rgba(22, 101, 52, 0.06);
}
.g2bwc-topup-delivery-item--pending,
.g2bwc-topup-delivery-item--processing,
.g2bwc-topup-delivery-item--not_submitted,
.g2bwc-topup-delivery-item--waiting_admin,
.g2bwc-topup-delivery-item--manual_required {
    border-color: #fcd34d;
    background: #fffbeb;
    box-shadow: 0 8px 18px rgba(146, 64, 14, 0.06);
}
.g2bwc-topup-delivery-item--failed,
.g2bwc-topup-delivery-item--order_not_active,
.g2bwc-topup-delivery-item--cancelled {
    border-color: #fecaca;
    background: #fef2f2;
    box-shadow: 0 8px 18px rgba(153, 27, 27, 0.05);
}
.g2bwc-topup-delivery-item--waiting_payment {
    border-color: #bfdbfe;
    background: #eff6ff;
}
.g2bwc-topup-delivery-item--manual_completed {
    border-color: #5eead4;
    background: #f0fdfa;
}
.g2bwc-topup-delivery-item__top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 12px;
}
.g2bwc-topup-delivery-item__main {
    min-width: 0;
}
.g2bwc-topup-delivery-item__name {
    font-weight: 800;
    font-size: 17px;
    color: #111827;
    line-height: 1.35;
}
.g2bwc-topup-delivery-item__subline {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-top: 6px;
    color: #475569;
    font-size: 13px;
    line-height: 1.5;
}
.g2bwc-topup-delivery-item__message {
    margin-top: 8px;
    color: #334155;
    font-size: 14px;
    line-height: 1.8;
    font-weight: 600;
}
.g2bwc-topup-delivery-item--completed .g2bwc-topup-delivery-item__message {
    color: #166534;
}
.g2bwc-topup-delivery-item--pending .g2bwc-topup-delivery-item__message,
.g2bwc-topup-delivery-item--processing .g2bwc-topup-delivery-item__message,
.g2bwc-topup-delivery-item--not_submitted .g2bwc-topup-delivery-item__message,
.g2bwc-topup-delivery-item--waiting_admin .g2bwc-topup-delivery-item__message,
.g2bwc-topup-delivery-item--manual_required .g2bwc-topup-delivery-item__message {
    color: #92400e;
}
.g2bwc-topup-delivery-item--failed .g2bwc-topup-delivery-item__message,
.g2bwc-topup-delivery-item--order_not_active .g2bwc-topup-delivery-item__message,
.g2bwc-topup-delivery-item--cancelled .g2bwc-topup-delivery-item__message {
    color: #991b1b;
}
.g2bwc-topup-delivery-item--manual_completed .g2bwc-topup-delivery-item__message {
    color: #115e59;
}
.g2bwc-topup-delivery-item__details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    margin-top: 14px;
}
.g2bwc-topup-detail-card {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(148, 163, 184, 0.45);
    border-radius: 14px;
    padding: 12px 13px;
}
.g2bwc-topup-detail-card--verified {
    border-color: #86efac;
    background: #ffffff;
}
.g2bwc-topup-detail-card__label {
    display: block;
    margin-bottom: 5px;
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.g2bwc-topup-detail-card__value {
    display: block;
    color: #111827;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.55;
    word-break: break-word;
}
.g2bwc-topup-refresh-status {
    margin-top: 12px;
    cursor: pointer;
    background: #f59e0b;
    color: #fff;
    border: 0;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 800;
}
.g2bwc-topup-refresh-status:hover,
.g2bwc-topup-refresh-status:focus {
    background: #d97706;
    color: #fff;
}
.g2bwc-topup-delivery .g2bwc-topup-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 11px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
    flex: 0 0 auto;
}
@media (max-width: 640px) {
    .g2bwc-topup-delivery__box {
        padding: 16px;
        border-radius: 16px;
    }
    .g2bwc-topup-delivery-item {
        padding: 15px;
    }
    .g2bwc-topup-delivery-item__top {
        flex-direction: column;
        align-items: flex-start;
    }
    .g2bwc-topup-delivery-item__details {
        grid-template-columns: 1fr;
    }
}
