/* =============================================================================
   plan-picker.css - "Choose a plan" (Step 1), the same design in both flows:
     transfer a number   #carrierBillingModal (transfer-number.js populateTransferNumbers)
     marketplace cart    #shoppingCart (allnumbers-page.js, the cart modal's render)
   A number card with plan cards, the plan buttons per number, and the total strip.
   Loaded on every page by core/view.js, after the page's own CSS.
============================================================================= */

.tn-ncard { text-align: left; border: 1px solid #e6e9f5; border-radius: 16px; background: #fff; padding: 18px 20px 20px; box-shadow: 0 6px 22px rgba(42, 82, 190, .06); transition: border-color .15s, box-shadow .15s; }
.tn-ncard .tn-ncard__head > .tn-plan-number { flex: 1 1 auto; margin: 0; text-align: left; }
.tn-ncard .tn-addon, .tn-ncard .tn-plancard { text-align: left; }
.tn-ncard.is-invalid { border-color: #e0533d; box-shadow: 0 0 0 3px rgba(224, 83, 61, .12); }
.tn-ncard__head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; width: 100%; }
.tn-ncard__sum { font-size: 15px; font-weight: 700; color: #222328; white-space: nowrap; }
.tn-ncard__sum small { font-size: 12.5px; font-weight: 500; color: #8c94b0; }
.tn-ncard .tn-ncard__label { text-align: left; margin: 18px 0 10px; font-size: 12px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; color: #8c94b0; }

/* The number: a phone badge, the number in the brand gradient, a grey line under it */
.tn-ncard .tn-plan-number { position: relative; padding-left: 50px; min-width: 0; }
.tn-ncard .tn-plan-number::before {
    content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
    width: 38px; height: 38px; border-radius: 50%;
    background: #eef2ff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%234260CB' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1.9.4 1.8.7 2.7a2 2 0 0 1-.5 2.1L8 9.8a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.5c.9.3 1.8.6 2.7.7a2 2 0 0 1 1.9 2.2z'/%3E%3C/svg%3E") center / 18px no-repeat;
}
.tn-ncard .tn-num__main {
    display: block; font-size: 19px; font-weight: 700; letter-spacing: .3px; line-height: 1.25; white-space: nowrap;
    background: linear-gradient(90deg, #4260CB 0%, #467EFE 55%, #61CAFF 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tn-ncard .tn-plan-sub, .tn-ncard .tn-num__from { display: block; font-size: 12.5px; font-weight: 400; color: #8c94b0; margin-top: 2px; }

/* Plan cards */
.tn-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tn-plancard {
    position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left;
    padding: 16px 16px 14px; border: 1.5px solid #e6e9f5; border-radius: 14px; background: #fff; cursor: pointer;
    font-family: 'Poppins', sans-serif; color: #222328; transition: border-color .15s, background .15s, box-shadow .15s;
}
.tn-plancard:hover { border-color: #b9c7f5; }
.tn-plancard:focus-visible { outline: 2px solid #4260CB; outline-offset: 2px; }
.tn-plancard.is-on { border-color: #4260CB; background: #f4f7ff; box-shadow: 0 6px 18px rgba(66, 96, 203, .14); }
.tn-plancard.is-on::after {
    content: ''; position: absolute; top: 14px; right: 14px; width: 22px; height: 22px; border-radius: 50%;
    background: #4260CB url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.tn-plancard__badge { position: absolute; top: -11px; left: 14px; padding: 3px 10px; border-radius: 30px; font-size: 11.5px; font-weight: 600; color: #fff; background: linear-gradient(90deg, #467EFE 0%, #61CAFF 100%); }
.tn-plancard__price b { font-size: 21px; font-weight: 700; }
.tn-plancard__price small { font-size: 13px; color: #8c94b0; margin-left: 2px; }
.tn-plancard__name { font-size: 16px; font-weight: 600; color: #4260CB; }
.tn-plancard__blurb { font-size: 13px; line-height: 1.45; color: #6b7391; }
.tn-plancard__list { display: flex; flex-direction: column; gap: 5px; margin-top: 8px; }
.tn-plancard__list span { position: relative; padding-left: 20px; font-size: 13px; line-height: 1.4; color: #3f4453; }
.tn-plancard__list span::before {
    content: ''; position: absolute; left: 0; top: 3px; width: 13px; height: 13px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 24 24' fill='none' stroke='%234260CB' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 13px no-repeat;
}

/* Add-ons */
.tn-addons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tn-addon { position: relative; display: flex; align-items: center; gap: 12px; margin: 0; padding: 14px 16px; border: 1.5px solid #e6e9f5; border-radius: 14px; background: #fff; cursor: pointer; transition: border-color .15s, background .15s; }
.tn-addon:hover { border-color: #b9c7f5; }
.tn-addon.is-on { border-color: #4260CB; background: #f4f7ff; }
.tn-addon.is-included { cursor: default; border-color: #d6ecdf; background: #f3fbf6; }
.tn-addon__box { position: absolute; opacity: 0; width: 0; height: 0; }
.tn-addon__check { flex: none; width: 20px; height: 20px; border: 1.5px solid #c3cbe6; border-radius: 6px; background: #fff; }
.tn-addon.is-on .tn-addon__check, .tn-addon.is-included .tn-addon__check {
    border-color: #4260CB; background: #4260CB url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.tn-addon.is-included .tn-addon__check { border-color: #1f8a4c; background-color: #1f8a4c; }
.tn-addon__box:focus-visible + .tn-addon__check { outline: 2px solid #4260CB; outline-offset: 2px; }
.tn-addon__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tn-addon__body b { font-size: 14.5px; font-weight: 600; color: #222328; }
.tn-addon__body small { font-size: 12.5px; color: #6b7391; line-height: 1.4; }
.tn-addon__price { flex: none; font-size: 14px; font-weight: 600; color: #222328; white-space: nowrap; }
.tn-addon.is-included .tn-addon__price { color: #1f8a4c; }

/* The total under the list: nothing today, the fee and the monthly from completion */
.tn-plan-total {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 14px;
    border: 1px solid #e6e9f5; border-radius: 14px; background: #fff; overflow: hidden;
}
.tn-plan-total__item { padding: 12px 18px; border-right: 1px solid #eef0f8; min-width: 0; }
.tn-plan-total__item:last-child { border-right: 0; }
.tn-plan-total__item span { display: block; font-size: 12px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; color: #8c94b0; }
.tn-plan-total__item b { display: block; margin-top: 2px; font-size: 18px; font-weight: 700; color: #222328; }
.tn-plan-total__item b small { font-size: 12.5px; font-weight: 500; color: #8c94b0; }
.tn-plan-total__item em { display: block; font-style: normal; font-size: 12px; color: #e8912d; margin-top: 2px; }
.tn-plan-total__item em.is-ok { color: #1f8a4c; }
.tn-plan-total__item em.is-muted { color: #8c94b0; }

@media (max-width: 767.98px) {
    .tn-ncard { padding: 14px 14px 16px; }
    .tn-ncard .tn-num__main { font-size: 16px; letter-spacing: 0; }
    .tn-plans { grid-template-columns: 1fr; gap: 10px; }
    .tn-plancard { padding: 14px; }
    .tn-plancard__list { flex-direction: row; flex-wrap: wrap; gap: 4px 14px; margin-top: 4px; }
    .tn-addons { grid-template-columns: 1fr; gap: 10px; }
    .tn-plan-total { grid-template-columns: 1fr 1fr; }
    .tn-plan-total__item:nth-child(2) { border-right: 0; }
    .tn-plan-total__item:last-child { grid-column: 1 / -1; border-top: 1px solid #eef0f8; }
}

/* ── Step 1 with many numbers (transfer-number.js tnListRow / tnBuildListChrome) ─────
   The plan cards and add-ons once at the top (#tnBulk), then a compact row per number
   with a search, a filter and pages, so 100+ numbers stay workable. */
.tn-bulk { margin-top: 24px; }
.tn-bulk[hidden], .tn-lbar[hidden], .tn-list-empty[hidden] { display: none; }
.tn-bulk .tn-plancard, .tn-bulk .tn-addon { text-align: left; }
.tn-bulk__addon { position: absolute; opacity: 0; width: 0; height: 0; }
.tn-bulk__addon:focus-visible + .tn-addon__check { outline: 2px solid #4260CB; outline-offset: 2px; }
.tn-bulk__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.tn-bulk .tn-bulk__head .tn-ncard__label { margin-top: 0; }
.tn-bulk .tn-ncard__label span { text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 600; color: #4260CB; margin-left: 4px; }
.tn-bulk.is-selection { border-color: #4260CB; box-shadow: 0 0 0 3px rgba(66, 96, 203, .10); }
.tn-bulk__hint { margin: 12px 0 0; font-size: 12.5px; line-height: 1.5; color: #8c94b0; text-align: left; }
.tn-link { border: 0; background: none; padding: 0; font-family: 'Poppins', sans-serif; font-size: 13px; font-weight: 500; color: #4260CB; cursor: pointer; white-space: nowrap; }
.tn-link:hover { text-decoration: underline; }

.tn-lbar { margin-top: 22px; text-align: left; }
.tn-lbar__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.tn-lbar__filters { display: flex; gap: 6px; flex-wrap: wrap; }
.tn-filter {
    display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border: 1.5px solid #e6e9f5; border-radius: 999px;
    background: #fff; font-family: 'Poppins', sans-serif; font-size: 13.5px; font-weight: 500; color: #6b7391; cursor: pointer;
}
.tn-filter span { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: #f0f3fb; font-size: 12px; font-weight: 600; color: #6b7391; text-align: center; }
.tn-filter:hover { border-color: #b9c7f5; }
.tn-filter.is-on { border-color: #4260CB; background: #f4f7ff; color: #4260CB; }
.tn-filter.is-on span { background: #4260CB; color: #fff; }
.tn-lbar__search {
    width: 220px; max-width: 100%; height: 38px; padding: 0 14px 0 38px; border: 1.5px solid #e6e9f5; border-radius: 999px; outline: 0;
    font-family: 'Poppins', sans-serif; font-size: 14px; color: #222328;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238c94b0' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") 14px center / 16px no-repeat;
}
.tn-lbar__search:focus { border-color: #4260CB; }

/* The row layout, shared by the column heads and each number */
.tn-lhead, .tn-lrow { display: grid; grid-template-columns: 22px minmax(118px, 1fr) 226px 184px 80px; align-items: center; gap: 10px; }
.tn-lhead { margin-top: 14px; padding: 0 14px 8px; border-bottom: 1px solid #eef0f8; font-size: 12px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; color: #8c94b0; }
.tn-lhead__sum { text-align: right; }

.tn-plan-row--list { border-bottom: 1px solid #f0f2f8; }
.tn-lrow { padding: 10px 14px; text-align: left; transition: background .15s; }
.tn-plan-row--list:hover .tn-lrow { background: #fafbff; }
.tn-plan-row--list.is-sel .tn-lrow { background: #f4f7ff; }
.tn-plan-row--list.is-invalid .tn-lrow { background: #fff6f5; box-shadow: inset 3px 0 0 #e0533d; }
.tn-lrow .tn-plan-number { min-width: 0; font-size: 15px; white-space: nowrap; }
.tn-lrow .tn-num__main { display: block; font-weight: 600; color: #222328; overflow: hidden; text-overflow: ellipsis; }
.tn-lrow .tn-plan-sub { display: block; font-size: 12px; color: #8c94b0; }
.tn-lrow__sum { text-align: right; font-size: 14.5px; font-weight: 600; color: #222328; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tn-lrow__sum small { font-size: 12px; font-weight: 500; color: #8c94b0; }
.tn-lrow__sum .is-muted { font-size: 14px; font-weight: 500; color: #b5bbd0; }

/* Tick boxes (row select, select all, add-on chips) */
.tn-lrow__pick { position: relative; display: inline-flex; margin: 0; cursor: pointer; }
.tn-lrow__pick input, .tn-chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.tn-tick { flex: none; width: 18px; height: 18px; border: 1.5px solid #c3cbe6; border-radius: 5px; background: #fff; }
.tn-lrow__pick input:checked + .tn-tick, .tn-lrow__pick.is-on .tn-tick, .tn-chip.is-on .tn-tick, .tn-chip.is-included .tn-tick {
    border-color: #4260CB; background: #4260CB url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.tn-lrow__pick.is-some .tn-tick {
    border-color: #4260CB; background: #4260CB url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round'%3E%3Cpath d='M6 12h12'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.tn-chip.is-included .tn-tick { border-color: #1f8a4c; background-color: #1f8a4c; }
.tn-lrow__pick input:focus-visible + .tn-tick, .tn-chip input:focus-visible + .tn-tick { outline: 2px solid #4260CB; outline-offset: 2px; }

/* A number's plan: three small buttons */
.tn-pills { display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; background: #f0f3fb; }
.tn-pill {
    height: 30px; padding: 0 11px; border: 0; border-radius: 999px; background: transparent;
    font-family: 'Poppins', sans-serif; font-size: 13px; font-weight: 500; color: #6b7391; cursor: pointer; white-space: nowrap;
}
.tn-pill:hover { color: #4260CB; }
.tn-pill.is-on { background: #4260CB; color: #fff; box-shadow: 0 3px 10px rgba(66, 96, 203, .25); }
.tn-pill:focus-visible { outline: 2px solid #4260CB; outline-offset: 1px; }

/* A number's add-ons: two small tick chips */
.tn-chips { display: inline-flex; gap: 6px; }
.tn-chip {
    position: relative; display: inline-flex; align-items: center; gap: 6px; height: 34px; margin: 0; padding: 0 9px;
    border: 1.5px solid #e6e9f5; border-radius: 10px; background: #fff; cursor: pointer;
    font-size: 13px; font-weight: 500; color: #3f4453; white-space: nowrap;
}
.tn-chip small { font-size: 11.5px; font-weight: 600; color: #8c94b0; }
.tn-chip small:empty { display: none; }
.tn-chip:hover { border-color: #b9c7f5; }
.tn-chip.is-on { border-color: #4260CB; background: #f4f7ff; }
.tn-chip.is-included { cursor: default; border-color: #d6ecdf; background: #f3fbf6; }
.tn-chip.is-included small { color: #1f8a4c; }

.tn-list-empty { margin: 0; padding: 26px 14px; text-align: center; font-size: 14px; color: #8c94b0; border-bottom: 1px solid #f0f2f8; }
.tn-pager { padding: 0; }

@media (max-width: 767.98px) {
    .tn-lbar__search { width: 100%; }
    .tn-lhead { grid-template-columns: 22px 1fr; }
    .tn-lhead > span:not(:first-of-type) { display: none; }
    /* A row stacks: tick, number and price on top, then the plan, then the add-ons */
    .tn-lrow { grid-template-columns: 22px minmax(0, 1fr) auto; grid-template-areas: "pick num sum" ". plan plan" ". add add"; row-gap: 8px; padding: 12px 10px; }
    .tn-lrow > .tn-lrow__pick { grid-area: pick; }
    .tn-lrow .tn-plan-number { grid-area: num; }
    .tn-lrow__sum { grid-area: sum; }
    .tn-lrow .tn-pills { grid-area: plan; justify-self: start; }
    .tn-lrow .tn-chips { grid-area: add; }
}

/* The note under the plan step */
.tn-fee-note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 14px 0 0;
    padding: 10px 14px;
    background: #eef2ff;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.4;
    color: #374151;
    text-align: left;
}
.tn-fee-note svg { flex-shrink: 0; }
.tn-fee-note strong { color: #4260cb; font-weight: 600; }

/* Phones: a plan card is one compact row (name and blurb on the left, the price on the
   right); only the chosen plan lists what it includes, so the three plans fit on about
   one screen instead of three */
@media (max-width: 575.98px) {
    .tn-plans { gap: 8px; }
    .tn-plancard {
        display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name price" "blurb blurb" "list list";
        align-items: baseline; column-gap: 10px; row-gap: 2px; padding: 12px 14px;
    }
    .tn-plancard__name { grid-area: name; font-size: 15.5px; }
    .tn-plancard__price { grid-area: price; padding-right: 30px; }
    .tn-plancard__price b { font-size: 18px; }
    .tn-plancard__blurb { grid-area: blurb; font-size: 12.5px; }
    .tn-plancard__list { grid-area: list; display: none; }
    .tn-plancard.is-on .tn-plancard__list { display: flex; margin-top: 6px; }
    .tn-plancard.is-on::after { top: 12px; right: 12px; width: 20px; height: 20px; }
    .tn-plancard__badge { top: -9px; left: 12px; padding: 2px 9px; font-size: 10.5px; }
    .tn-plancard:not(.is-on) .tn-plancard__price { padding-right: 0; }
}

/* ── Marketplace checkout, Step 1 (#shoppingCart, allnumbers-page.js render) ─────────
   The transfer modal's design: one number is a .tn-ncard with the plan cards; two or more
   get the plan cards once (#cart-plan-bulk) and a row per number. */
#shoppingCart .cpp { text-align: left; font-family: 'Poppins', sans-serif; }
#shoppingCart .cpp-bulk { margin: 0 0 16px; }
#shoppingCart .cpp-bulk[hidden] { display: none; }
#shoppingCart .cpp-empty { margin: 0; padding: 70px 0; text-align: center; color: #8c94b0; font-size: 18px; font-weight: 500; }

/* The reservation countdown */
.cpp-timer { display: inline-flex; align-items: center; gap: 5px; color: #e0533d; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cpp-timer svg { flex: none; }
.tn-num__from .cpp-timer { margin-left: 4px; font-size: 12.5px; }
.tn-num__from .sp-offer-tag { margin-left: 6px; }

/* One number: the card's price, with the plan's monthly under it */
#shoppingCart .tn-ncard__sum { text-align: right; }
.cpp-recur { display: block; font-size: 13px; font-weight: 600; color: #4260CB; white-space: nowrap; }
.cpp-recur:empty { display: none; }
.cpp-recur.is-free { color: #1f8a4c; }

/* "Port out, free for 30 days" (marketplace checkout only): a fourth card, in green */
.tn-plans--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.tn-plans--4 .tn-plancard { padding: 16px 14px 14px; }
.tn-plancard--portout .tn-plancard__name { color: #1f8a4c; }
.tn-plancard--portout .tn-plancard__badge { background: linear-gradient(90deg, #1f8a4c 0%, #46b87a 100%); }
.tn-plancard--portout.is-on { border-color: #1f8a4c; background: #f3fbf6; box-shadow: 0 6px 18px rgba(31, 138, 76, .14); }
.tn-plancard--portout.is-on::after { background-color: #1f8a4c; }
.tn-plancard--portout .tn-plancard__list span::before { filter: hue-rotate(-95deg) saturate(.8); }
.tn-pill--portout.is-on { background: #1f8a4c; box-shadow: 0 3px 10px rgba(31, 138, 76, .25); }
@media (max-width: 991.98px) {
    .tn-plans--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 16px; }
}
@media (max-width: 575.98px) {
    .tn-plans--4 { grid-template-columns: 1fr; row-gap: 8px; }
}.cpp-recur small { font-size: 12px; font-weight: 500; color: #8c94b0; }
.cpp-card-foot { display: flex; justify-content: flex-end; margin-top: 12px; }
.cpp-remove-link { color: #c2412d; }

/* Two or more numbers: a list of rows */
#shoppingCart .cpp-rows.is-list { border: 1px solid #e6e9f5; border-radius: 16px; background: #fff; overflow: hidden; }
.cpp-head, .cpp-row { display: grid; grid-template-columns: minmax(130px, 1fr) 226px 88px 120px 34px; align-items: center; gap: 12px; }
/* With "Port out" the plan column holds four buttons */
#cart-modal-rows:has(.tn-pill--portout) .cpp-head,
#cart-modal-rows:has(.tn-pill--portout) .cpp-row { grid-template-columns: minmax(120px, 1fr) 300px 80px 116px 34px; gap: 10px; }
.cpp-head { padding: 12px 16px 8px; border-bottom: 1px solid #eef0f8; font-size: 12px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; color: #8c94b0; }
.cpp-head__price { text-align: right; }
.cpp-row { padding: 12px 16px; transition: background .15s; }
.cpp-row + .cpp-row { border-top: 1px solid #f0f2f8; }
.cpp-row:hover { background: #fafbff; }
.cpp-row__num { min-width: 0; }
.cpp-row__num b { display: block; font-size: 15.5px; font-weight: 600; color: #222328; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cpp-row__num .sp-offer-tag { margin-top: 3px; }
.cpp-row__time { font-size: 14px; }
.cpp-row__price { text-align: right; }
.cpp-row__price b { display: block; font-size: 15px; font-weight: 700; color: #222328; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cpp-remove {
    display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 0;
    border: 0; border-radius: 50%; background: #f3f4f8; color: #8c94b0; cursor: pointer; transition: background .15s, color .15s;
}
.cpp-remove:hover, .cpp-remove:focus-visible { background: #fdecea; color: #c2412d; }

/* The totals, the discount code and the note */
#shoppingCart .cpp-summary { margin-top: 0; padding-top: 0; text-align: left; }
#shoppingCart .tn-plan-total .cpp-timer { gap: 7px; font-size: 18px; }
/* The strip styles every span as its small grey label: not the timer's */
#shoppingCart .tn-plan-total__item .cpp-timer { display: inline-flex; margin: 0; font-weight: 700; letter-spacing: 0; text-transform: none; color: #e0533d; }
#shoppingCart .tn-plan-total__item .cpp-timer span { display: inline; margin: 0; font-size: inherit; font-weight: inherit; letter-spacing: 0; text-transform: none; color: inherit; }
#shoppingCart .tn-plan-total .cpp-timer svg { width: 16px; height: 16px; }
.cpp-coupon { display: flex; align-items: center; gap: 8px; max-width: 380px; margin: 14px 0 0; padding: 4px 4px 4px 16px; border: 1.5px solid #e6e9f5; border-radius: 999px; background: #fff; }
.cpp-coupon:focus-within { border-color: #4260CB; }
.cpp-coupon__input { flex: 1; min-width: 0; height: 36px; border: 0; outline: 0; background: transparent; font-family: 'Poppins', sans-serif; font-size: 14px; color: #222328; }
.cpp-coupon__btn { flex: none; height: 36px; padding: 0 18px; border: 0; border-radius: 999px; background: #eef2ff; font-family: 'Poppins', sans-serif; font-size: 14px; font-weight: 600; color: #4260CB; cursor: pointer; }
.cpp-coupon__btn:hover { background: #e0e7ff; }
#shoppingCart .cpp-summary .tn-fee-note { margin-top: 12px; border-radius: 12px; }

/* The checkout's header and buttons, as the transfer modal has them */
#shoppingCart .modal-header { position: relative; justify-content: center; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid #e3e6ef; }
#shoppingCart .modal-title { flex: 1; text-align: center; font-size: 24px; font-weight: 700; color: #1a1a2e; }
#shoppingCart .shopcart-close { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); margin-top: -7px; }

/* Back and Continue the same width on every step of both modals (on phones they share
   the row equally: nr-modals.css) */
@media (min-width: 576px) {
    #shoppingCart .shopcart-cta-button .round-button,
    #carrierBillingModal .cb-actions .cb-btn { flex: 0 0 200px; width: 200px; min-width: 0; max-width: none; padding-left: 12px; padding-right: 12px; white-space: nowrap; }
}

@media (max-width: 767.98px) {
    /* A row stacks: the number and price on top, the plan buttons, then the timer and Remove */
    .cpp-head { display: none; }
    .cpp-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "num price" "plan plan" "time remove"; row-gap: 10px; padding: 14px; }
    .cpp-row__num { grid-area: num; }
    .cpp-row__price { grid-area: price; }
    .cpp-row .tn-pills { grid-area: plan; justify-self: stretch; display: flex; }
    .cpp-row .tn-pill { flex: 1 1 0; }
    .cpp-row__time { grid-area: time; }
    .cpp-row .cpp-remove { grid-area: remove; justify-self: end; }
    .cpp-coupon { max-width: none; }
    #shoppingCart .modal-title { font-size: 20px; }
    #shoppingCart .shopcart-close { right: 14px; }
}

@media (max-width: 575.98px) {
    #shoppingCart .tn-ncard__head { align-items: flex-start; }
    #shoppingCart .tn-ncard__sum { text-align: left; padding-left: 50px; }
    .tn-plan-total__item { padding: 10px 14px; }
    .tn-plan-total__item b { font-size: 16px; }
    #shoppingCart .tn-plan-total .cpp-timer { font-size: 16px; }
}

/* Rows with "Port out" (four plan buttons): last in the file, so they win over the
   four-button desktop columns above.
   Tablets: no room for the timer column, so the timer goes under the number. */
@media (min-width: 768px) and (max-width: 991.98px) {
    #cart-modal-rows:has(.tn-pill--portout) .cpp-head { display: none; }
    #cart-modal-rows:has(.tn-pill--portout) .cpp-row {
        grid-template-columns: minmax(0, 1fr) auto 96px 34px;
        grid-template-areas: "num plan price remove" "time plan price remove";
        row-gap: 2px;
    }
    #cart-modal-rows:has(.tn-pill--portout) .cpp-row__num { grid-area: num; }
    #cart-modal-rows:has(.tn-pill--portout) .cpp-row .tn-pills { grid-area: plan; }
    #cart-modal-rows:has(.tn-pill--portout) .cpp-row__time { grid-area: time; font-size: 13px; }
    #cart-modal-rows:has(.tn-pill--portout) .cpp-row__price { grid-area: price; }
    #cart-modal-rows:has(.tn-pill--portout) .cpp-row .cpp-remove { grid-area: remove; }
}
/* Phones: the stacked row (number and price, the plan buttons, the timer and Remove) */
@media (max-width: 767.98px) {
    #cart-modal-rows:has(.tn-pill--portout) .cpp-row { grid-template-columns: minmax(0, 1fr) auto; gap: 10px 12px; }
    #cart-modal-rows:has(.tn-pill--portout) .tn-pill { padding: 0 6px; }
}
