/*!
 * Hostenix Order System (Order plugin template "hostenix", v1.5.0)
 *
 * Loaded by the Order plugin ONLY on order pages (it injects the active
 * template's css/order.css into the page head, after the client theme's
 * hostenix.css), so nothing here can reach the client dashboard, login,
 * billing, services, support or account pages.
 *
 * Visual source of truth: hostenix.com Web Hosting section
 * (src/components/web-hosting/HostingPlans.astro). Tokens come from the
 * client theme (--hx-*) with local fallbacks.
 *
 * Sections
 *   1. Tokens
 *   2. Functional rules carried over from the stock Wizard template
 *   3. Plans page: head + Monthly/Yearly toggle
 *   4. Plans page: cards
 *   5. Plans page: included strip + actions bar
 *   6. Later steps: titles, cards, summary, cart, totals
 *   7. Later steps: options, addons, payment methods, gateway
 *   8. Domain lookup, package groups, misc
 *   9. Responsive
 *  10. Motion
 */

/* ==========================================================================
   1. Tokens
   ========================================================================== */
body {
    --hxo-bg: var(--hx-bg, #010d1a);
    --hxo-border: var(--hx-border, #0b2440);
    --hxo-border-strong: var(--hx-border-strong, #14365c);
    --hxo-primary: var(--hx-primary, #0b8bfe);
    --hxo-primary-hi: var(--hx-primary-hi, #0a6fd6);
    --hxo-primary-lo: var(--hx-primary-lo, #0866c8);
    --hxo-accent: var(--hx-accent-text, #1e8fff);
    --hxo-accent-soft: var(--hx-accent-soft, #5cb0ff);
    --hxo-text: var(--hx-text, #ffffff);
    --hxo-text-body: var(--hx-text-body, #c3d1e1);
    --hxo-text-muted: var(--hx-text-muted, #8ea3bc);
    --hxo-text-subtle: var(--hx-text-subtle, #6f87a3);
    --hxo-line: var(--hx-line, rgba(92, 176, 255, 0.075));
    --hxo-divider: var(--hx-divider, rgba(92, 176, 255, 0.06));
    --hxo-glow-btn: var(--hx-glow-btn, 0 8px 28px -6px rgba(11, 139, 254, 0.55));
    --hxo-ease: var(--hx-ease, cubic-bezier(0.22, 1, 0.36, 1));
    --hxo-radius: 8px;
    --hxo-radius-md: 12px;
    --hxo-radius-lg: 16px;
    --hxo-radius-xl: 24px;
    /* hostenix.com .hplan surface */
    --hxo-plan-bg: linear-gradient(180deg, #03172f, #020e1d);
    --hxo-panel-bg: linear-gradient(180deg, rgba(3, 23, 47, 0.85), rgba(2, 14, 29, 0.85));
}

/* ==========================================================================
   2. Functional rules carried over from the stock Wizard template
   (visibility toggled by order.js / controller state - keep)
   ========================================================================== */
.package > .selected-btn,
.package.selected > .unselected-btn {
    display: none;
}

.package > .unselected-btn,
.package.selected > .selected-btn {
    display: block;
}

#queue_nonempty_btns,
#queue_continue_btns {
    display: none;
}

.currency form {
    float: right;
    margin: 10px 0;
}

.currency form * {
    margin-right: 0 !important;
    margin-left: 5px;
    display: flex;
}

#summary-details .btn {
    margin: 10px 0;
}

.card-order .row.card-fix {
    margin: 0 -20px;
}

.card-order .total-due {
    text-align: right;
}

.gateway-logo {
    object-fit: cover;
    max-height: 40px;
    max-width: 125px;
    box-sizing: border-box;
}

.payment_type,
.gateway {
    margin-right: 5px;
}

/* ==========================================================================
   3. Plans page: head + Monthly/Yearly toggle  (hostenix.com .billing)
   ========================================================================== */
.hx-plans {
    position: relative;
    padding-bottom: 1rem;
}

/* Soft blue atmosphere behind the cards (hostenix.com .plans__glow) */
.hx-plans::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 12rem;
    width: min(60rem, 120vw);
    aspect-ratio: 1.4;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at center, rgba(1, 81, 204, 0.22), transparent 62%);
    pointer-events: none;
    z-index: 0;
}

.hx-plans > * {
    position: relative;
    z-index: 1;
}

.hx-plans__head {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hx-plans__intro.section-title {
    max-width: 36rem;
    margin: 0 auto;
}

.hx-plans__intro p,
.hx-plans__intro .format {
    margin: 0;
    color: var(--hxo-text-muted);
    font-size: 1.0625rem;
    line-height: 1.6;
}

.hx-plans__head .alert {
    max-width: 40rem;
    margin: 1.25rem auto 0;
    text-align: left;
}

.hx-plans__currency {
    align-self: flex-end;
    margin-top: 0.5rem;
}

.hx-billing {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.75rem;
}

.hx-billing[hidden] {
    display: none;
}

.hx-billing__group {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.hx-billing__track {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 4px;
    background: rgba(1, 13, 26, 0.6);
    border: 1px solid var(--hxo-border-strong);
    border-radius: 999px;
}

.hx-billing__input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

#hx-main .hx-billing__opt {
    position: relative;
    z-index: 1;
    min-width: 7rem;
    margin: 0;
    padding: 0.65rem 1.25rem;
    color: var(--hxo-text-muted);
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    border-radius: 999px;
    cursor: pointer;
    transition: color 0.2s var(--hxo-ease);
}

#hx-main .hx-billing__opt:hover {
    color: var(--hxo-text);
}

#hx-main .hx-billing__input:checked + .hx-billing__opt {
    color: #ffffff;
}

.hx-billing__input:focus-visible + .hx-billing__opt {
    outline: 2px solid var(--hxo-accent);
    outline-offset: 3px;
}

.hx-billing__thumb {
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 4px;
    width: calc(50% - 4px);
    background: linear-gradient(180deg, var(--hxo-primary-hi), var(--hxo-primary-lo));
    border-radius: 999px;
    box-shadow: var(--hxo-glow-btn);
    transition: transform 0.25s var(--hxo-ease);
}

.hx-plans[data-billing="year"] .hx-billing__thumb {
    transform: translateX(100%);
}

.hx-billing__save {
    padding: 0.3rem 0.7rem;
    color: #7cc0ff;
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
    background: rgba(11, 139, 254, 0.1);
    border: 1px solid rgba(30, 143, 255, 0.5);
    border-radius: 999px;
}

/* ==========================================================================
   4. Plans page: cards  (hostenix.com .hplan / .hplan--featured)
   ========================================================================== */
.hx-plans__form {
    display: block;
}

.hx-plans__grid {
    display: grid;
    gap: 1.5rem;
    max-width: 26rem;
    margin: 2.75rem auto 0;
}

.hx-plans__cell {
    display: flex;
    min-width: 0;
}

.hx-plan {
    position: relative;
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    padding: clamp(1.75rem, 1.2rem + 1.5vw, 2.25rem);
    color: var(--hxo-text-body);
    text-align: left;
    background: var(--hxo-plan-bg);
    border: 1px solid var(--hxo-border-strong);
    border-radius: var(--hxo-radius-xl);
    transition: transform 0.3s var(--hxo-ease), border-color 0.3s var(--hxo-ease), box-shadow 0.3s var(--hxo-ease);
}

.hx-plan:not(.hx-plan--featured):not(.hx-plan--unavailable):hover {
    transform: translateY(-4px);
    border-color: rgba(30, 143, 255, 0.4);
}

/* Most Popular: gradient hairline border + deep glow + top radial light */
.hx-plan--featured {
    background:
        linear-gradient(180deg, #04224a, #021630 55%, #020f1f) padding-box,
        linear-gradient(180deg, #4fb0ff, rgba(11, 139, 254, 0.35) 45%, rgba(20, 54, 92, 0.6)) border-box;
    border: 1px solid transparent;
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.85), 0 0 90px -20px rgba(11, 139, 254, 0.45);
}

.hx-plan--featured::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(90% 50% at 50% 0%, rgba(30, 143, 255, 0.22), transparent 70%);
    pointer-events: none;
}

.hx-plan > * {
    position: relative;
}

/* Selected state: elegant blue ring (Blesta toggles .selected) */
.hx-plan.selected {
    border-color: rgba(30, 143, 255, 0.6);
    box-shadow: 0 0 0 1px rgba(30, 143, 255, 0.35), 0 30px 60px -30px rgba(11, 139, 254, 0.55);
}

.hx-plan--featured.selected {
    box-shadow:
        0 0 0 1px rgba(79, 176, 255, 0.55),
        0 40px 80px -30px rgba(0, 0, 0, 0.85),
        0 0 90px -20px rgba(11, 139, 254, 0.55);
}

.hx-plan--unavailable {
    opacity: 0.55;
}

.hx-plan__badge {
    position: absolute;
    top: 0;
    left: 50%;
    padding: 0.4rem 0.9rem;
    color: #ffffff;
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    white-space: nowrap;
    background: linear-gradient(180deg, var(--hxo-primary-hi), var(--hxo-primary-lo));
    border-radius: 999px;
    box-shadow: var(--hxo-glow-btn);
    transform: translate(-50%, -50%);
}

#hx-main .hx-plan__name {
    margin: 0;
    color: var(--hxo-text);
    font-size: 0.875rem;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

#hx-main .hx-plan--featured .hx-plan__name {
    color: #7cc0ff;
}

.hx-plan__tagline {
    min-height: 3em;
    margin: 0.5rem 0 0;
    color: var(--hxo-text-muted);
    font-size: 0.9375rem;
    line-height: 1.5;
}

.hx-plan__pricing {
    margin-top: 1.5rem;
}

.hx-plan__price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem;
    margin: 0;
}

.hx-plan__amount {
    color: var(--hxo-text);
    font-size: clamp(3rem, 2.4rem + 2vw, 3.75rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    font-variant-numeric: tabular-nums;
}

.hx-plan--featured .hx-plan__amount {
    font-size: clamp(3.25rem, 2.6rem + 2.4vw, 4.25rem);
}

.hx-plan__per {
    color: var(--hxo-text-muted);
    font-size: 1.0625rem;
    font-weight: 500;
}

.hx-plan__billed {
    margin: 0.4rem 0 0;
    color: var(--hxo-text-muted);
    font-size: 0.875rem;
}

.hx-plan__extra {
    margin: 0.25rem 0 0;
    color: var(--hxo-text-subtle);
    font-size: 0.8125rem;
}

.hx-plan__extra[hidden] {
    display: none;
}

/* Native Blesta billing select: shown when the toggle doesn't cover every term
   (or without JavaScript); hidden but still submitted when it does. */
.hx-plan__term {
    margin-top: 1.25rem;
}

#hx-main .hx-plan__term-label {
    display: block;
    margin: 0 0 0.4rem;
    color: var(--hxo-text-muted);
    font-size: 0.75rem;
    font-weight: 600;
}

#hx-main .hx-plan__term select {
    width: 100%;
}

.hx-plans--toggle .hx-plan[data-hx-term-covered="1"] .hx-plan__term {
    display: none;
}

/* 2x2 resource boxes (hostenix.com .hplan__limits) */
#hx-main .hx-plan__limits {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin: 1.5rem 0 0;
}

.hx-plan__limit {
    display: flex;
    flex-direction: column-reverse;
    justify-content: flex-end;
    gap: 0.1rem;
    min-width: 0;
    padding: 0.7rem 0.85rem;
    background: rgba(1, 13, 26, 0.45);
    border: 1px solid var(--hxo-border);
    border-radius: var(--hxo-radius-md);
}

.hx-plan__limit--key {
    background: rgba(11, 139, 254, 0.1);
    border-color: rgba(30, 143, 255, 0.45);
}

#hx-main .hx-plan__limit dt {
    margin: 0;
    color: var(--hxo-text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.3;
}

#hx-main .hx-plan__limit dd {
    margin: 0;
    color: var(--hxo-text);
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.01em;
    overflow-wrap: anywhere;
}

.hx-plan__description {
    margin-top: 1.5rem;
    color: var(--hxo-text-muted);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.hx-plan__description p {
    margin: 0 0 0.5rem;
}

/* CTA pinned to the bottom so cards align */
.hx-plan > .order {
    margin-top: auto;
    padding-top: 2rem;
}

#hx-main .hx-plan .order .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 3.25rem;
    font-size: 0.9375rem;
    font-weight: 700;
    border-radius: var(--hxo-radius);
}

#hx-main .hx-plan__cta--selected .fas {
    font-size: 0.85em;
}

/* Featured card's Select button carries a blue hint (site: featured CTA is primary) */
#hx-main .hx-plan--featured .unselected-btn .btn-light {
    border-color: rgba(30, 143, 255, 0.55) !important;
}

/* ==========================================================================
   5. Plans page: included strip + actions bar
   ========================================================================== */
.hx-plans__shared {
    position: relative;
    max-width: 26rem;
    margin: 2rem auto 0;
    padding: 1.4rem clamp(1.25rem, 1rem + 1.5vw, 2rem);
    background: var(--hxo-panel-bg);
    border: 1px solid var(--hxo-border-strong);
    border-radius: var(--hxo-radius-xl);
}

.hx-plans__shared::before {
    content: "";
    position: absolute;
    top: 0;
    left: 15%;
    right: 15%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(92, 176, 255, 0.7), transparent);
}

#hx-main .hx-plans__shared-title {
    margin: 0;
    color: var(--hxo-text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-align: center;
    text-transform: uppercase;
}

.hx-plans__shared-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem 2.5rem;
    margin: 0.9rem 0 0;
    padding: 0;
    list-style: none;
}

.hx-plans__shared-list li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: #c7d4e3;
    font-size: 0.9375rem;
}

#hx-main .hx-plans__shared-list .fas {
    display: grid;
    flex: none;
    place-items: center;
    width: 18px;
    height: 18px;
    color: #ffffff;
    font-size: 0.55rem;
    background: var(--hxo-primary);
    border-radius: 50%;
    box-shadow: 0 0 10px -2px rgba(11, 139, 254, 0.7);
}

.hx-plans__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1.5rem;
    max-width: 26rem;
    margin: 1.5rem auto 0;
    padding: 1.15rem 1.35rem;
    background: rgba(2, 14, 29, 0.6);
    border: 1px solid var(--hxo-border);
    border-radius: var(--hxo-radius-lg);
}

.hx-plans__summary {
    margin: 0;
    color: var(--hxo-text-muted);
    font-size: 0.9375rem;
}

.hx-plans__summary:empty {
    display: none;
}

.hx-plans__summary strong {
    color: var(--hxo-text);
    font-weight: 700;
}

.hx-plans__summary-price {
    color: var(--hxo-accent-soft);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.hx-plans__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-left: auto;
}

#hx-main .hx-plans__buttons .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 700;
    border-radius: var(--hxo-radius);
}

.hx-plans__note {
    flex-basis: 100%;
    color: var(--hxo-text-subtle);
    font-size: 0.8125rem;
    text-align: right;
}

/* ==========================================================================
   6. Later steps: titles, cards, summary, cart, totals
   (stock markup - configure, cart, signup, checkout, complete)
   ========================================================================== */
#hx-main .section-title {
    margin: 0.5rem 0 1.25rem;
}

#hx-main .section-title h3 {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0 0 0.35rem;
    color: var(--hxo-text);
    font-size: 1.375rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

#hx-main .section-title h3 .fas {
    color: var(--hxo-accent-soft);
    font-size: 0.85em;
}

#hx-main .section-title p {
    margin: 0;
    color: var(--hxo-text-muted);
}

#package-config h4,
#package-config h5 {
    margin: 1.5rem 0 0.75rem;
    color: var(--hxo-text);
    font-size: 1rem;
    font-weight: 700;
}

#hx-main .card-order {
    margin-bottom: 1.25rem;
    color: var(--hxo-text-body);
    font-size: 0.9375rem;
    border-radius: var(--hxo-radius-lg);
}

#hx-main .card-order.p-3,
#hx-main .card-order .p-3 {
    padding: 1.5rem !important;
}

#hx-main .card-order.p-2 {
    padding: 1.25rem !important;
}

#hx-main .card-order h4 {
    color: var(--hxo-text);
}

/* Summary / cart tables: separators only */
#hx-main .card-order .table {
    margin-bottom: 0.5rem;
}

#hx-main .card-order .table > thead > tr > th {
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--hxo-line);
}

#hx-main .card-order .table > tbody > tr > td {
    padding: 0.8rem 0.5rem;
    border: 0;
    border-top: 1px solid var(--hxo-divider);
}

#hx-main .price-col {
    color: var(--hxo-text);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    text-align: right;
    white-space: nowrap;
}

#hx-main .card-order .total-due {
    margin-top: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--hxo-line);
}

#hx-main .card-order .total-due h4 {
    margin: 0.25rem 0 0;
    color: var(--hxo-text);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

#hx-main #order-summary {
    position: relative;
    min-height: 4rem;
}

/* Long domain names / item descriptions */
#hx-main .card-order td,
#hx-main .card-order th {
    overflow-wrap: anywhere;
}

/* Coupon */
#hx-main #coupon_box {
    margin-top: 0.75rem;
}

#hx-main #coupon_message {
    margin-top: 0.5rem;
}

/* Step buttons */
#hx-main .btn-lg {
    min-height: 3.25rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    font-size: 0.9375rem;
    font-weight: 700;
    border-radius: var(--hxo-radius);
}

/* ==========================================================================
   7. Later steps: options, addons, payment methods, gateway
   ========================================================================== */
/* Radio choices become selectable tiles: configure-step addons
   (#package-config), login vs. create-account (signup.pdt) and non-merchant
   gateways (checkout.pdt .gateway). Markup verified in the Order 3.1.5 views. */
#hx-main .radio {
    margin: 0 0 0.5rem;
}

#hx-main .radio label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    margin: 0;
    padding: 0.8rem 1rem;
    color: var(--hxo-text-body);
    font-size: 0.9375rem;
    font-weight: 500;
    background: rgba(1, 13, 26, 0.45);
    border: 1px solid var(--hxo-border);
    border-radius: var(--hxo-radius-md);
    cursor: pointer;
    transition: border-color 0.2s var(--hxo-ease), background-color 0.2s var(--hxo-ease);
}

#hx-main .radio label:hover {
    border-color: rgba(30, 143, 255, 0.35);
}

#hx-main .radio label:has(input:checked) {
    color: var(--hxo-text);
    background: rgba(11, 139, 254, 0.1);
    border-color: rgba(30, 143, 255, 0.55);
}

#hx-main .radio input[type="radio"],
#hx-main .checkbox input[type="checkbox"] {
    flex: none;
    margin: 0;
    accent-color: var(--hxo-primary);
}

#hx-main .checkbox label {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

/* Gateway logos are usually dark artwork: give them a light chip */
#hx-main .gateway-logo {
    padding: 4px 8px;
    background: #ffffff;
    border-radius: 6px;
}

/* Stripe Payments gateway (components/gateways/merchant/stripe_payments).
   Its styles.css is built on CSS custom properties with light fallbacks
   (--bg-tertiary, --bg-secondary, --border-color, --text-primary,
   --text-secondary, --text-muted, --accent-color); defining them here gives the
   card/ACH forms the Hostenix surface. The card number text inside Stripe's
   iframe is coloured by the gateway from <html data-theme="dark">, which this
   template's checkout.pdt sets (light text on the dark field). */
#hx-main #stripe-cc-form,
#hx-main #stripe-ach-form {
    --bg-tertiary: rgba(1, 13, 26, 0.45);
    --bg-secondary: #010f20;
    --border-color: rgba(92, 176, 255, 0.14);
    --text-primary: #ffffff;
    --text-secondary: var(--hxo-text-muted);
    --text-muted: var(--hxo-text-subtle);
    --accent-color: rgba(11, 139, 254, 0.75);
    max-width: 26rem;
    padding: 1.25rem;
    border: 1px solid var(--hxo-border);
    border-radius: var(--hxo-radius-md);
}

#hx-main #stripe-cc-form .StripeElement {
    height: auto;
    min-height: 3rem;
    max-width: none;
    padding: 0.85rem 0.95rem;
    border-radius: var(--hxo-radius);
    box-shadow: none;
}

#hx-main #stripe-cc-form .StripeElement--focus {
    border-color: rgba(11, 139, 254, 0.75);
    box-shadow: 0 0 0 3px rgba(11, 139, 254, 0.16);
}

/* Gateway sets a pale-yellow autofill background with !important */
#hx-main #stripe-cc-form .StripeElement--webkit-autofill {
    background-color: #011224 !important;
}

#hx-main #card-errors,
#hx-main #ach-errors {
    margin-top: 0.6rem;
    color: var(--hx-down-text, #ff8f8c);
    font-size: 0.875rem;
}

#hx-main #payment_details,
#hx-main #order_totals {
    margin-top: 1rem;
}

#hx-main .pass-reset {
    padding-top: 0.35rem;
    color: var(--hxo-text-subtle);
    font-size: 0.8125rem;
}

#hx-main #create-account {
    margin-top: 1.5rem;
    padding: 1.5rem 0 0;
    border-top: 1px solid var(--hxo-line);
}

/* Signup / login panels */
#hx-main .login_form .card,
#hx-main .signup_form .card {
    border-radius: var(--hxo-radius-lg);
}

/* Completed order */
#hx-main .payment_buttons {
    margin-top: 1rem;
}

/* ==========================================================================
   8. Domain lookup, package groups, misc
   ========================================================================== */
#hx-main .whois {
    margin: 1rem 0;
    padding: 1.75rem;
    background-color: rgba(1, 13, 26, 0.5);
    background-image: url(../images/globe.svg);
    background-repeat: no-repeat;
    background-position: 110% -70px;
    border: 1px solid var(--hxo-border);
    border-radius: var(--hxo-radius-lg);
}

#hx-main .whois div.tlds,
#hx-main .whois div.search {
    display: block;
    margin: 0 auto;
    text-align: center;
}

#hx-main .whois div.checkbox label {
    padding-right: 5px;
}

#hx-main .whois .show_more {
    margin-left: 5px;
}

#hx-main .domains {
    font-size: 0.9375rem;
}

#hx-main #empty_cart {
    margin-bottom: 20px;
}

/* Package-group list (order form with several groups) */
#hx-main .package-groups {
    margin-top: 1.25rem;
}

#hx-main .package-groups .list-group-item {
    margin-bottom: 1rem;
    padding: 1.25rem 1.5rem;
    background: var(--hxo-plan-bg);
    border: 1px solid var(--hxo-border-strong);
    border-radius: var(--hxo-radius-lg);
    transition: border-color 0.2s var(--hxo-ease), transform 0.2s var(--hxo-ease);
}

#hx-main .package-groups .list-group-item:hover {
    transform: translateY(-2px);
    border-color: rgba(30, 143, 255, 0.4);
}

#hx-main .package-groups .list-group-item h4 {
    margin: 0;
    color: var(--hxo-text) !important;
    font-size: 1.125rem;
    font-weight: 700;
}

/* ==========================================================================
   9. Responsive  (hostenix.com: cards stack to 26rem until 960px)
   ========================================================================== */
@media (min-width: 960px) {
    .hx-plans__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        align-items: stretch;
        max-width: 68rem;
    }

    /* Featured plan in the middle of three: slightly wider, as on hostenix.com */
    .hx-plans__grid:has(> .hx-plans__cell:nth-child(2):nth-last-child(2) .hx-plan--featured) {
        grid-template-columns: 1fr 1.08fr 1fr;
    }

    .hx-plans__grid[data-count="2"] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 46rem;
    }

    .hx-plans__grid[data-count="1"] {
        grid-template-columns: minmax(0, 26rem);
        justify-content: center;
    }

    .hx-plans__shared,
    .hx-plans__actions {
        max-width: 68rem;
    }

    .hx-plans__shared {
        margin-top: 2.5rem;
    }
}

@media (max-width: 959.98px) {
    .hx-plan--featured {
        margin-block: 0.75rem;
    }
}

@media (max-width: 575.98px) {
    .hx-billing__opt {
        min-width: 6rem;
    }

    .hx-plans__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hx-plans__buttons {
        flex-direction: column;
        margin-left: 0;
    }

    #hx-main .hx-plans__buttons .btn {
        justify-content: center;
        width: 100%;
    }

    .hx-plans__note {
        text-align: center;
    }

    .currency form {
        float: none;
        width: 100%;
        margin: 0 0 15px;
    }

    .currency form * {
        display: block;
        width: 100% !important;
        margin: 0 !important;
    }
}

/* ==========================================================================
   10. Motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    .hx-plan,
    .hx-billing__thumb,
    #hx-main .package-groups .list-group-item {
        transition: none;
    }

    .hx-plan:not(.hx-plan--featured):not(.hx-plan--unavailable):hover,
    #hx-main .package-groups .list-group-item:hover {
        transform: none;
    }
}
