/* Make Payment (buy) page — layout, eSIM quantity stepper, and the solid button fix. */

@media (max-width: 575.98px) {
    .pt-50 { padding-top: 15px !important; }
    .pb-50 { padding-bottom: 0 !important; }
    .card.style--two { border: none !important; box-shadow: none !important; }
    .card.style--two .card-header { border-bottom: none !important; }
    .plan-select-box { border: none !important; }
}

#aiChatSection { display: none !important; }

/* Country header: flag on the left, name + type on the right, centered as a group. */
.mp-flag {
    width: 90px;
    height: 65px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .15);
    flex-shrink: 0;
}
.mp-head__text { text-align: left; }
.mp-head__text h2 { font-size: 1.6rem; }

/* No outer border — just a light shadow for a bit of depth. */
.card.style--two {
    border: 0 !important;
    border-radius: 12px !important;
    box-shadow: 0 6px 24px rgba(69, 130, 255, .12) !important;
    width: max-content;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* Drop the blue accent bar on the left of the payment-details widget. */
.card.style--two .d-widget { border-left: 0 !important; }

/* Tighter side padding, taller vertical padding (desktop). */
@media (min-width: 576px) {
    .card.style--two .card-body { padding: 3.375rem .75rem !important; }
    .card.style--two .d-widget__content,
    .card.style--two .mp-actions { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
}



/* Bundle-style plan dropdown (icon rows instead of a plain <select>). */
.plan-dd { position: relative; }
/* Inline on the right of the "Select plan" row, like the stepper in the quantity block. */
.plan-dd--inline { width: max-content; max-width: 100%; }
.plan-dd__trigger {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid #e7eaf3;
    border-radius: 12px;
    padding: 10px 16px;
    cursor: pointer;
    text-align: left;
}
.plan-dd__caret { color: #7a8194; flex-shrink: 0; transition: transform .15s; }
.plan-dd.is-open .plan-dd__caret { transform: rotate(180deg); }
.plan-dd__panel {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    z-index: 20;
    width: max-content;
    max-width: 90vw;
    background: #fff;
    border: 1px solid #e7eaf3;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
    max-height: 320px;
    overflow-y: auto;
}
.plan-dd.is-open .plan-dd__panel { display: block; }
.plan-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    gap: 28px;
    padding: 12px 16px;
    font-weight: 700;
    color: #2a2f45;
    cursor: pointer;
}
.plan-row--current { width: 100%; padding: 0; cursor: inherit; }
.plan-dd__panel .plan-row + .plan-row { border-top: 1px solid #f0f2f7; }
.plan-dd__panel .plan-row:hover { background: #f7f9ff; }
.plan-dd__panel .plan-row.is-selected { background: #eef4ff; }
.plan-row__cell { display: flex; align-items: center; justify-content: flex-start; gap: 6px; white-space: nowrap; }
.plan-row__cell i { color: #2a2f45; }

/* Thin scrollbar for the options list (WebKit-only — no standard scrollbar-width so
   Chrome keeps the custom bar instead of the OS one, which can show arrows on Linux). */
.plan-dd__panel::-webkit-scrollbar { width: 6px; }
.plan-dd__panel::-webkit-scrollbar-button { display: none !important; width: 0 !important; height: 0 !important; }
.plan-dd__panel::-webkit-scrollbar-track { background: transparent; }
.plan-dd__panel::-webkit-scrollbar-thumb { background: #c7cdda; border-radius: 8px; }
.plan-dd__panel::-webkit-scrollbar-thumb:hover { background: #aab2c5; }

/* < 480px: the "Select plan" trigger and the options row are tight — shrink the gaps and
   paddings (and the font a little) so the day / data / price columns fit. */
@media (max-width: 479.98px) {
    .plan-dd__trigger { gap: 6px; padding: 8px 12px; }
    .plan-dd__panel .plan-row { gap: 10px; padding: 10px 12px; }
    .plan-row { font-size: 0.875rem; }
    .plan-row__cell { gap: 4px; }
    .plan-dd__caret { font-size: 0.9rem; }
}

/* < 390px: swap the word "Unlimited" for an enlarged ∞ without changing the row height
   (fixed line-height keeps everything else in place). */
.unlimited-infinity { display: none; }
@media (max-width: 389.98px) {
    .unlimited-word { display: none; }
    .unlimited-infinity {
        display: inline-block;
        font-size: 22px;
        line-height: 14px;
        vertical-align: middle;
        position: relative;
        top: 1.5px;
    }
}

/* Promo code — present but understated, blends into the form. */
.promo-label { font-size: .85rem; color: #9aa1b3; margin-bottom: 4px; font-weight: 500; }
.promo-field .form-control { background: #fafbfd; border-color: #eef0f6; }
.promo-field .form-control::placeholder { color: #aeb4c2; }

/* eSIM quantity selector */
.esim-qty-row__title { font-size: 1.25rem; font-weight: 700; color: #2a2f45; line-height: 1.2; }
.esim-qty-row__sub { color: #7a8194; font-size: .95rem; }
.esim-stepper {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 6px 10px;
    border: 1px solid #e2e6ef;
    border-radius: 40px;
    background: #fff;
}
.esim-stepper__btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #cdd5e4;
    background: #fff;
    color: #2a2f45;
    font-size: 20px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color .15s, color .15s, opacity .15s;
}
.esim-stepper__btn:hover:not(:disabled) { border-color: #4582ff; color: #4582ff; }
.esim-stepper__btn:disabled { opacity: .4; cursor: not-allowed; }
.esim-stepper__value { min-width: 70px; text-align: center; font-weight: 600; color: #2a2f45; }

/* The frontend theme's .btn rules (loaded after dashboard.css) override the button
   shape/size — lock the structural look so it matches the dashboard layout. */
.payment-btn {
    flex: 1 !important;
    min-height: 56px !important;
    border-radius: 12px !important;
    padding: 12px 16px !important;
    font-size: 0.9375rem !important;
    font-weight: 600 !important;
}

/* Solid payment button — the theme also strips the background, so force the solid
   look here (mirrors the --outline variant). */
.payment-btn--solid {
    background: #4582ff !important;
    border: 2px solid #4582ff !important;
    color: #fff !important;
}
.payment-btn--solid span,
.payment-btn--solid i { color: #fff !important; }
.payment-btn--solid:hover {
    background: #2d6ae0 !important;
    border-color: #2d6ae0 !important;
    color: #fff !important;
}

/* Outline button (Add Balance & Pay) — theme strips its colours too, force them. */
.payment-btn--outline {
    background: transparent !important;
    border: 2px solid #4582ff !important;
    color: #4582ff !important;
}
.payment-btn--outline span,
.payment-btn--outline i { color: #4582ff !important; }
.payment-btn--outline:hover {
    background: rgba(69, 130, 255, .06) !important;
    border-color: #4582ff !important;
    color: #4582ff !important;
}
