/* Compatibility for legacy WHMCS/order-form JavaScript that toggles .open. */
.hh-whmcs .dropdown-menu {
    padding: 9px;
    border: 1px solid var(--hh-line);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--hh-shadow);
}

.hh-whmcs .dropdown-menu .dropdown-item,
.hh-whmcs .dropdown-menu > li > a {
    display: block;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
}

.hh-whmcs .dropdown-menu .dropdown-item:hover,
.hh-whmcs .dropdown-menu > li > a:hover {
    background: #fff5ef;
    color: var(--hh-orange-dark);
}

.hh-whmcs .btn-group.open > .dropdown-menu,
.hh-whmcs .dropdown.open > .dropdown-menu,
.hh-whmcs .choosecat.open > .dropdown-menu {
    display: block !important;
    z-index: 1050;
}

.hh-whmcs .choosecat {
    position: relative;
}

.hh-whmcs .choosecat > .dropdown-menu {
    right: auto;
    left: 0;
    min-width: 250px;
}

/* Legacy HillHost product grids inside modern WHMCS pages. */
.hh-whmcs .section-title.margin-a50 {
    margin: 0 auto 42px;
    text-align: center;
}

.hh-whmcs .section-title.margin-a50 h2 {
    margin: 0;
    color: var(--hh-ink);
    font-size: clamp(30px, 4vw, 46px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.04em;
    text-transform: none;
}

.hh-whmcs .section-title.margin-a50 h2 > span {
    display: block;
    margin-bottom: 10px;
    color: var(--hh-orange-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .14em;
    line-height: 1.4;
    text-transform: uppercase;
}

.hh-whmcs .pricingtables.shared {
    padding: 0;
}

.hh-whmcs .pricingtables.shared > .row:first-child {
    margin-bottom: 34px;
}

.hh-whmcs .pricingtables.shared > .row:first-child .container {
    width: 100%;
    max-width: none;
}

.hh-whmcs .pricingtables.shared h2 {
    margin: 0 0 18px;
    color: var(--hh-ink);
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -.025em;
}

.hh-whmcs .pricingtables.shared .price-per-shared {
    display: inline-flex;
    padding: 5px;
    gap: 5px;
    border: 1px solid var(--hh-line);
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(20,33,61,.06);
}

.hh-whmcs .pricingtables.shared .price-per-shared .btn {
    min-width: 92px;
    border: 0;
    border-radius: 9px;
}

.hh-whmcs .pricingtables.shared .price-per-shared .btn-shared-checked {
    background: var(--hh-orange);
    color: #fff;
}

.hh-whmcs .pricingtables.shared .tab2,
.hh-whmcs .pricingtables.shared .tab3 {
    display: none;
}

.hh-whmcs .pricingtables.shared > .row:nth-child(2) {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    margin-right: -12px;
    margin-left: -12px;
}

.hh-whmcs .pricingtables.shared > .row:nth-child(2) > [class*="col-"] {
    display: flex;
    margin-top: 0 !important;
    padding-right: 12px;
    padding-left: 12px;
}

.hh-whmcs .pricingtables.shared .panel.panel-info {
    position: relative;
    display: flex;
    width: 100%;
    min-height: 100%;
    flex-direction: column;
    overflow: visible;
    border: 1px solid var(--hh-line);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 16px 38px rgba(20,33,61,.08);
}

.hh-whmcs .pricingtables.shared .most-popular .panel.panel-info {
    border: 2px solid var(--hh-orange);
    box-shadow: 0 20px 48px rgba(255,107,26,.16);
}

.hh-whmcs .pricingtables.shared .panel-heading {
    padding: 22px 18px;
    border-radius: 18px 18px 0 0;
    background: var(--hh-navy);
}

.hh-whmcs .pricingtables.shared .panel-heading h3 {
    margin: 0;
    color: #fff;
    font-size: 24px;
    font-weight: 800;
}

.hh-whmcs .pricingtables.shared .panel-body {
    min-height: 125px;
    padding: 24px 20px 16px;
}

.hh-whmcs .pricingtables.shared .price-cercle h4 {
    margin: 0;
    color: var(--hh-ink);
    font-size: 32px;
    font-weight: 800;
    line-height: 1.25;
}

.hh-whmcs .pricingtables.shared .price-cercle .common-price {
    margin: 0 0 3px;
    color: var(--hh-muted);
    font-size: 14px;
    font-weight: 700;
    text-decoration: line-through;
}

.hh-whmcs .pricingtables.shared .price-cercle .per {
    display: block;
    margin-top: 6px;
    color: var(--hh-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
}

.hh-whmcs .pricingtables.shared .panel > ul {
    flex: 1 1 auto;
    margin: 0;
    padding: 8px 28px 24px;
    list-style: none;
}

.hh-whmcs .pricingtables.shared .panel > ul > li {
    min-height: 29px;
    padding: 4px 0;
    border-bottom: 1px solid #edf0f5;
    color: var(--hh-ink);
    font-size: 13px;
    line-height: 20px;
}

.hh-whmcs .pricingtables.shared .panel > ul > li:empty {
    display: none;
}

.hh-whmcs .pricingtables.shared .panel > ul > li:last-child {
    border-bottom: 0;
}

.hh-whmcs .pricingtables.shared .panel-footer {
    margin-top: auto;
    padding: 20px;
    border-radius: 0 0 18px 18px;
    background: var(--hh-soft);
    text-align: center;
}

.hh-whmcs .pricingtables.shared .panel-footer .btn-group,
.hh-whmcs .pricingtables.shared .panel-footer .dropdown-toggle {
    width: 100%;
}

.hh-whmcs .pricingtables.shared .panel-footer .btn-new {
    display: flex;
    width: 100%;
    margin: 10px 0 12px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--hh-orange);
    background: var(--hh-orange);
    color: #fff;
}

.hh-whmcs .pricingtables.shared .panel-footer .btn-new:hover {
    border-color: var(--hh-orange-dark);
    background: var(--hh-orange-dark);
}

.hh-whmcs .pricingtables.shared .panel-footer > a:not(.btn) {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
}

.hh-whmcs .pricingtables.shared .ribbon {
    position: absolute;
    z-index: 2;
    top: -14px;
    right: 18px;
    width: auto;
    height: auto;
    overflow: visible;
}

.hh-whmcs .pricingtables.shared .ribbon-content {
    position: static;
    width: auto;
    padding: 7px 13px;
    border-radius: 999px;
    background: var(--hh-orange) !important;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .06em;
    line-height: 1;
    transform: none;
}

.hh-whmcs .pricingtables.shared .ribbon-content::before,
.hh-whmcs .pricingtables.shared .ribbon-content::after {
    display: none;
}

@media (max-width: 767px) {
    .hh-whmcs .section-title.margin-a50 h2 {
        font-size: 32px;
    }

    .hh-whmcs .pricingtables.shared > .row:nth-child(2) > [class*="col-"] {
        width: 100%;
        margin-bottom: 24px !important;
    }

    .hh-whmcs .pricingtables.shared .price-per-shared {
        display: flex;
        width: 100%;
    }

    .hh-whmcs .pricingtables.shared .price-per-shared .btn {
        min-width: 0;
        flex: 1 1 0;
    }
}

.hh-whmcs .pricingtables.vps .hh-vps-cycle-switch {
    display: flex;
    max-width: 650px;
    margin: 0 auto 38px;
    padding: 6px;
    align-items: stretch;
    gap: 6px;
    border: 1px solid var(--hh-line);
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(20,33,61,.07);
}

.hh-whmcs .pricingtables.vps .hh-vps-cycle-switch > span {
    display: flex;
    padding: 0 14px;
    align-items: center;
    color: var(--hh-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.hh-whmcs .pricingtables.vps .hh-vps-cycle-switch button {
    min-height: 52px;
    flex: 1 1 0;
    padding: 8px 14px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--hh-ink);
    font: 800 13px Manrope, Arial, sans-serif;
    cursor: pointer;
}

.hh-whmcs .pricingtables.vps .hh-vps-cycle-switch button small {
    display: block;
    color: var(--hh-muted);
    font-size: 9px;
    font-weight: 700;
}

.hh-whmcs .pricingtables.vps .hh-vps-cycle-switch button.active {
    background: var(--hh-orange);
    color: #fff;
}

.hh-whmcs .pricingtables.vps .hh-vps-cycle-switch button.active small {
    color: #fff;
}

.hh-whmcs .pricingtables.vps .hh-vps-legacy-cycle {
    display: none;
}

.hh-whmcs .pricingtables.vps .panel > ul > li:empty {
    display: none;
}

.hh-whmcs .pricingtables.vps > div:has(> ul > li:only-child:empty) {
    display: none;
}

.hh-whmcs .pricingtables.vps > div:not(.row):not(.hh-vps-cycle-switch) {
    display: none !important;
}

.hh-whmcs .pricingtables.shared .hh-dedicated-cycle-switch {
    display: flex;
    max-width: 540px;
    margin: 0 auto 38px;
    padding: 6px;
    align-items: stretch;
    gap: 6px;
    border: 1px solid var(--hh-line);
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(20,33,61,.07);
}

.hh-whmcs .pricingtables.shared .hh-dedicated-cycle-switch > span {
    display: flex;
    padding: 0 14px;
    align-items: center;
    color: var(--hh-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.hh-whmcs .pricingtables.shared .hh-dedicated-cycle-switch button {
    min-height: 52px;
    flex: 1 1 0;
    padding: 8px 14px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--hh-ink);
    font: 800 13px Manrope, Arial, sans-serif;
    cursor: pointer;
}

.hh-whmcs .pricingtables.shared .hh-dedicated-cycle-switch button small {
    display: block;
    color: var(--hh-muted);
    font-size: 9px;
}

.hh-whmcs .pricingtables.shared .hh-dedicated-cycle-switch button.active {
    background: var(--hh-orange);
    color: #fff;
}

.hh-whmcs .pricingtables.shared .hh-dedicated-cycle-switch button.active small {
    color: #fff;
}

.hh-whmcs .pricingtables.shared .hh-dedicated-legacy-cycle {
    display: none;
}

@media (max-width: 767px) {
    .hh-whmcs .pricingtables.vps .hh-vps-cycle-switch {
        flex-wrap: wrap;
    }

    .hh-whmcs .pricingtables.vps .hh-vps-cycle-switch > span {
        width: 100%;
        justify-content: center;
        padding: 7px 10px 2px;
    }

    .hh-whmcs .pricingtables.vps .hh-vps-cycle-switch button {
        min-width: 90px;
    }
}

/* VPS product grids use a separate legacy component from shared hosting. */
.hh-whmcs .pricingtables.vps {
    padding: 0;
}

.hh-whmcs .pricingtables.vps > .row {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    margin-right: -12px;
    margin-left: -12px;
}

.hh-whmcs .pricingtables.vps > .row > [class*="col-"] {
    display: flex;
    margin: 0 0 28px;
    padding-right: 12px;
    padding-left: 12px;
}

.hh-whmcs .pricingtables.vps > .row > .container {
    min-height: 0;
}

.hh-whmcs .pricingtables.vps > .row > .container > span {
    display: none;
}

.hh-whmcs .pricingtables.vps .panel.panel-info {
    position: relative;
    display: flex;
    width: 100%;
    min-height: 100%;
    flex-direction: column;
    overflow: visible;
    border: 1px solid var(--hh-line);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 16px 38px rgba(20,33,61,.08);
}

.hh-whmcs .pricingtables.vps .panel-heading {
    padding: 22px 18px;
    border-radius: 18px 18px 0 0;
    background: var(--hh-navy);
}

.hh-whmcs .pricingtables.vps .panel-heading h3 {
    margin: 0;
    color: #fff;
    font-size: 24px;
    font-weight: 800;
}

.hh-whmcs .pricingtables.vps .panel-body {
    min-height: 132px;
    padding: 28px 20px 18px;
}

.hh-whmcs .pricingtables.vps .price-cercle h4 {
    margin: 0;
    color: var(--hh-ink);
    font-size: 32px;
    font-weight: 800;
    line-height: 1.25;
}

.hh-whmcs .pricingtables.vps .price-cercle .common-price {
    margin: 0 0 3px;
    color: var(--hh-muted);
    font-size: 14px;
    font-weight: 700;
    text-decoration: line-through;
}

.hh-whmcs .pricingtables.vps .price-cercle .per {
    display: block;
    margin-top: 6px;
    color: var(--hh-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
}

.hh-whmcs .pricingtables.vps .panel > ul {
    flex: 1 1 auto;
    margin: 0;
    padding: 8px 28px 24px;
    list-style: none;
}

.hh-whmcs .pricingtables.vps .panel > ul > li {
    min-height: 34px;
    padding: 7px 0;
    border-bottom: 1px solid #edf0f5;
    color: var(--hh-ink);
    font-size: 13px;
    line-height: 20px;
}

.hh-whmcs .pricingtables.vps .panel > ul > li:last-child {
    border-bottom: 0;
}

.hh-whmcs .pricingtables.vps .panel-footer {
    margin-top: auto;
    padding: 20px;
    border-radius: 0 0 18px 18px;
    background: var(--hh-soft);
    text-align: center;
}

.hh-whmcs .pricingtables.vps .panel-footer .btn-group,
.hh-whmcs .pricingtables.vps .panel-footer .dropdown-toggle {
    width: 100%;
}

.hh-whmcs .pricingtables.vps .panel-footer .dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    white-space: normal;
    text-align: center !important;
}

.hh-whmcs .pricingtables.vps .panel-footer .btn-new {
    display: flex;
    width: 100%;
    margin-top: 12px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--hh-orange);
    background: var(--hh-orange);
    color: #fff;
}

.hh-whmcs .pricingtables.vps .panel-footer .btn-new:hover {
    border-color: var(--hh-orange-dark);
    background: var(--hh-orange-dark);
    color: #fff;
}

.hh-whmcs .pricingtables.vps .ribbon {
    position: absolute;
    z-index: 2;
    top: -14px;
    right: 18px;
    width: auto;
    height: auto;
    overflow: visible;
}

.hh-whmcs .pricingtables.vps .ribbon-content {
    position: static;
    width: auto;
    padding: 7px 13px;
    border-radius: 999px;
    background: var(--hh-orange) !important;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .06em;
    line-height: 1;
    transform: none;
}

.hh-whmcs .pricingtables.vps .ribbon-content::before,
.hh-whmcs .pricingtables.vps .ribbon-content::after {
    display: none;
}

@media (max-width: 767px) {
    .hh-whmcs .pricingtables.vps > .row > [class*="col-"] {
        width: 100%;
    }
}
