/* PrimeXM order page (onestep_pxm_order).
   Sits inside the HostBill 2019 client theme: inherits its font and Bootstrap 4
   buttons, and takes the accent from the theme's --primary. */

.pxm {
    --pxm-accent: var(--primary, #3891F2);
    --pxm-accent-tint: rgba(56, 145, 242, .08);
    --pxm-accent-soft: rgba(56, 145, 242, .35);
    --pxm-ink: #1d2230;
    --pxm-text: #373a3c;
    --pxm-muted: #687083;
    --pxm-faint: #a1a7b4;
    --pxm-rule: #e4e7ed;
    --pxm-surface: #f6f7f9;
    --pxm-ok: #17804f;
    --pxm-warn: #a8520a;
    --pxm-radius: 10px;
    --pxm-sum-w: 360px;
    color: var(--pxm-text);
    max-width: 1280px;
    font-variant-numeric: tabular-nums;
    padding-bottom: 24px;
}
@supports (color: color-mix(in srgb, red 10%, white)) {
    .pxm {
        --pxm-accent-tint: color-mix(in srgb, var(--pxm-accent) 8%, white);
        --pxm-accent-soft: color-mix(in srgb, var(--pxm-accent) 38%, white);
    }
}
.pxm *, .pxm *::before, .pxm *::after { box-sizing: border-box; }
.pxm :focus-visible { outline: 2px solid var(--pxm-accent); outline-offset: 2px; }
.pxm button:focus:not(:focus-visible), .pxm summary:focus:not(:focus-visible) { outline: none; box-shadow: none; }
.pxm [hidden] { display: none !important; }
/* Weights: 600 only for the title, section headings and the two key amounts; 500 at most for selection. */
.pxm b { font-weight: inherit; }

/* ---------- header ---------- */
.pxm-head {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 12px 24px; padding: 4px 0 18px; margin-bottom: 4px;
    border-bottom: 1px solid var(--pxm-rule);
}
.pxm-head-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.pxm-h1 { margin: 0; font-size: 1.75rem; line-height: 1.2; font-weight: 600; color: var(--pxm-ink); letter-spacing: -.01em; }
.pxm-sub { flex-basis: 100%; order: 3; margin: 0; color: var(--pxm-muted); }

.pxm-cycles { display: inline-flex; padding: 3px; border: 1px solid var(--pxm-rule); border-radius: 999px; background: var(--pxm-surface); }
.pxm-cycle-btn {
    height: 32px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent;
    color: var(--pxm-muted); font: inherit; font-weight: 400; cursor: pointer;
}
.pxm-cycle-btn:hover:not(:disabled) { color: var(--pxm-ink); }
.pxm-cycle-btn[aria-pressed="true"] { background: #fff; color: var(--pxm-ink); font-weight: 500; box-shadow: 0 1px 3px rgba(29, 34, 48, .14); }
.pxm-cycle-btn:disabled { opacity: .45; cursor: not-allowed; }

/* ---------- two columns: configurator | sticky summary ---------- */
.pxm-grid { display: grid; grid-template-columns: minmax(0, 1fr) var(--pxm-sum-w); column-gap: 40px; align-items: start; }
.pxm-updater, .pxm-live { display: contents; }
.pxm-grid > *, .pxm-live > * { grid-column: 1; min-width: 0; }
/* The 2019 theme's top navbar is fixed (72px): stick below it. */
.pxm-summary { grid-column: 2 !important; grid-row: 1 / span 40; position: sticky; top: 88px; align-self: start; margin-top: 18px; }

.pxm-section { padding: 18px 0 20px; border-top: 1px solid var(--pxm-rule); }
.pxm-grid > .pxm-section:first-child { border-top: 0; }
.pxm-section-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 10px; }
.pxm-section-head .pxm-h2 { margin: 0; }
.pxm-h2 { margin: 0 0 12px; padding: 0; font-size: 1.1rem; line-height: 1.3; font-weight: 600; color: var(--pxm-ink); }
.pxm-h3 { margin: 0 0 10px; font-size: 1rem; font-weight: 600; color: var(--pxm-ink); }
.pxm-help { display: block; margin: 0 0 10px; color: var(--pxm-muted); font-size: .875rem; }
.pxm-muted { color: var(--pxm-faint); }
.pxm-ok { color: var(--pxm-ok) !important; }
fieldset.pxm-choice { margin: 0; padding: 0; border: 0; min-width: 0; }
fieldset.pxm-choice > legend { display: block; width: 100%; margin: 0 0 12px; font-size: 1.1rem; }

/* ---------- locations (sibling order pages) ---------- */
.pxm-locs-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.pxm-loc {
    display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px; min-width: 0;
    border: 1px solid var(--pxm-rule); border-radius: 8px; background: #fff;
    color: var(--pxm-ink) !important; text-decoration: none !important; font-weight: 400; line-height: 1.25;
}
.pxm-loc:hover { border-color: var(--pxm-faint); background: var(--pxm-surface); }
.pxm-loc.is-selected { border-color: var(--pxm-accent); background: var(--pxm-accent-tint); box-shadow: inset 3px 0 0 var(--pxm-accent); cursor: default; font-weight: 500; }
.pxm-loc-name { min-width: 0; }
.pxm-loc-dc { color: var(--pxm-muted); font-weight: 400; white-space: nowrap; }
.pxm-flag { flex: none; width: 20px; height: 15px; border-radius: 2px; object-fit: cover; box-shadow: 0 0 0 1px rgba(29, 34, 48, .1); }
.pxm-flag-none { background: var(--pxm-rule); }
.pxm-flag.pxm-flag-globe { box-shadow: none; border-radius: 0; font-size: 18px; width: 20px; height: auto; line-height: 1; color: var(--pxm-muted); text-align: center; }
.pxm-locs-groups .pxm-flag.pxm-flag-globe, .pxm-locs-tabs .pxm-flag.pxm-flag-globe { width: 16px; font-size: 15px; }
.pxm-locs-groups { display: grid; gap: 10px; }
.pxm-loc-group { display: grid; grid-template-columns: 148px minmax(0, 1fr); align-items: start; gap: 6px 12px; }
.pxm-loc-group-solo { grid-template-columns: minmax(0, 1fr); }   /* one area only: no label column */
.pxm-rule-hidden { display: none !important; }   /* hidden by HostBill field logic (applyRules) */
.pxm-loc-area { padding-top: 7px; color: var(--pxm-muted); font-size: .8125rem; }
.pxm-loc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pxm-locs-groups .pxm-loc, .pxm-locs-tabs .pxm-loc { min-height: 32px; padding: 4px 12px 4px 10px; gap: 7px; border-radius: 999px; font-size: .875rem; }
.pxm-locs-groups .pxm-loc.is-selected, .pxm-locs-tabs .pxm-loc.is-selected { box-shadow: none; }
.pxm-locs-groups .pxm-flag, .pxm-locs-tabs .pxm-flag { width: 16px; height: 12px; }

/* many locations (location_tabs_over): a tab per area, the open area's chips below */
.pxm-loc-tabs {
    position: relative; display: flex; gap: 2px; margin-bottom: 12px; overflow-x: auto; overscroll-behavior-x: contain;
    scrollbar-width: none; box-shadow: inset 0 -1px 0 var(--pxm-rule);
}
.pxm-loc-tabs::-webkit-scrollbar { display: none; }
.pxm-loc-tabs.pxm-fade-r { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); }
.pxm-loc-tabs.pxm-fade-l { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to left, #000 calc(100% - 40px), transparent); }
.pxm-loc-tabs.pxm-fade-l.pxm-fade-r {
    -webkit-mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent);
    mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent);
}
.pxm-loc-tab {
    position: relative; flex: none; margin: 0; padding: 8px 12px 10px; border: 0; border-radius: 6px 6px 0 0; background: none;
    color: var(--pxm-muted); font: inherit; font-size: .875rem; font-weight: 500; line-height: 1.25; white-space: nowrap; cursor: pointer;
}
.pxm-loc-tab:hover { color: var(--pxm-ink); background: var(--pxm-surface); }
.pxm-loc-tab.is-active { color: var(--pxm-accent); background: none; cursor: default; }
.pxm-loc-tab.is-active::after { content: ''; position: absolute; left: 8px; right: 8px; bottom: 0; height: 2px; border-radius: 2px 2px 0 0; background: var(--pxm-accent); }
.pxm-loc-tab-n { color: var(--pxm-faint); font-weight: 400; }
.pxm-loc-tab.is-active .pxm-loc-tab-n { color: inherit; opacity: .7; }
.pxm .pxm-loc-tab:focus-visible { outline-offset: -2px; }
.pxm-loc-panels { display: grid; }
.pxm-loc-panel { grid-area: 1 / 1; min-width: 0; visibility: hidden; }
.pxm-loc-panel.is-active { visibility: visible; }
.pxm-locs-tabs .pxm-loc { padding: 4px 10px 4px 8px; gap: 6px; }   /* a touch tighter: 7 chips per row in the desktop column */

.pxm-plan-notice {
    display: flex; gap: 8px; margin: 0 0 10px; padding: 8px 12px; border-radius: 8px;
    background: #fff4e5; color: var(--pxm-warn); font-size: .875rem;
}
.pxm-sum-choose, .pxm-bar-choose { display: none; }
.pxm.needs-plan .pxm-config { display: none; }
.pxm.needs-plan .pxm-summary:not(.is-empty) .pxm-sum-body > :not(.pxm-sum-h):not(.pxm-sum-choose):not(.pxm-cta-main) { display: none; }
.pxm-summary.is-empty .pxm-sales-btn { margin-bottom: 8px; }
.pxm.needs-plan .pxm-sum-choose { display: block; margin: 0 0 14px; color: var(--pxm-muted); }
.pxm.needs-plan .pxm-bar-toggle > * { display: none; }
.pxm.needs-plan .pxm-bar-toggle > .pxm-bar-choose { display: block; grid-area: rec; color: var(--pxm-ink); font-weight: 500; }

/* ---------- plan table ---------- */

.pxm-plan-table { border: 1px solid var(--pxm-rule); border-radius: var(--pxm-radius); overflow: hidden; background: #fff; }
.pxm-plan-hdr, .pxm-plan {
    display: grid; grid-template-columns: 22px minmax(80px, 1.1fr) minmax(80px, 1fr) minmax(80px, 1fr) minmax(128px, auto);
    align-items: center; column-gap: 14px; padding: 0 16px;
}
.pxm-plan-hdr { height: 32px; background: var(--pxm-surface); color: var(--pxm-muted); font-size: .8125rem; border-bottom: 1px solid var(--pxm-rule); }
.pxm-col-price { text-align: right; }
.pxm-plan {
    position: relative; height: 40px; margin: 0; border-top: 1px solid var(--pxm-rule); cursor: pointer;
    font-weight: 400; color: var(--pxm-text);
}
.pxm-plan-rows .pxm-plan:first-child { border-top: 0; }
.pxm-plan:hover { background: var(--pxm-surface); }
.pxm-plan input { position: absolute; opacity: 0; pointer-events: none; }
.pxm-plan input::after, .pxm-opt input::after { display: none !important; }
.pxm-radio { width: 16px; height: 16px; border: 1.5px solid var(--pxm-faint); border-radius: 50%; background: #fff; }
.pxm-plan.is-selected { background: var(--pxm-accent-tint); box-shadow: inset 3px 0 0 var(--pxm-accent); }
.pxm-plan.is-selected .pxm-plan-name, .pxm-plan.is-selected .pxm-plan-cpu, .pxm-plan.is-selected .pxm-plan-ram, .pxm-plan.is-selected .pxm-plan-price { font-weight: 500; }
.pxm-plan.is-selected .pxm-radio { border: 5px solid var(--pxm-accent); }
.pxm-plan input:focus-visible ~ .pxm-radio { outline: 2px solid var(--pxm-accent); outline-offset: 2px; }
.pxm-plan-cpu { white-space: nowrap; }
.pxm-plan-name { color: var(--pxm-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pxm-plan-cpu, .pxm-plan-ram { color: var(--pxm-text); white-space: nowrap; }
.pxm-plan-price { text-align: right; white-space: nowrap; color: var(--pxm-ink); font-weight: 400; }
.pxm-p, .pxm-per { display: none; }
.pxm-per { color: var(--pxm-muted); font-weight: 400; font-size: .8125rem; margin-left: 2px; }
.pxm-cyc-m .pxm-p-m, .pxm-cyc-q .pxm-p-q, .pxm-cyc-s .pxm-p-s, .pxm-cyc-a .pxm-p-a, .pxm-cyc-b .pxm-p-b, .pxm-cyc-t .pxm-p-t,
.pxm-cyc-m .pxm-per-m, .pxm-cyc-q .pxm-per-q, .pxm-cyc-s .pxm-per-s, .pxm-cyc-a .pxm-per-a, .pxm-cyc-b .pxm-per-b, .pxm-cyc-t .pxm-per-t { display: inline; }
/* bare metal: CPU / cores / RAM / storage columns; a one-line spec summary on phones */
.pxm-plan-table.is-metal .pxm-plan-hdr, .pxm-plan-table.is-metal .pxm-plan {
    grid-template-columns: 22px minmax(0, .9fr) minmax(0, 1.5fr) minmax(0, .7fr) minmax(0, 1fr) minmax(0, 1.5fr) 112px;
    column-gap: 10px;
}
.pxm-plan-table.is-metal .pxm-plan { height: auto; min-height: 40px; padding-top: 7px; padding-bottom: 7px; }
.pxm-plan-table.is-metal .pxm-plan-name { white-space: normal; overflow: visible; overflow-wrap: anywhere; }
.pxm-plan-table.is-metal .pxm-tag-out { display: block; margin: 1px 0 0; font-size: .75rem; line-height: 1.2; white-space: nowrap; }
.pxm-plan-cores, .pxm-plan-disk { color: var(--pxm-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* bare metal cells wrap onto a second line rather than being cut */
.pxm-plan-table.is-metal .pxm-plan-cpu, .pxm-plan-table.is-metal .pxm-plan-ram, .pxm-plan-table.is-metal .pxm-plan-disk,
.pxm-plan-table.is-metal .pxm-plan-cores { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.3; }
.pxm-plan-sum { display: none; }
.pxm-plan-sum > span { white-space: nowrap; }
.pxm-plans { container-type: inline-size; container-name: pxmplans; }
@container pxmplans (max-width: 660px) {
    .pxm-plan-table.is-metal .pxm-plan-hdr { display: none; }
    .pxm-plan-table.is-metal .pxm-plan {
        grid-template-columns: 18px minmax(0, 1fr) auto; grid-template-areas: "r n p" ". s s";
        height: auto; min-height: 40px; padding: 7px 12px; row-gap: 1px; column-gap: 10px;
    }
    .pxm-plan-table.is-metal .pxm-plan .pxm-radio { grid-area: r; }
    .pxm-plan-table.is-metal .pxm-plan .pxm-plan-name { grid-area: n; }
    .pxm-plan-table.is-metal .pxm-plan .pxm-plan-price { grid-area: p; }
    .pxm-plan-table.is-metal .pxm-plan-cpu, .pxm-plan-table.is-metal .pxm-plan-cores,
    .pxm-plan-table.is-metal .pxm-plan-ram, .pxm-plan-table.is-metal .pxm-plan-disk { display: none; }
    .pxm-plan-table.is-metal .pxm-plan-sum { display: block; grid-area: s; color: var(--pxm-muted); font-size: .8125rem; white-space: normal; }
}
.pxm-plan.is-nocycle .pxm-plan-price::before { content: "\2013"; color: var(--pxm-faint); }
.pxm-plan.is-nocycle .pxm-per { display: none; }
.pxm-plan.is-out { cursor: not-allowed; color: var(--pxm-faint); }
.pxm-plan.is-out .pxm-plan-name, .pxm-plan.is-out .pxm-plan-cpu, .pxm-plan.is-out .pxm-plan-cores, .pxm-plan.is-out .pxm-plan-ram, .pxm-plan.is-out .pxm-plan-disk, .pxm-plan.is-out .pxm-plan-sum, .pxm-plan.is-out .pxm-plan-price { color: var(--pxm-faint); }
.pxm-plan.is-out:hover { background: transparent; }
.pxm-tag-out { display: inline-block; font-style: normal; font-size: .75rem; color: var(--pxm-warn); margin-left: 4px; }
.pxm-tag-out::first-letter { text-transform: uppercase; }
.pxm-sales-link { font-size: .75rem; font-weight: 400; color: var(--pxm-accent) !important; text-decoration: underline; }
.pxm-row-sales { display: block; margin-top: 1px; line-height: 1.2; }
.pxm-plan-table:not(.is-metal) .pxm-row-sales { display: inline; margin-left: 6px; }
.pxm-seg-price.is-out .pxm-tag-out { margin-left: 0; }

/* nothing in stock here: say so, offer sales and the other locations */
.pxm-booked { margin: 0 0 12px; padding: 12px 14px; border-radius: 8px; background: var(--pxm-surface); border: 1px solid var(--pxm-rule); }
.pxm-booked-text { margin: 0 0 10px; color: var(--pxm-ink); }
.pxm-booked-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.pxm-plan.is-pinned { border-top: 1px dashed var(--pxm-faint); }
.pxm-showall {
    display: block; margin: 8px 0 0; padding: 4px 0; border: 0; background: none; color: var(--pxm-accent);
    font: inherit; font-size: .875rem; font-weight: 400; cursor: pointer;
}
.pxm-showall:hover { text-decoration: underline; }
.pxm-empty { color: var(--pxm-muted); }

/* ---------- storage ---------- */
.pxm-disks { display: grid; gap: 4px; }
.pxm-disk {
    display: grid; grid-template-columns: minmax(0, 1fr) auto 104px 28px; grid-template-areas: "name step line rm" "range range range range";
    align-items: center; column-gap: 16px; padding: 8px 0 4px;
}
.pxm-disk + .pxm-disk { border-top: 1px dashed var(--pxm-rule); }
.pxm-disk.is-empty { display: none; }
.pxm-disk-name { grid-area: name; display: flex; flex-direction: column; min-width: 0; }
.pxm-disk-name label { margin: 0; font-weight: 400; color: var(--pxm-ink); }
.pxm-unit { color: var(--pxm-muted); font-size: .8125rem; }
.pxm-stepper { grid-area: step; justify-self: start; display: inline-flex; align-items: center; height: 36px; border: 1px solid var(--pxm-rule); border-radius: 8px; background: #fff; }
.pxm-step {
    display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 0;
    border: 0; background: none; color: var(--pxm-muted); cursor: pointer;
}
.pxm-step:hover { color: var(--pxm-ink); background: var(--pxm-surface); }
.pxm-step .material-icons { font-size: 18px; }
.pxm .pxm-qty {
    width: 64px; height: 34px !important; padding: 0 2px !important; margin: 0; border: 0 !important; border-left: 1px solid var(--pxm-rule) !important;
    border-radius: 0 !important; box-shadow: none !important; background: transparent !important;
    text-align: right; font: inherit; font-weight: 400; line-height: 34px !important; color: var(--pxm-ink); -moz-appearance: textfield;
}
.pxm-qty::-webkit-outer-spin-button, .pxm-qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pxm-qty-unit { padding: 0 8px 0 4px; color: var(--pxm-muted); font-size: .875rem; border-right: 1px solid var(--pxm-rule); line-height: 34px; }
.pxm-line { grid-area: line; text-align: right; color: var(--pxm-ink); font-weight: 400; white-space: nowrap; transition: opacity .15s; }
.pxm-line.is-pending { opacity: .35; }
.pxm-per-s { color: var(--pxm-muted); font-weight: 400; font-size: .8125rem; }
.pxm-disk-remove {
    grid-area: rm; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: none;
    color: var(--pxm-faint); cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.pxm-disk-remove:hover { color: var(--pxm-ink); background: var(--pxm-surface); }
.pxm-disk-remove .material-icons { font-size: 18px; }

.pxm .pxm-range {
    grid-area: range; width: 100%; height: 22px !important; margin: 2px 0 0; padding: 0 !important; border: 0 !important;
    border-radius: 0 !important; box-shadow: none !important; background: transparent !important; cursor: pointer;
    -webkit-appearance: none; appearance: none; --pxm-fill: 0%;
}
.pxm-range::-webkit-slider-runnable-track {
    height: 4px; border-radius: 2px;
    background: linear-gradient(to right, var(--pxm-accent) var(--pxm-fill), var(--pxm-rule) var(--pxm-fill));
}
.pxm-range::-moz-range-track { height: 4px; border-radius: 2px; background: var(--pxm-rule); }
.pxm-range::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--pxm-accent); }
.pxm-range::-webkit-slider-thumb {
    -webkit-appearance: none; width: 16px; height: 16px; margin-top: -6px; border-radius: 50%;
    background: #fff; border: 2px solid var(--pxm-accent); box-shadow: 0 1px 3px rgba(29, 34, 48, .2);
}
.pxm-range::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 2px solid var(--pxm-accent); }

.pxm-add-num {
    display: inline-flex; align-items: center; gap: 4px; margin-top: 10px; padding: 6px 12px 6px 8px;
    border: 1px dashed var(--pxm-faint); border-radius: 8px; background: none; color: var(--pxm-ink);
    font: inherit; font-size: .875rem; cursor: pointer;
}
.pxm-add-num:hover { border-color: var(--pxm-accent); color: var(--pxm-accent); }
.pxm-add-num .material-icons { font-size: 18px; }

/* ---------- choices (operating system and others) ---------- */
/* hardware choices (memory, disks): one segmented row per option */
/* fields inside a category section */
.pxm-fields { display: grid; gap: 16px; }
.pxm-fields > .pxm-disk + .pxm-disk { margin-top: -12px; }
.pxm-seg, .pxm-checks, .pxm-fam { margin: 0; padding: 0; border: 0; min-width: 0; }
.pxm-field-h { display: block; width: 100%; margin: 0 0 6px; padding: 0; font-size: .9375rem; font-weight: 500; color: var(--pxm-ink); }
.pxm-seg-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 6px; }
.pxm-seg-opt {
    position: relative; display: flex; flex-direction: column; gap: 1px; margin: 0; padding: 7px 10px; min-width: 0;
    border: 1px solid var(--pxm-rule); border-radius: 8px; background: #fff; cursor: pointer; font-weight: 400;
}
.pxm-seg-opt:hover { border-color: var(--pxm-faint); }
.pxm-seg-opt input { position: absolute; opacity: 0; pointer-events: none; }
.pxm-seg-opt input::after { display: none !important; }
.pxm-seg-opt:has(input:checked) { border-color: var(--pxm-accent); background: var(--pxm-accent-tint); box-shadow: inset 0 0 0 1px var(--pxm-accent); }
.pxm-seg-opt:has(input:focus-visible) { outline: 2px solid var(--pxm-accent); outline-offset: 2px; }
.pxm-seg-name { color: var(--pxm-ink); font-size: .875rem; line-height: 1.3; overflow-wrap: anywhere; }
.pxm-seg-opt:has(input:checked) .pxm-seg-name { font-weight: 500; }
.pxm-seg-price { color: var(--pxm-muted); font-size: .75rem; }
.pxm-seg-price.is-free { color: var(--pxm-ok); }
.pxm-seg-opt.is-disabled { cursor: not-allowed; opacity: .5; }

/* long unpriced choice lists (server purpose): a dropdown */
.pxm-dd-label { display: block; }
.pxm-dd-select { max-width: 420px; }

/* multi-value text fields (IP lists) */
.pxm-multi-row { display: flex; gap: 6px; align-items: center; max-width: 420px; margin-bottom: 6px; }
.pxm-multi-remove {
    flex: none; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--pxm-faint);
    cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.pxm-multi-remove:hover { color: var(--pxm-ink); background: var(--pxm-surface); }
.pxm-multi-remove .material-icons { font-size: 18px; }
.pxm-multi-add {
    display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px 4px 6px; border: 1px dashed var(--pxm-faint);
    border-radius: 8px; background: none; color: var(--pxm-ink); font: inherit; font-size: .875rem; cursor: pointer;
}
.pxm-multi-add .material-icons { font-size: 18px; }
.pxm-field textarea.form-control { max-width: 420px; }

/* operating system: one card per family with a version select (built by pxm_order.js) */
.pxm-fam-native { max-width: 420px; }
.pxm-fam.is-enhanced .pxm-fam-native { display: none; }
.pxm-fam-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.pxm-fam-card {
    display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 0 12px 10px;
    border: 1px solid var(--pxm-rule); border-radius: 8px; background: #fff;
}
.pxm-fam-card:hover { border-color: var(--pxm-faint); }
.pxm-fam-card.is-selected { border-color: var(--pxm-accent); background: var(--pxm-accent-tint); box-shadow: inset 3px 0 0 var(--pxm-accent); }
.pxm-fam-card.is-disabled { opacity: .55; }
.pxm-fam-pick {
    display: flex; align-items: center; gap: 8px; width: 100%; min-width: 0; padding: 9px 0 0; border: 0; background: none;
    text-align: left; font: inherit; color: var(--pxm-ink); cursor: pointer; white-space: nowrap;
}
.pxm-fam-pick .pxm-radio { flex: none; }
.pxm-fam-card.is-selected .pxm-radio { border: 5px solid var(--pxm-accent); }
.pxm-fam-name { flex: none; font-weight: 400; line-height: 1.3; }
.pxm-fam-card.is-selected .pxm-fam-name { font-weight: 500; }
.pxm-fam-tag {
    flex: none; margin-left: auto; padding: 1px 7px; border-radius: 999px; background: var(--pxm-surface);
    color: var(--pxm-muted); font-size: .75rem; line-height: 1.5;
}
.pxm-fam-tag.is-free { color: var(--pxm-ok); background: rgba(23, 128, 79, .08); }
.pxm .pxm-fam-ver {
    width: 100%; height: 30px !important; margin: 0; padding: 2px 6px !important;
    font-size: .875rem; line-height: 1.2 !important; border-radius: 6px !important; background-color: #fff;
}
.pxm-fam-ver-one { display: block; height: 30px; padding: 0 7px; font-size: .875rem; line-height: 30px; color: var(--pxm-muted); }
.pxm-tag-ok { color: var(--pxm-ok); font-size: .8125rem; font-weight: 400; }
.pxm-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 6px; }
.pxm-opt {
    position: relative; display: flex; align-items: center; gap: 10px; min-height: 38px; margin: 0; padding: 6px 12px;
    border: 1px solid var(--pxm-rule); border-radius: 8px; background: #fff; cursor: pointer; font-weight: 400;
}
.pxm-opt:hover { border-color: var(--pxm-faint); }
.pxm-opt input { position: absolute; opacity: 0; pointer-events: none; }
.pxm-opt .pxm-radio { flex: none; }
.pxm-opt input:checked + .pxm-radio { border: 5px solid var(--pxm-accent); }
.pxm-opt input:focus-visible + .pxm-radio { outline: 2px solid var(--pxm-accent); outline-offset: 2px; }
.pxm-opt-name { flex: 1; min-width: 0; color: var(--pxm-ink); line-height: 1.25; }
.pxm-opt-price, .pxm-opt-note { color: var(--pxm-muted); font-size: .8125rem; white-space: nowrap; }
.pxm-opt:has(input:checked) { border-color: var(--pxm-accent); background: var(--pxm-accent-tint); }
.pxm-opt.is-disabled { cursor: not-allowed; opacity: .55; }
.pxm-needchoice {
    display: flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 8px 12px; border-radius: 8px;
    background: #fff4e5; color: var(--pxm-warn); font-size: .875rem;
}
.pxm-needchoice .material-icons { font-size: 18px; }
.needs-choice .pxm-opt { border-color: #f0c48c; }

.pxm-incl-line { display: flex; align-items: flex-start; gap: 8px; color: var(--pxm-text); font-size: .9375rem; }
.pxm-incl-line .material-icons { font-size: 18px; color: var(--pxm-ok); margin-top: 1px; }
.pxm-incl-line .pxm-opt-price { margin-left: auto; }

/* checkbox lists */
.pxm-check { position: relative; display: flex; align-items: center; gap: 10px; margin: 0 0 6px; padding: 6px 0; cursor: pointer; font-weight: 400; }
.pxm-check input { position: absolute; opacity: 0; pointer-events: none; }
.pxm-check input::after { display: none !important; }
.pxm-check-box { flex: none; width: 16px; height: 16px; border: 1.5px solid var(--pxm-faint); border-radius: 4px; background: #fff; }
.pxm-check input:checked + .pxm-check-box { background: var(--pxm-accent); border-color: var(--pxm-accent); box-shadow: inset 0 0 0 2px #fff; }
.pxm-check input:focus-visible + .pxm-check-box { outline: 2px solid var(--pxm-accent); outline-offset: 2px; }
.pxm-check-name { color: var(--pxm-ink); }
.pxm-check.is-disabled { cursor: not-allowed; }
.pxm-check.is-disabled .pxm-check-name { color: var(--pxm-faint); }
.pxm-incl-text { display: flex; flex-direction: column; min-width: 0; }
.pxm-incl-title { color: var(--pxm-ink); }
.pxm-incl-detail { color: var(--pxm-muted); font-size: .8125rem; }

/* ---------- fields, advanced ---------- */
.pxm-field { margin-bottom: 14px; }
.pxm-field label { display: block; margin-bottom: 4px; font-weight: 400; color: var(--pxm-ink); }
.pxm-field .form-control { max-width: 420px; }
.pxm-optional { color: var(--pxm-faint); font-weight: 400; font-size: .8125rem; margin-left: 4px; }
.pxm-adv > summary {
    display: flex; align-items: baseline; gap: 12px; margin: 0; cursor: pointer; list-style: none;
}
.pxm-adv > summary::-webkit-details-marker { display: none; }
.pxm-adv > summary::after {
    content: "expand_more"; font-family: "Material Icons"; font-size: 20px; line-height: 1; color: var(--pxm-muted);
    margin-left: auto; transition: transform .15s; font-weight: 400; align-self: center;
}
.pxm-adv[open] > summary::after { transform: rotate(180deg); }
.pxm-adv-hint { color: var(--pxm-muted); font-weight: 400; font-size: .8125rem; }
.pxm-adv-body { padding-top: 14px; }
.pxm-promo-row { display: flex; gap: 8px; max-width: 420px; }
.pxm-promo-on { display: flex; gap: 12px; align-items: baseline; }
.pxm-link { font-size: .875rem; }
.pxm-stock .card { margin-bottom: 8px; }

/* ---------- summary ---------- */
.pxm-summary {
    background: #fff; border: 1px solid var(--pxm-rule); border-radius: 12px;
    box-shadow: 0 1px 2px rgba(29, 34, 48, .04), 0 8px 24px rgba(29, 34, 48, .06);
}
.pxm-summary.is-empty { padding: 20px; }
.pxm-bar { display: none; }
.pxm-sum-body { padding: 18px 20px 16px; position: relative; }
.pxm-sum-h { margin: 0 0 12px; font-size: 1rem; line-height: 1.35; font-weight: 600; color: var(--pxm-ink); }
.pxm-sum-region { display: block; font-weight: 400; color: var(--pxm-muted); font-size: .875rem; }

.pxm-lines { margin: 0; padding: 0 0 10px; border-bottom: 1px solid var(--pxm-rule); }
.pxm-li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 4px 0; }
.pxm-li dt { margin: 0; font-weight: 400; color: var(--pxm-text); min-width: 0; }
.pxm-li dd { margin: 0; color: var(--pxm-ink); white-space: nowrap; }
.pxm-li-plan dt { color: var(--pxm-ink); font-weight: 400; }
.pxm-li dt small { display: block; color: var(--pxm-faint); font-size: .75rem; font-weight: 400; }
.pxm-li-q { margin-left: 6px; color: var(--pxm-muted); }
.pxm-li.is-incl dt, .pxm-li.is-incl dd { color: var(--pxm-muted); font-size: .875rem; }
.pxm-li.is-incl dd { color: var(--pxm-ok); }
.pxm-li dt { overflow-wrap: anywhere; }
.pxm-li dt small.pxm-li-detail { color: var(--pxm-faint); font-size: .75rem; line-height: 1.35; margin-top: 1px; }
.pxm-li.is-provisional dt::after { content: " " attr(data-note); color: var(--pxm-warn); }
.pxm-fam-pending { margin: 8px 0 0; padding: 8px 10px; border-radius: 8px; background: #fff4e5; color: var(--pxm-warn); font-size: .8125rem; }

.pxm-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 0; color: var(--pxm-ink); }
.pxm-total > span:first-child { font-weight: 400; }
.pxm-total b { font-size: 1.2rem; font-weight: 600; }

.pxm-due { margin: 0 -8px; padding: 12px 8px 10px; border-radius: 8px; background: var(--pxm-surface); }
.pxm-due-head { display: flex; justify-content: space-between; align-items: baseline; color: var(--pxm-ink); }
.pxm-due-head > span { font-weight: 400; }
.pxm-due-head b { font-size: 1.35rem; font-weight: 600; }
.pxm-due-lines { margin-top: 6px; }
.pxm-dl { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 2px 0; font-size: .875rem; color: var(--pxm-muted); }
.pxm-dl > span:last-child { color: var(--pxm-text); white-space: nowrap; }
.pxm-dl small { font-size: .8125rem; }
.pxm-split > span:first-child::before {
    content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 2px; vertical-align: 1px;
}
.pxm-split[data-part] > span:first-child::before { background: var(--pxm-accent-soft); }
.pxm-split[data-full] > span:first-child::before { background: var(--pxm-accent); }
.pxm-covers { color: var(--pxm-muted); }
.pxm-timeline {
    --pxm-part: .37; display: flex; height: 6px; margin: 8px 0 4px; border-radius: 3px; overflow: hidden; gap: 2px;
}
.pxm-tl-part { flex: var(--pxm-part) 1 0; background: var(--pxm-accent-soft); }
.pxm-tl-full { flex: calc(1 - var(--pxm-part)) 1 0; background: var(--pxm-accent); }
.pxm-renew { margin: 10px 0 14px; font-size: .875rem; color: var(--pxm-text); }
.pxm-cta-main { white-space: normal; font-weight: 500; }
.pxm-cta-amt { font-weight: 400; }
.pxm-sum-note { margin: 10px 0 0; color: var(--pxm-faint); font-size: .75rem; }

/* updating: amounts fade, a thin bar runs along the top of the summary */
.pxm-summary .pxm-total b, .pxm-summary .pxm-due b, .pxm-summary .pxm-li dd, .pxm-summary .pxm-dl { transition: opacity .15s; }
.pxm.is-updating .pxm-summary .pxm-total b, .pxm.is-updating .pxm-summary .pxm-due b,
.pxm.is-updating .pxm-summary .pxm-li dd, .pxm.is-updating .pxm-summary .pxm-dl,
.pxm.is-updating .pxm-bar-toggle { opacity: .4; }
.pxm-summary::before {
    content: ""; position: absolute; left: 12px; right: 12px; top: 0; height: 2px; border-radius: 2px;
    background: var(--pxm-accent); transform: scaleX(0); transform-origin: left; opacity: 0;
}
.pxm.is-updating .pxm-summary::before { opacity: 1; animation: pxm-load 1s ease-in-out infinite; }
@keyframes pxm-load { 0% { transform: scaleX(0); } 60% { transform: scaleX(.85); } 100% { transform: scaleX(1); opacity: 0; } }
.pxm.is-placing .pxm-cta, .pxm.is-placing .pxm-place { pointer-events: none; opacity: .6; }
.pxm.is-switching .pxm-config { pointer-events: none; opacity: .55; transition: opacity .15s; }

/* ---------- checkout (stock parts) ---------- */
.pxm-checkout { grid-column: 1; }
.pxm-sub-block { margin-bottom: 22px; }
.pxm-gateways { display: flex; flex-wrap: wrap; gap: 8px; }
.pxm-gateway {
    display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 8px 14px; border: 1px solid var(--pxm-rule);
    border-radius: 8px; cursor: pointer; font-weight: 400;
}
.pxm-gateway:has(input:checked) { border-color: var(--pxm-accent); background: var(--pxm-accent-tint); }
.pxm-notes > summary { cursor: pointer; }
.pxm-term { display: flex; gap: 8px; align-items: baseline; }
.pxm-place-row { padding-top: 6px; }
.pxm-backdrop { display: none; }

/* ---------- narrower desktop ---------- */
@media (max-width: 1199.98px) {
    .pxm { --pxm-sum-w: 320px; }
    .pxm-grid { column-gap: 28px; }
    .pxm-plan-hdr, .pxm-plan { grid-template-columns: 22px minmax(64px, 1.1fr) minmax(64px, 1fr) minmax(64px, 1fr) minmax(112px, auto); column-gap: 10px; }
}

/* ---------- tablet and phone: one column, summary as a bottom bar ---------- */
@media (max-width: 991.98px) {
    .pxm { padding-bottom: 96px; }
    .pxm-grid { grid-template-columns: minmax(0, 1fr); }
    .pxm-summary {
        position: fixed; left: 0; right: 0; top: auto; bottom: 0; z-index: 1035; grid-column: auto !important; grid-row: auto;
        margin: 0; border-radius: 14px 14px 0 0; border-bottom: 0;
        box-shadow: 0 -6px 24px rgba(29, 34, 48, .12);
        max-height: 82vh; display: flex; flex-direction: column;
    }
    .pxm-bar { display: flex; align-items: center; gap: 12px; padding: 10px 16px; padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); order: 2; }
    .pxm-bar-toggle {
        flex: 1; min-width: 0; display: grid; grid-template-columns: 1fr auto; grid-template-areas: "rec caret" "due caret";
        align-items: center; padding: 0; border: 0; background: none; text-align: left; font: inherit; color: var(--pxm-ink); cursor: pointer;
    }
    .pxm-bar-rec { grid-area: rec; font-size: 1.05rem; }
    .pxm-bar-rec b { font-size: 1.15rem; font-weight: 600; }
    .pxm-bar-due { grid-area: due; color: var(--pxm-muted); font-size: .8125rem; }
    .pxm-bar-caret { grid-area: caret; color: var(--pxm-muted); transition: transform .2s; }
    .pxm-sheet-open .pxm-bar-caret { transform: rotate(180deg); }
    .pxm-cta-bar { flex: none; height: 44px; padding: 0 20px; border-radius: 10px; font-weight: 500; }
    .pxm-sum-body { display: none; order: 1; overflow-y: auto; border-bottom: 1px solid var(--pxm-rule); }
    .pxm-sheet-open .pxm-sum-body { display: block; }
    .pxm-sum-body .pxm-cta-main { display: none; }
    .pxm-summary.is-empty .pxm-sum-body .pxm-cta-main { display: block; }
    /* phones: the plan section already explains; keep the two actions side by side */
    .pxm-summary.is-empty .pxm-sum-body { display: flex; gap: 8px; }
    .pxm-summary.is-empty .pxm-empty-text { display: none; }
    .pxm-summary.is-empty .pxm-sum-body .btn { flex: 1 1 0; margin: 0; padding-left: 8px; padding-right: 8px; font-size: .9375rem; white-space: normal; }
    .pxm-summary.is-empty { padding: 14px 16px; }
    .pxm-summary.is-empty .pxm-sum-body { padding: 0; border: 0; }
    .pxm-summary::before { top: 0; }
    .pxm-sheet-open .pxm-backdrop { display: block; position: fixed; inset: 0; z-index: 1034; background: rgba(29, 34, 48, .35); }
}

@media (max-width: 575.98px) {
    .pxm-h1 { font-size: 1.4rem; }
    .pxm-head { padding-bottom: 14px; }
    .pxm-cycles { width: 100%; }
    .pxm-locs-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pxm-loc { padding: 8px 10px; gap: 8px; }
    .pxm-loc-group { grid-template-columns: minmax(0, 1fr); gap: 4px; }
    .pxm-loc-area { padding-top: 0; }
    .pxm-loc-tab { padding: 8px 10px 10px; }
    .pxm-cycle-btn { flex: 1; }
    .pxm-plan-hdr { display: none; }
    .pxm-plan, .pxm-plan-hdr { grid-template-columns: 18px auto auto minmax(0, 1fr) auto; column-gap: 8px; padding: 0 12px; }
    .pxm-seg-opts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .pxm-plan-cpu, .pxm-plan-ram { color: var(--pxm-muted); }
    .pxm-disk { grid-template-columns: minmax(0, 1fr) auto 28px; grid-template-areas: "name name rm" "step line line" "range range range"; row-gap: 6px; }
    .pxm-line { text-align: right; }
    .pxm-opts { grid-template-columns: 1fr 1fr; }

    .pxm-opt { padding: 6px 10px; }
}

@media (prefers-reduced-motion: reduce) {
    .pxm *, .pxm *::before, .pxm *::after { transition: none !important; animation: none !important; }
}
