/* Data bundles / airtime checkout + storefront receipts */

.bp-shop {
    max-width: 42rem;
    margin: 0 auto 1.25rem;
    padding-bottom: calc(var(--ddz-fab-safe, 5.5rem) + 0.5rem);
}

.bp-shop-nav {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0 0 1rem;
}

.bp-shop .bp-service-tabs {
    flex: 1;
    min-width: 0;
    margin: 0;
}

.bp-shop-orders {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.7rem 0.85rem;
    border-radius: 12px;
    background: var(--ddz-surface, #fff);
    border: 1px solid var(--ddz-border, #e2e8f0);
    color: var(--ddz-text, #0f172a);
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none !important;
    white-space: nowrap;
}

.bp-shop-orders:hover {
    border-color: #cbd5e1;
    color: var(--ddz-text, #0f172a);
}

.bp-shop-wallet {
    margin-bottom: 1rem;
    padding: 0.95rem 1.1rem;
    flex-direction: row;
    align-items: center;
}

.bp-shop-wallet .wbs-amount {
    font-size: 1.28rem;
}

.bp-shop-wallet .btn-accent {
    width: auto;
    min-width: 0;
}

.bp-service-tabs {
    display: flex;
    gap: 6px;
    margin: 20px 0;
    padding: 6px;
    background: var(--ddz-surface-2, #edf1f5);
    border-radius: 14px;
}

.bp-service-tabs a {
    flex: 1;
    text-align: center;
    text-decoration: none !important;
    padding: 11px 12px !important;
    border: 0 !important;
    border-radius: 10px !important;
    font-size: 0.92rem !important;
    font-weight: 700;
    color: #475569 !important;
    white-space: nowrap;
    background: transparent !important;
}

.bp-service-tabs a[aria-current="page"] {
    background: #fff !important;
    color: #0f172a !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.bp-checkout {
    padding: 1.15rem 1.15rem 1.25rem;
    overflow: hidden;
}

.bp-checkout__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1.15rem;
}

.bp-checkout__head h2 {
    margin: 0;
    font-size: 1.28rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--ddz-text, #0f172a);
}

.bp-checkout__head p {
    margin: 0.35rem 0 0;
    font-size: 0.86rem;
    line-height: 1.45;
    color: var(--ddz-text-muted, #64748b);
}

.bp-kicker {
    margin: 0 0 0.2rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #059669;
}

.bp-save-chip {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    padding: 0.32rem 0.65rem;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
    font-size: 0.75rem;
    font-weight: 800;
}

.bp-checkout__form .form-label,
.bp-catalog .form-label,
.bp-networks legend {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--ddz-text, #0f172a);
    margin-bottom: 0.45rem;
}

.bp-phone {
    margin-bottom: 1.05rem;
}

.bp-phone .input-group-text {
    background: var(--ddz-surface-2, #f1f5f9);
    border: 1px solid var(--ddz-border, #e2e8f0);
    color: var(--ddz-text-muted, #64748b);
    border-radius: 12px 0 0 12px;
}

.bp-phone .form-control {
    border-radius: 0 12px 12px 0;
    min-height: 48px;
    font-size: 1rem;
}

.bp-catalog {
    margin: 0 0 0.35rem;
}

.bp-networks {
    border: 0;
    padding: 0;
    margin: 0;
}

.bp-network-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.bp-network {
    position: relative;
    cursor: pointer;
    display: block;
}

.bp-network input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.bp-network span {
    display: block;
    padding: 0.85rem 0.4rem;
    text-align: center;
    border: 2px solid var(--ddz-border, #dce3ec);
    border-radius: 14px;
    background: var(--ddz-surface, #fff);
    color: #243247;
    font-size: 0.95rem;
    font-weight: 800;
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.bp-network input:checked + span {
    border-color: #1c3557;
    background: #edf4ff;
}

.bp-network--mtn input:checked + span {
    background: #fff3bd;
    border-color: #d4a700;
    color: #463700;
}

.bp-network--telecel input:checked + span {
    background: #fff0f1;
    border-color: #dd3448;
    color: #9c1827;
}

.bp-network--airteltigo input:checked + span {
    background: #eaf3ff;
    border-color: #2763b7;
    color: #164884;
}

.bp-network input:focus-visible + span {
    outline: 3px solid #182c49;
    outline-offset: 3px;
}

.bp-network-note,
.bp-amount-hint,
.bp-pay-note,
.bp-checkout__hint {
    font-size: 0.8rem;
    line-height: 1.45;
    color: var(--ddz-text-muted, #64748b);
    margin: 0.55rem 0 0.85rem;
}

.bp-catalog .form-select,
.bp-catalog .form-control {
    font-size: 16px;
    min-height: 48px;
    border-radius: 12px;
}

.bp-catalog select {
    width: 100%;
    max-width: 100%;
}

.bp-custom-amount[hidden] {
    display: none;
}

.bp-checkout__summary {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.35rem;
    padding: 0.95rem 1rem;
    border-radius: 14px;
    background: var(--ddz-surface-2, #f8fafc);
    border: 1px solid var(--ddz-border, #e2e8f0);
}

.bp-checkout__summary span {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--ddz-text-muted, #64748b);
}

.bp-pay-amount {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--ddz-text, #0f172a);
}

.bp-pay-note {
    margin-top: 0.45rem;
    margin-bottom: 0.85rem;
}

.bp-checkout__submit {
    width: 100%;
    min-height: 48px;
    font-weight: 800;
    border-radius: 12px;
}

.bp-review {
    margin: 0;
}

.bp-review > div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--ddz-border, #e2e8f0);
}

.bp-review dt {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ddz-text-muted, #64748b);
}

.bp-review dd {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    text-align: right;
    overflow-wrap: anywhere;
}

.bp-review__pay dd {
    font-size: 1.25rem;
    font-weight: 800;
}

.bp-review-actions {
    display: grid;
    gap: 0.65rem;
}

.bp-checkout__cancel {
    width: 100%;
    min-height: 44px;
    border-radius: 12px;
}

@media (max-width: 575.98px) {
    .bp-shop-nav {
        gap: 0.5rem;
    }

    .bp-service-tabs a {
        padding: 10px 8px !important;
        font-size: 0.84rem !important;
    }

    .bp-shop-orders {
        padding: 0.65rem 0.7rem;
        font-size: 0.78rem;
    }

    .bp-checkout {
        padding: 1rem 0.95rem 1.1rem;
        border-radius: 16px;
    }

    .bp-checkout__head h2 {
        font-size: 1.12rem;
    }

    .bp-network-options {
        gap: 8px;
    }

    .bp-network span {
        padding: 0.78rem 0.25rem;
        font-size: 0.88rem;
    }

    .bp-checkout__cta {
        position: sticky;
        bottom: 0.25rem;
        z-index: 5;
        margin-right: 4.35rem;
        padding: 0.55rem 0 0.1rem;
        background: linear-gradient(180deg, transparent, var(--ddz-surface, #fff) 38%);
    }

    .bp-checkout--review .bp-review-actions {
        margin-right: 4.35rem;
    }
}

@media (max-width: 380px) {
    .bp-network-options {
        gap: 6px;
    }
}

[data-theme="dark"] .bp-service-tabs,
body.dark-mode .bp-service-tabs {
    background: #1a2234;
}

[data-theme="dark"] .bp-service-tabs a,
body.dark-mode .bp-service-tabs a {
    color: #94a3b8 !important;
}

[data-theme="dark"] .bp-service-tabs a[aria-current="page"],
body.dark-mode .bp-service-tabs a[aria-current="page"] {
    background: #111827 !important;
    color: #f8fafc !important;
}

[data-theme="dark"] .bp-shop-orders,
body.dark-mode .bp-shop-orders {
    background: #111827;
    border-color: #1e293b;
    color: #e2e8f0;
}

[data-theme="dark"] .bp-network span,
body.dark-mode .bp-network span {
    background: #111827;
    border-color: #1e293b;
    color: #e2e8f0;
}

[data-theme="dark"] .bp-checkout__summary,
body.dark-mode .bp-checkout__summary {
    background: #1a2234;
    border-color: #1e293b;
}

[data-theme="dark"] .bp-save-chip,
body.dark-mode .bp-save-chip {
    background: rgba(16, 185, 129, 0.18);
    color: #6ee7b7;
}

[data-theme="dark"] .bp-phone .input-group-text,
body.dark-mode .bp-phone .input-group-text {
    background: #1a2234;
    border-color: #1e293b;
    color: #94a3b8;
}

/* Storefront receipts */
.bp-receipt {
    margin-top: 24px;
    background: #fff;
    border: 1px solid #e0e6ed;
    border-radius: 20px;
    padding: 28px;
    color: #172438;
    box-shadow: 0 8px 30px #142c4810;
}

.bp-receipt-top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bp-receipt-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 25px;
    font-weight: 700;
    background: #fff1cc;
    color: #795700;
}

.bp-receipt-icon--success {
    background: #dff6eb;
    color: #106543;
}

.bp-receipt-kicker {
    font-size: 14px;
    color: #586b82;
}

.bp-receipt h2 {
    font-size: 28px;
    line-height: 1.2;
    letter-spacing: -0.6px;
    margin: 18px 0 10px;
    font-weight: 750;
}

.bp-receipt-message {
    font-size: 16px;
    line-height: 1.6;
    color: #53647b;
    margin-bottom: 24px;
}

.bp-receipt-product {
    padding: 18px;
    background: #f3f6fa;
    border-radius: 12px;
    display: grid;
    gap: 6px;
}

.bp-receipt-product span,
.bp-receipt-reference span {
    font-size: 13px;
    color: #586b82;
}

.bp-receipt-product strong {
    font-size: 17px;
}

.bp-receipt-details {
    margin: 10px 0 20px;
}

.bp-receipt-details > div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 18px;
    padding: 14px 0;
    border-bottom: 1px solid #edf0f4;
}

.bp-receipt-details dt {
    font-size: 14px;
    font-weight: 500;
    color: #586b82;
}

.bp-receipt-details dd {
    margin: 0;
    font-size: 15px;
    font-weight: 650;
    text-align: right;
    overflow-wrap: anywhere;
}

.bp-receipt-details .bp-receipt-amount {
    font-size: 23px;
    color: #172438;
}

.bp-receipt-reference {
    display: grid;
    gap: 8px;
}

.bp-receipt-reference code,
.bp-receipt-history code {
    font: 13px/1.65 ui-monospace, monospace;
    color: #3f5067;
    overflow-wrap: anywhere;
    word-break: break-all;
}

.bp-receipt-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.bp-receipt-actions > * {
    flex: 1;
    text-align: center;
    min-width: 130px;
}

.bp-receipt-private {
    font-size: 13px;
    line-height: 1.6;
    color: #65758a;
    margin: 18px 0 0;
}

.bp-receipt-history {
    margin: 24px 0;
    background: white;
    border: 1px solid #e0e6ed;
    border-radius: 14px;
    padding: 18px;
}

.bp-receipt-history summary {
    font-size: 15px;
    font-weight: 650;
    cursor: pointer;
}

.bp-receipt-history summary span {
    color: #65758a;
    margin-left: 8px;
}

.bp-receipt-history ul {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
}

.bp-receipt-history a {
    display: grid;
    gap: 4px;
    padding: 12px 0;
    text-decoration: none;
    font-size: 14px;
}

@media (max-width: 480px) {
    .bp-receipt {
        padding: 22px 18px;
    }

    .bp-receipt h2 {
        font-size: 26px;
    }

    .bp-receipt-details > div {
        gap: 12px;
    }
}
