/* ============================================================================
 * Shopping Cart / Checkout flow styles — shared across allnumbers.html,
 * search-by-state.html and index.html. Extracted verbatim from the inline
 * <style> of allnumbers.html so every page renders the cart/checkout/secure-
 * payment/thank-you/timeout UI identically. Single source of truth: edit here.
 * Base layout (.shopcart-modal / .shopingnumbers-list / step tabs) still comes
 * from marketplace-number-style.css; these rules only fill in the deltas.
 * ========================================================================== */

/* ─── Shopping Cart modal (opens from the search-nav cart button).
 *     Base layout (.shopcart-modal / .shopingnumbers-list / step tabs)
 *     comes from marketplace-number-style.css; these rules only fill in
 *     the per-row table cells, the native plan <select> (no select2 on
 *     this page) and the help icon. */
.shopingnumbers-list table { width: 100%; border-collapse: collapse; }
.shopingnumbers-list th { text-align: left; }
.shopingnumbers-list tbody td { padding: 14px 0; vertical-align: middle; }
.shopingnumbers-list tbody tr + tr td { border-top: 1px solid #f1f1f4; }
.cart-plan-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 205px;
    max-width: 100%;
    border: 1px solid rgba(231, 231, 231, 1);
    border-radius: 5px;
    padding: 11px 34px 10px 14px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    color: #222328;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%234260CB' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    cursor: pointer;
    outline: none;
}
.cart-plan-select:focus { border-color: #4260cb; }
.shopingnumbers-price img { width: 18px; height: 18px; cursor: pointer; }
.shopingnumbers-price .sp-price { color: #222328; }
.shopingnumbers-price .sp-recur { color: #222328; }
.shopingnumbers-price .sp-month { color: #7e7f87; }
#shopping-cart-amount-summary { padding-top: 22px; }

/* ─── Shopping Cart — Step 2 (Contact Detail) ─── */
.cart-contact-card { margin: 0; border-radius: 12px; }
#cart-step-2 .billaddress-card .card-body { padding: 28px 30px 22px; }
.cart-contact-divider { border: 0; border-top: 1px solid #e7e7e7; margin: 18px 0 22px; }
.cart-business-row { margin-bottom: 4px; }
#cart-step-2 .content-heading { font-size: 24px; font-weight: 700; }
#cart-step-2 .cart-business-row .content-heading { font-size: 26px; }
/* Taller pill inputs + more breathing room between rows, per the design */
#cart-step-2 .round-input { padding: 14px 22px; }
#cart-step-2 .round-form-group { margin-bottom: 22px; }
#cart-step-2 .cart-round-select { padding: 14px 42px 14px 22px; }
#cart-step-2 .billaddress-checkbox .content-para a.cart-login-link { color: #222328 !important; }
/* Inline validation feedback */
#cart-step-2 .cart-input-error, #cart-step-2 .cart-input-error:focus { border-color: #df4740 !important; }
.cart-err-msg { color: #df4740; font-size: 13px; margin: 4px 0 0 16px; }
.cart-err-msg--check { margin: 6px 0 0 0; }
/* Step 2 "Create Your Account" extras */
#cart-step-2 .billaddress-card .card-body { padding: 28px 30px 24px; }
.cart-hear-row { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 26px; margin: 4px 0 4px; }
.cart-hear-label { font-size: 16px; font-weight: 600; color: #222328; }
.cart-optional { color: #8c94b0; font-weight: 400; }
.cart-hear-options { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; margin-bottom: 20px; }
.cart-hear-check { display: inline-flex; align-items: center; gap: 9px; margin: 0; cursor: pointer; font-size: 16px; color: #222328; }
.cart-hear-check .custom-checkbox { width: 26px; height: 26px; min-width: 26px; }
.cart-svc-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; margin-bottom: 14px; }
.cart-svc-title { font-size: 18px; font-weight: 700; color: #222328; }
.cart-svc-info {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(34, 35, 40, 1);
    background: rgba(66, 96, 203, 0.1);
    padding: 6px;
    border-radius: 20px;
}

.cart-svc-info-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid rgba(34, 35, 40, 1);
    color: rgba(34, 35, 40, 1);
    font-size: 11px;
    font-weight: 700;
    font-style: normal;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.cart-svc-same-row { margin-bottom: 16px; }
.cart-terms-row { margin-top: 4px; }
.cart-haveacct-row { margin-bottom: 16px; }

/* ─── Shopping Cart — Step 3 (Make a Payment) ─── */
#cart-step-3 .cart-step3-card { margin-bottom: 18px; border-radius: 12px; }
#cart-step-3 .billaddress-card .card-body { padding: 24px 28px; }
#cart-step-3 .content-heading { font-size: 22px; font-weight: 700; }
.cart-step3-divider { border: 0; border-top: 1px solid #e7e7e7; margin: 16px 0; }
/* Payment method row */
.cart-pay-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.cart-pay-actions { display: flex; align-items: center; gap: 16px; }
.cart-pay-select { width: 240px; margin: 0; }
.cart-pay-btn { white-space: nowrap; padding-left: 26px; padding-right: 26px; }
/* Account information */
.cart-acct-row { display: flex; align-items: stretch; }
.cart-acct-row + .cart-acct-row { margin-top: 14px; }
.cart-acct-item { flex: 1; display: flex; gap: 10px; align-items: center; font-size: 16px; }
.cart-acct-item + .cart-acct-item { border-left: 1px solid #e7e7e7; padding-left: 28px; }
.cart-acct-label { color: #222328; font-weight: 600; }
.cart-acct-val { color: #7e7f87; }
/* Order summary table */
.cart-ordersum-table table { width: 100%; border-collapse: separate; border-spacing: 0; }
.cart-ordersum-table thead th { background: #eef3ff; padding: 14px 20px; font-size: 18px; font-weight: 600; color: #222328; }
.cart-ordersum-table thead th:first-child { border-radius: 8px 0 0 8px; }
.cart-ordersum-table thead th:last-child { border-radius: 0 8px 8px 0; }
.cart-ordersum-table tbody td { padding: 14px 20px; font-size: 16px; color: #222328; }
.cart-ordersum-table .os-price span { color: #7e7f87; }
/* Totals */
.cart-total-row { display: flex; justify-content: space-between; align-items: center; font-size: 16px; color: #222328; padding: 6px 0; }
.cart-total-row > span:first-child { font-weight: 600; }
.cart-grand-total { font-size: 18px; }
.cart-grand-total > span { font-weight: 700; }
.cart-recurring-note { margin: 10px 0 0; font-size: 13px; line-height: 1.5; color: #8c94b0; text-align: right; }
.cart-recurring-note > span { font-weight: 700; color: rgba(66, 96, 203, 1); }
/* Disclaimer */
.cart-step3-disclaimer { text-align: center; color: #8c94b0; font-size: 14px; line-height: 1.6; margin: 18px 0 0; padding: 0 24px; }
.cart-step3-disclaimer a { color: #4260cb; text-decoration: none; }

/* ─── Secure Payment Form (layered modal) ─── */
.secure-pay-modal { z-index: 1065; }
.secure-pay-modal .modal-dialog { max-width: 1024px !important; }
.secure-pay-card { display: flex; border: 1px solid #e7e7e7; border-radius: 16px; overflow: hidden; margin-top: 4px; }
.secure-pay-methods { width: 36%; min-width: 196px; background: #f6f8fb; padding: 22px 20px; display: flex; flex-direction: column; gap: 10px; }
.secure-pay-method {
    display: flex; align-items: center; gap: 12px; width: 100%;
    border: none; background: transparent; text-align: left; cursor: pointer;
    padding: 14px 18px; border-radius: 12px;
    font-size: 16px; font-weight: 500; color: #5b5c63;
}
.secure-pay-method:hover { background: rgba(66, 96, 203, 0.06); }
.secure-pay-method.active {
    background: linear-gradient(95.35deg, #467EFE 5.26%, #61CAFD 100%);
    color: #fff;
    box-shadow: 0 8px 18px rgba(70, 126, 254, 0.35);
}
.secure-pay-ico { display: inline-flex; align-items: center; justify-content: center; width: 24px; flex-shrink: 0; }
.secure-pay-ico svg { width: 22px; height: 22px; }
.secure-pay-fields { flex: 1; padding: 26px 28px; min-width: 0; }
.secure-pay-pane[hidden] { display: none; }
.spf-group { margin-bottom: 18px; }
.spf-label { display: block; font-size: 16px; font-weight: 600; color: #222328; margin-bottom: 8px; }
.spf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.secure-pay-modal .round-input { padding: 13px 20px; }
.spf-select { width: 100%; margin: 0; }
.spf-textarea { border-radius: 16px !important; min-height: 92px; resize: vertical; padding: 12px 20px; }
.spf-form-title { font-size: 22px; font-weight: 700; color: #222328; margin: 0; }
.spf-divider { border: 0; border-top: 1px solid #e7e7e7; margin: 14px 0 22px; }
/* Stripe Card Element — styled to match .round-input */
.stripe-card-element { padding: 15px 20px; min-height: 50px; display: flex; flex-direction: column; justify-content: center; }
.stripe-card-element.StripeElement--focus { border-color: #4260cb; }
.stripe-card-element.StripeElement--invalid { border-color: #e5424d; }
.stripe-card-errors { color: #e5424d; font-size: 13px; line-height: 1.4; margin-top: 8px; min-height: 16px; }
.spf-card-note { margin: 16px 0 0; font-size: 12px; color: #8c94b0; }
.spf-card-note strong { color: #222328; }
.spf-upload {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    border: 1px solid #e7e7e7; border-radius: 50px; padding: 13px 20px;
    font-size: 16px; color: #7e7f87; cursor: pointer; margin: 0;
}
.spf-upload svg { stroke: #7e7f87; flex-shrink: 0; }
.secure-pay-footer { display: flex; justify-content: center; gap: 14px; margin-top: 24px; }
@media (max-width: 575.98px) {
    .secure-pay-card { flex-direction: column; }
    .secure-pay-methods { width: 100%; flex-direction: row; overflow-x: auto; }
    .spf-row { grid-template-columns: 1fr; }
}

/* ─── Saved payment-method cards (Step 3, added on Save) ─── */
#cart-pay-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
#cart-pay-cards:empty { display: none; }
.cart-saved-card { border: 1.5px solid #e7e7e7; border-radius: 12px; padding: 16px 20px; cursor: pointer; transition: border-color .15s; }
.cart-saved-card.selected { border-color: #4260cb; }
.cart-saved-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cart-saved-title { font-size: 20px; font-weight: 700; color: #222328; }
.cart-saved-actions { display: flex; align-items: center; gap: 8px; }
.cart-saved-del, .cart-saved-edit {
    width: 32px; height: 32px; border-radius: 8px; padding: 0;
    display: inline-flex; align-items: center; justify-content: center; cursor: pointer; border: none;
}
.cart-saved-del { background: #ef4444; }
.cart-saved-edit { background: #fff; border: 1px solid #e2e5ee; }
.cart-saved-del img, .cart-saved-edit img { width: 15px; height: 15px; display: block; }
.cart-saved-divider { width: 1px; height: 26px; background: #e2e5ee; margin: 0 2px; }
.cart-saved-radio {
    width: 22px; height: 22px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.cart-saved-radio svg { display: none; }
.cart-saved-card.selected .cart-saved-radio { background: linear-gradient(95.35deg, #467EFE 5.26%, #61CAFD 100%); border-color: #467EFE; }
.cart-saved-card.selected .cart-saved-radio svg { display: block; }
.cart-saved-body { display: grid; grid-template-columns: minmax(0, 2.4fr) 1fr 0.8fr; gap: 10px; }
.cart-saved-col { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cart-saved-label { font-size: 14px; color: #8c94b0; }
.cart-saved-val { font-size: 15px; font-weight: 600; color: #222328; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 575.98px) { #cart-pay-cards { grid-template-columns: 1fr; } }

/* ─── Order Confirmation modal (Thanks for your order) ─── */
.order-thanks-modal { z-index: 1065; }
.order-thanks-modal .modal-dialog { max-width: 720px !important; }
.order-thanks-modal .modal-content { position: relative; }
.order-thanks-close {
    position: absolute; top: 22px; right: 24px; border: none; background: transparent;
    cursor: pointer; padding: 6px; z-index: 2; line-height: 0;
}
.order-thanks-close img { display: block; width: 20px; height: 20px; }
.order-thanks-close:hover { opacity: .7; }
.order-thanks-body { padding: 26px 56px 46px; text-align: center; }
.order-thanks-astro { width: 200px; height: auto; margin: 0 auto 6px; display: block; }
.order-thanks-title { font-size: 32px; font-weight: 700; color: #222328; margin: 0 0 22px; }
.order-thanks-text { font-size: 18px; color: #8c94b0; line-height: 1.55; margin: 0 0 18px; }
.order-thanks-strong { font-size: 19px; color: #222328; font-weight: 500; line-height: 1.55; margin: 0 0 28px; }
.order-thanks-btn { min-width: 240px; padding-left: 40px; padding-right: 40px; }
@media (max-width: 575.98px) {
    .order-thanks-body { padding: 24px 24px 34px; }
    .order-thanks-title { font-size: 24px; }
    .order-thanks-text, .order-thanks-strong { font-size: 16px; }
}
/* Native <select> styled to match the rounded pill inputs (no select2
 * on this page). Placeholder reads grey; a real choice reads dark. */
.cart-round-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100%;
    padding: 12px 42px 12px 20px;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: #222328;
    border: 1px solid #e7e7e7;
    border-radius: 50px;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%237E7F87' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    cursor: pointer;
    outline: none;
}
.cart-round-select:has(option[value=""]:checked) { color: #7e7f87; }
.cart-round-select:focus {
    border-color: #4260cb;
    box-shadow: 0 0 0 4px rgb(66 96 203 / 0.25);
}

/* ── Cart time-out warning (ported from Laravel TimeOut.vue) ───────── */
.time-out-animation {
    padding: 24px;
    border-radius: 12px;
    position: fixed;
    bottom: 48px;
    right: 48px;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border: 1px solid #e7e7e7;
    box-shadow: 0 12px 40px rgba(66, 96, 203, 0.18);
}
.time-out-animation .time-out-close {
    position: absolute;
    top: 0;
    right: 0;
    margin: 8px;
    z-index: 2;
}
/* Lottie cart animation behind the card content (loaded the same way
 * as the Laravel TimeOut.vue component). Sits as a full-card layer so
 * it doesn't disturb the flex layout of the clock/text. */
.time-out-animation .time-out-lottie {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    border-radius: 12px;
}
.time-out-animation .time-out-lottie > svg {
    width: 100% !important;
    height: 100% !important;
}
.time-out-animation .time-out-inner-top {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    flex-direction: column;
    padding-right: 12px;
    border-right: 1px solid #e7e7e7;
}
.time-out-animation .time-out-clock {
    width: 160px;
    height: auto;
}
.time-out-animation .time-out-bolt {
    width: 60px;
    inset: 0;
    margin: auto;
    z-index: 1;
    margin-bottom: -70px;
    animation: an-timeout-glow 1s infinite alternate;
    filter: drop-shadow(0 0 10px #61CAFD);
}
@keyframes an-timeout-glow {
    0%   { filter: drop-shadow(0 0 8px #4260CB); }
    100% { filter: drop-shadow(0 0 10px #61CAFD); }
}
.time-out-animation .time-out-inner-bottom {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: start;
    justify-content: center;
    flex-direction: column;
    padding-left: 12px;
    height: 100%;
}
.time-out-animation .time-out-inner-bottom h4 {
    font-size: 18px;
    font-weight: 700;
    color: #4260CB;
    margin-bottom: 12px;
}
.time-out-animation .time-out-inner-bottom p {
    font-size: 12px;
    font-weight: 400;
    color: #7E7F87;
    max-width: 200px;
    margin-bottom: 0;
}
@media (max-width: 575px) {
    .time-out-animation { padding: 16px; bottom: 24px; right: 12px; }
    .time-out-animation .time-out-bolt { width: 40px; margin-bottom: -45px; }
    .time-out-animation .time-out-clock { width: 100px; }
}
@media (max-width: 439px) {
    .time-out-animation .time-out-clock { width: 80px; }
    .time-out-animation .time-out-bolt { width: 30px; margin-bottom: -35px; }
    .time-out-animation .time-out-inner-bottom h4 { font-size: 16px; }
    .time-out-animation .time-out-inner-bottom p { max-width: 155px; font-size: 10px; }
}

/* ── Header account / checkout dropdowns: keep on-screen on small viewports ───
 * The account (login / logout) and checkout header dropdowns are Popper
 * "bottom-end" menus anchored to a right-aligned trigger. On phones the
 * marketplace responsive rules (non-category-responsive.css) nudge them off the
 * right edge with negative `right` offsets, so they get cut off / overflow.
 * cart-checkout.css loads LAST on allnumbers.html + search-by-state.html, so
 * this override wins: re-anchor to the trigger's right edge and clamp the width
 * to the viewport so they always open fully on-screen (no cut, no overflow). */
@media (max-width: 991.98px) {
    /* Selectors carry .nav-dropdowns so they match the (0,3,0) specificity of
       non-category-responsive.css's `.checkuot-dropdown .resources-dropdown.nav-dropdowns`
       negative-right rule; this file loads last, so it wins on source order. */
    .login-dropdown .resources-dropdown.nav-dropdowns,
    .searchnav-items .resources-dropdown.nav-dropdowns,
    .checkuot-dropdown .resources-dropdown.nav-dropdowns {
        right: 0 !important;
        left: auto !important;
        min-width: 0 !important;
        max-width: calc(100vw - 24px) !important;
    }
    /* Give the checkout dropdown a comfortable width so cart numbers stay on one
       line, while still fitting the viewport (its trigger sits near the right
       edge, so this width keeps a small left margin). */
    .checkuot-dropdown .resources-dropdown.nav-dropdowns {
        min-width: min(340px, calc(100vw - 44px)) !important;
    }
    .login-dropdown .login-checkuot-dropdown-box,
    .checkuot-dropdown .checkuot-dropdown-box,
    .checkuot-dropdown .number-list {
        max-width: 100%;
        box-sizing: border-box;
    }
}

/* ── Account (logged-in) dropdown menu ────────────────────────────────────────
 * A vertical list of options with the Logout button pinned at the bottom, so
 * more options can be added above it over time. Scoped to the .acct-dd variant
 * so the logged-out Login/Signup dropdown (two side-by-side buttons) is left
 * untouched. Loaded last on index/allnumbers/search-by-state → wins the cascade. */
.login-dropdown .resources-dropdown.acct-dd { min-width: 268px; }
.login-dropdown .resources-dropdown.acct-dd::after { right: 26px; }
.acct-box { padding: 12px !important; }
.acct-menu { display: flex; flex-direction: column; gap: 2px; padding-bottom: 10px; margin-bottom: 12px; border-bottom: 1px solid #eef0f8; }
.acct-menu__item {
    display: flex; align-items: center; justify-content: flex-start !important; gap: 12px;
    padding: 12px 14px; border-radius: 12px; text-decoration: none; text-align: left;
    font-family: 'Poppins', sans-serif; font-size: 16px; font-weight: 500; color: #222328;
    transition: background .15s, color .15s; white-space: nowrap;
}
.acct-menu__item:hover { background: #f0f4ff; color: #4260CB; }
.acct-menu__item img, .acct-menu__ico { width: 20px; height: 20px; flex-shrink: 0; }
