/**
 * WEBHOST - Supreme Comparison order form
 * Redesigned product selection experience for the WEBHOST child theme.
 */

:root {
    --wh-order-bg: #071120;
    --wh-order-surface: #101a31;
    --wh-order-surface-2: #0b1529;
    --wh-order-surface-3: #131f3a;
    --wh-order-border: rgba(132, 145, 190, .22);
    --wh-order-border-strong: rgba(136, 93, 246, .42);
    --wh-order-text: #f7f8ff;
    --wh-order-muted: #9aa6bf;
    --wh-order-purple: #835cf6;
    --wh-order-purple-2: #a34ce6;
    --wh-order-purple-soft: rgba(132, 92, 246, .15);
    --wh-order-success: #61d296;
    --wh-order-warning: #f3bf68;
    --wh-order-danger: #ff7c88;
}

html,
body {
    overflow-x: hidden;
    background: var(--wh-order-bg) !important;
}

#main-body,
#main-body > .container,
.main-content,
.primary-content {
    background: transparent !important;
}

#main-body {
    min-height: 70vh;
    background:
        radial-gradient(circle at 88% 0%, rgba(108, 61, 211, .13), transparent 32%),
        linear-gradient(180deg, #071120 0%, #06101d 100%) !important;
}

.webhost-order-page {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 10px 0 34px;
    color: var(--wh-order-text);
}

/* Hero */
.webhost-order-hero {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 0 0 22px;
    padding: 24px 26px;
    border: 1px solid var(--wh-order-border-strong);
    border-radius: 22px;
    background:
        radial-gradient(circle at 90% 15%, rgba(129, 82, 235, .20), transparent 38%),
        linear-gradient(135deg, rgba(17, 27, 51, .98), rgba(13, 22, 42, .98));
    box-shadow: 0 18px 45px rgba(0, 0, 0, .20), inset 0 1px 0 rgba(255, 255, 255, .025);
}

.webhost-order-hero-icon,
.webhost-product-icon,
.includes-features-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 54px;
    height: 54px;
    border: 1px solid rgba(151, 112, 255, .38);
    border-radius: 16px;
    color: #c7b8ff;
    background: linear-gradient(145deg, rgba(107, 76, 218, .32), rgba(91, 55, 175, .22));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
    font-size: 20px;
}

.webhost-order-eyebrow,
.product-group-kicker,
.includes-features-heading > div:last-child > span {
    margin-bottom: 4px;
    color: #a8a6c9;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.webhost-order-hero h1 {
    margin: 0;
    color: var(--wh-order-text);
    font-size: 30px;
    font-weight: 750;
    line-height: 1.15;
}

.webhost-order-hero p {
    margin: 7px 0 0;
    color: var(--wh-order-muted);
    font-size: 15px;
    line-height: 1.5;
}

/* Menu toggle + menu panels */
.webhost-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    margin: 0 0 18px;
    padding: 10px 15px;
    border: 1px solid var(--wh-order-border) !important;
    border-radius: 12px !important;
    color: #e7e9f4 !important;
    background: #0f1a30 !important;
    box-shadow: none !important;
    font-size: 14px;
    font-weight: 650;
}

.webhost-menu-toggle:hover,
.webhost-menu-toggle:focus {
    border-color: var(--wh-order-border-strong) !important;
    color: #fff !important;
    background: #14213d !important;
}

.webhost-menu-toggle i {
    color: #a88cff;
}

.webhost-order-layout,
.webhost-order-main {
    width: 100%;
}

.product-selection-sidebar {
    width: 100%;
    margin: 0 0 20px;
}

.product-selection-sidebar.is-toggleable {
    display: none;
}

#supremeComparisonSidebar .card-sidebar,
#supremeComparisonSidebar .panel-sidebar,
#supremeComparisonSidebar .panel.card {
    overflow: hidden;
    margin-bottom: 14px !important;
    border: 1px solid var(--wh-order-border) !important;
    border-radius: 16px !important;
    background: var(--wh-order-surface) !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .13) !important;
}

#supremeComparisonSidebar .card-header,
#supremeComparisonSidebar .panel-heading {
    padding: 14px 16px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--wh-order-border) !important;
    background: rgba(255, 255, 255, .018) !important;
}

#supremeComparisonSidebar .panel-title,
#supremeComparisonSidebar .card-header h3 {
    margin: 0 !important;
    color: #f1f3fa !important;
    font-size: 15px !important;
    font-weight: 700 !important;
}

#supremeComparisonSidebar .panel-title > i:first-child {
    margin-right: 7px;
    color: #a98cff;
}

#supremeComparisonSidebar .card-minimise {
    color: #717e99 !important;
}

#supremeComparisonSidebar .list-group {
    border: 0 !important;
}

#supremeComparisonSidebar .list-group-item {
    display: flex;
    align-items: center;
    min-height: 46px;
    padding: 11px 16px !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(132, 145, 190, .12) !important;
    color: #b9c2d6 !important;
    background: transparent !important;
    font-size: 14px;
    transition: background .18s ease, color .18s ease, border-color .18s ease;
}

#supremeComparisonSidebar .list-group-item:last-child {
    border-bottom: 0 !important;
}

#supremeComparisonSidebar .list-group-item:hover,
#supremeComparisonSidebar .list-group-item:focus {
    color: #fff !important;
    background: rgba(131, 92, 246, .10) !important;
}

#supremeComparisonSidebar .list-group-item.active {
    color: #fff !important;
    background: linear-gradient(90deg, rgba(126, 84, 238, .30), rgba(126, 84, 238, .13)) !important;
    box-shadow: inset 3px 0 0 #8d6cff;
}

#supremeComparisonSidebar .list-group-item i {
    color: #8f9bb4;
}

#supremeComparisonSidebar .list-group-item.active i,
#supremeComparisonSidebar .list-group-item:hover i {
    color: #b9a6ff;
}

#supremeComparisonSidebar select.form-control {
    min-height: 45px;
    border: 1px solid var(--wh-order-border) !important;
    border-radius: 11px !important;
    color: #e6e9f2 !important;
    background: #0b1529 !important;
}

/* Product group heading */
div#order-supreme_comparison {
    width: 100%;
    margin: 0;
    padding: 0;
    color: var(--wh-order-text);
    line-height: 1.5;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

div#order-supreme_comparison .product-group-heading {
    margin: 0 0 18px;
    padding: 18px 20px;
    text-align: left;
    border: 1px solid var(--wh-order-border);
    border-radius: 16px;
    background: rgba(14, 24, 46, .76);
}

div#order-supreme_comparison .product-group-headline {
    margin: 0;
    color: #f7f8ff;
    font-size: 23px;
    font-weight: 730;
    line-height: 1.25;
}

div#order-supreme_comparison .product-group-tagline {
    margin-top: 5px;
    color: var(--wh-order-muted);
    font-size: 14px;
    line-height: 1.5;
}

.webhost-order-alert {
    margin: 14px 0 0 !important;
    border-radius: 12px !important;
}

/* Product cards */
.webhost-products-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.webhost-product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--wh-order-border);
    border-radius: 20px;
    background:
        radial-gradient(circle at 100% 0%, rgba(117, 75, 224, .10), transparent 34%),
        linear-gradient(180deg, #111c34 0%, #0d172c 100%);
    box-shadow: 0 16px 38px rgba(0, 0, 0, .18), inset 0 1px 0 rgba(255, 255, 255, .025);
}

.webhost-product-card.is-featured {
    border-color: rgba(145, 101, 255, .58);
    box-shadow: 0 18px 42px rgba(72, 40, 145, .18), inset 0 1px 0 rgba(255, 255, 255, .035);
}

.webhost-product-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border-bottom: 1px solid rgba(132, 145, 190, .14);
}

.webhost-product-icon {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    font-size: 17px;
}

.webhost-product-heading {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.webhost-product-name-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 49px;
}

.webhost-product-heading h2 {
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 2.56em;
    margin: 0;
    color: #fff;
    font-size: 19px;
    font-weight: 720;
    line-height: 1.28;
    overflow-wrap: anywhere;
}

.webhost-product-heading p {
    margin: 5px 0 0;
    color: var(--wh-order-muted);
    font-size: 13px;
    line-height: 1.45;
}

.webhost-featured-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex: 0 0 auto;
    padding: 5px 8px;
    border: 1px solid rgba(164, 124, 255, .30);
    border-radius: 999px;
    color: #d8ceff;
    background: rgba(133, 91, 246, .14);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.webhost-product-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 16px;
}

.webhost-product-features {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-bottom: 18px;
}

.webhost-feature {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-height: 42px;
    padding: 10px 11px;
    border: 1px solid rgba(132, 145, 190, .13);
    border-radius: 11px;
    color: #cdd4e4;
    background: rgba(6, 14, 29, .48);
    font-size: 13px;
    line-height: 1.45;
}

.webhost-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 21px;
    height: 21px;
    margin-top: 0;
    border-radius: 7px;
    color: #cfc3ff;
    background: rgba(126, 84, 238, .18);
    font-size: 9px;
}

.webhost-feature-text {
    min-width: 0;
    padding-top: 1px;
}

.webhost-feature-text strong {
    color: #f3f4fa;
    font-weight: 700;
}

.webhost-product-description {
    padding: 13px 14px;
    border: 1px solid rgba(132, 145, 190, .13);
    border-radius: 12px;
    color: #c4ccdc;
    background: rgba(6, 14, 29, .48);
    font-size: 13px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.webhost-product-description p:last-child {
    margin-bottom: 0;
}

/* Product descriptions can include blank <br> lines at the list edges.
   Remove the leading/trailing blank lines and Six's 10px bottom list margin;
   keep every feature and the spacing between features intact. */
.webhost-product-description > ul.list-unstyled:last-child {
    margin-bottom: 0;
}

.webhost-product-description > ul.list-unstyled:first-child > br:first-child,
.webhost-product-description > ul.list-unstyled:last-child > li:last-of-type + br:last-child {
    display: none;
}

/* On these list-description cards the description padding, features margin
   and footer padding stack up between the last feature and the price.
   Set the combined spacing here without affecting prose or feature tiles. */
.webhost-product-description:has(> ul.list-unstyled:last-child) {
    padding-bottom: 8px;
}

.webhost-product-features:has(.webhost-product-description > ul.list-unstyled:last-child) {
    margin-bottom: 6px;
}

.webhost-product-features:has(.webhost-product-description > ul.list-unstyled:last-child) + .webhost-product-footer {
    padding-top: 8px;
}

.webhost-feature-description {
    margin-top: 2px;
}

.webhost-product-footer {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid rgba(132, 145, 190, .14);
}

.webhost-product-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 14px;
}

.product-stock {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    gap: 5px;
    padding: 5px 8px;
    border: 1px solid currentColor;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    opacity: .92;
}

.product-stock i {
    font-size: 10px;
}

.product-stock.stock-high { color: var(--wh-order-success); }
.product-stock.stock-medium { color: var(--wh-order-warning); }
.product-stock.stock-low { color: var(--wh-order-danger); }

.webhost-price {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    text-align: center;
}

.webhost-price-label {
    margin-bottom: 2px;
    color: #8f9ab3;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.webhost-price-value {
    max-width: 100%;
    color: #fff;
    font-size: 22px;
    font-weight: 760;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.webhost-price-value-single {
    font-size: 17px;
}

.webhost-setup-fee {
    margin-top: 3px;
    color: #8f9ab3;
    font-size: 11px;
}

.webhost-order-now,
.webhost-stock-unavailable {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    min-height: 46px;
    padding: 11px 15px;
    border-radius: 12px;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 750;
}

.webhost-order-now,
.webhost-order-now:link,
.webhost-order-now:visited {
    color: #fff !important;
    background: linear-gradient(135deg, #735cf1 0%, #9e49dd 100%);
    box-shadow: 0 10px 22px rgba(106, 71, 222, .22);
    transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

.webhost-order-now:hover,
.webhost-order-now:focus {
    color: #fff !important;
    filter: brightness(1.07);
    transform: translateY(-1px);
    box-shadow: 0 13px 26px rgba(106, 71, 222, .28);
}

.webhost-order-now i {
    font-size: 12px;
}

.webhost-stock-unavailable {
    border: 1px solid rgba(145, 154, 178, .18);
    color: #9ca6ba;
    background: rgba(89, 98, 121, .12);
}

/* Features common to the group */
div#order-supreme_comparison .includes-features {
    width: 100%;
    margin: 20px 0 0;
    padding: 18px;
    border: 1px solid var(--wh-order-border);
    border-radius: 18px;
    background: rgba(15, 25, 47, .84);
}

.includes-features-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.includes-features-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 15px;
}

.includes-features-heading h3 {
    margin: 0;
    color: #f5f6fc;
    font-size: 17px;
    font-weight: 700;
}

div#order-supreme_comparison .list-features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.included-feature {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 10px 11px;
    border: 1px solid rgba(132, 145, 190, .12);
    border-radius: 10px;
    color: #c8d0df;
    background: rgba(6, 14, 29, .40);
    font-size: 13px;
}

.included-feature i {
    margin-top: 3px;
    color: #a98cff;
    font-size: 11px;
}

/* WHMCS recommendation modal inherits the page's dark treatment without altering functionality. */
#recommendationsModal .modal-content,
.modal-recommendations .modal-content {
    border: 1px solid var(--wh-order-border) !important;
    color: var(--wh-order-text);
    background: #101a31 !important;
}

/* Responsive */
@media (min-width: 900px) {
    .product-selection-sidebar:not(.is-toggleable),
    .product-selection-sidebar.is-toggleable[style*="display: block"] {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }
}

@media (max-width: 899px) {
    .webhost-order-page {
        padding-top: 6px;
    }

    .webhost-products-grid {
        grid-template-columns: 1fr;
    }

    /* Mobile/tablet cards should size to their own content.
       Do not stretch the product body just to pin the price/action footer
       to the bottom, which creates a large empty gap on feature-heavy plans. */
    .webhost-product-card {
        height: auto !important;
        min-height: 0 !important;
    }

    .webhost-product-content {
        flex: 0 0 auto;
        min-height: 0;
    }

    .webhost-product-footer {
        margin-top: 0;
        padding-top: 14px;
    }

    .webhost-product-features {
        margin-bottom: 14px;
    }

    div#order-supreme_comparison .list-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .webhost-order-page {
        padding-left: 0;
        padding-right: 0;
    }

    .webhost-order-hero {
        gap: 14px;
        margin-bottom: 18px;
        padding: 20px 18px;
        border-radius: 20px;
    }

    .webhost-order-hero-icon {
        width: 50px;
        height: 50px;
        border-radius: 15px;
    }

    .webhost-order-hero h1 {
        font-size: 25px;
    }

    .webhost-order-hero p {
        font-size: 13.5px;
    }

    .webhost-menu-toggle {
        width: 100%;
        margin-bottom: 14px;
    }

    div#order-supreme_comparison .product-group-heading {
        padding: 16px;
        border-radius: 15px;
    }

    div#order-supreme_comparison .product-group-headline {
        font-size: 20px;
    }

    .webhost-products-grid {
        gap: 14px;
    }

    .webhost-product-card {
        border-radius: 18px;
    }

    .webhost-product-header {
        padding: 16px;
    }

    .webhost-product-heading h2 {
        font-size: 18px;
    }

    .webhost-featured-badge {
        padding: 4px 7px;
        font-size: 9px;
    }

    .webhost-product-content {
        padding: 14px;
    }

    .webhost-product-meta {
        align-items: center;
        flex-direction: column;
        gap: 10px;
    }

    .webhost-price {
        align-items: center;
        width: 100%;
        text-align: center;
    }

    .webhost-price-value {
        font-size: 21px;
    }

    #supremeComparisonSidebar .card-sidebar,
    #supremeComparisonSidebar .panel-sidebar,
    #supremeComparisonSidebar .panel.card {
        border-radius: 14px !important;
    }
}

@media (max-width: 380px) {
    .webhost-product-name-row {
        flex-direction: column;
    }

    .webhost-featured-badge {
        align-self: flex-start;
    }
}

/* Silo and Stremio only: centre product feature text without changing any other product groups. */
.webhost-order-page.webhost-center-feature-text .webhost-product-description,
.webhost-order-page.webhost-center-feature-text .webhost-product-description ul,
.webhost-order-page.webhost-center-feature-text .webhost-product-description li,
.webhost-order-page.webhost-center-feature-text .webhost-feature-text {
    text-align: center;
}

.webhost-order-page.webhost-center-feature-text .webhost-product-description ul {
    padding-left: 0;
}

.webhost-order-page.webhost-center-feature-text .webhost-product-description li,
.webhost-order-page.webhost-center-feature-text .webhost-feature {
    justify-content: center;
}

