/* ============================================================
   SEVEN HOST - HOSTING PLANS
   Scoped to this component only
============================================================ */

.sh-hosting-plans {
    --sh-blue: #0127da;
    --sh-blue-light: rgba(1, 39, 218, .06);
    --sh-blue-border: rgba(1, 39, 218, .15);
    --sh-text: #18213d;
    --sh-text-secondary: #505a70;
    --sh-muted: #7c8598;
    --sh-border: #e7eaf1;
    --sh-soft: #f8f9fa;

    direction: rtl;
    padding-top: 70px;
    scroll-margin-top: 30px;
}

.sh-hosting-plans * {
    box-sizing: border-box;
}

/* ============================================================
   SECTION HEADER
============================================================ */

.sh-hosting-plans .sh-hosting-section-header {
    display: flex;
    align-items: flex-end;
    gap: 22px;
    margin-bottom: 16px;
}

.sh-hosting-plans .sh-hosting-section-heading {
    flex-shrink: 0;
}

.sh-hosting-plans .sh-hosting-section-eyebrow {
    display: block;
    margin-bottom: 3px;
    color: var(--sh-blue);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.8;
}

.sh-hosting-plans .sh-hosting-section-title {
    margin: 0;
    color: var(--sh-text);
    font-size: 29px;
    font-weight: 900;
    line-height: 1.7;
}

.sh-hosting-plans .sh-hosting-section-line {
    position: relative;
    flex: 1;
    height: 1px;
    margin-bottom: 12px;
    background: #e5e8ef;
}

.sh-hosting-plans .sh-hosting-section-line::before {
    content: "";
    position: absolute;
    top: -1px;
    right: 0;
    width: 65px;
    height: 3px;
    background: var(--sh-blue);
    border-radius: 20px;
}

.sh-hosting-plans .sh-hosting-section-subtitle {
    max-width: 300px;
    flex-shrink: 0;
    margin-bottom: 6px;
    color: var(--sh-muted);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.9;
    text-align: left;
}

.sh-hosting-plans .sh-hosting-plan-description {
    width: 100%;
    max-width: none;
    margin-bottom: 25px;
    color: var(--sh-muted);
    font-size: 15px;
    line-height: 2.15;
}

.sh-hosting-plans .sh-hosting-plan-description p {
    margin-top: 0;
    margin-bottom: 8px;
}

.sh-hosting-plans .sh-hosting-plan-description > *:last-child {
    margin-bottom: 0;
}

/* ============================================================
   PLAN FILTER BAR
============================================================ */

.sh-hosting-plans .sh-hosting-plan-stage {
    position: relative;
}

.sh-hosting-plans .sh-hosting-cycle-box {
    position: relative;
    z-index: 45;

    display: flex;
    align-items: center;
    gap: 17px;

    margin-bottom: 24px;
    padding: 12px 14px;

    background: rgba(248, 249, 250, .96);

    border: 1px solid var(--sh-border);
    border-radius: 14px;

    box-shadow:
        0 8px 24px rgba(24, 33, 61, .055);

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    transition:
        box-shadow .18s ease,
        transform .18s ease,
        opacity .18s ease;
}

/*
 * Fixed mode is controlled by JavaScript instead of CSS sticky.
 * This avoids sticky being disabled by any existing tab/content
 * wrapper that uses overflow on the main website.
 */
.sh-hosting-plans .sh-hosting-cycle-box.is-fixed {
    position: fixed;
    top: var(--sh-filter-fixed-top, 12px);
    left: var(--sh-filter-fixed-left, 0px);
    width: var(--sh-filter-fixed-width, auto);
    z-index: 9990;
    margin: 0;

    background: rgba(255, 255, 255, .97);

    border-color: rgba(1, 39, 218, .16);

    box-shadow:
        0 14px 38px rgba(24, 33, 61, .13);

    animation: shHostingFilterIn .18s ease both;
}

/*
 * While the hosting plan filter is fixed, keep the desktop sticky
 * navigation hidden. The real Seven Host sticky header uses:
 *
 *   .sh-desktop-header.sticky.is-fixed
 *
 * The body class is added only while the plan filter itself is fixed,
 * so the main navigation automatically becomes available again as soon
 * as the customer leaves the plans area.
 */
body.sh-hosting-filter-is-fixed .sh-desktop-header.sticky.is-fixed,
body.sh-hosting-compare-filter-is-fixed .sh-desktop-header.sticky.is-fixed {
    display: none !important;
}

.sh-hosting-plans .sh-hosting-filter-spacer {
    display: none;
    width: 100%;
}

.sh-hosting-plans .sh-hosting-filter-spacer.is-active {
    display: block;
}

@keyframes shHostingFilterIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sh-hosting-plans .sh-hosting-cycle-title {
    flex-shrink: 0;
    padding-left: 2px;
}

.sh-hosting-plans .sh-hosting-cycle-title strong {
    display: block;

    color: var(--sh-text);

    font-size: 14px;
    font-weight: 900;
    line-height: 1.8;

    white-space: nowrap;
}

.sh-hosting-plans .sh-hosting-filter-controls {
    display: flex;
    align-items: center;
    gap: 14px;

    min-width: 0;
    flex: 1;
}

.sh-hosting-plans .sh-hosting-filter-group {
    display: flex;
    align-items: center;
    gap: 8px;

    min-width: 0;
}

.sh-hosting-plans .sh-hosting-filter-label {
    flex-shrink: 0;

    color: var(--sh-muted);

    font-size: 11.5px;
    font-weight: 800;
}

.sh-hosting-plans .sh-hosting-filter-separator {
    display: block;

    width: 1px;
    height: 31px;

    flex-shrink: 0;

    background: #dfe3ea;
}

.sh-hosting-plans .sh-hosting-location-buttons,
.sh-hosting-plans .sh-hosting-cycle-buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
}

.sh-hosting-plans .sh-hosting-location-button,
.sh-hosting-plans .sh-hosting-cycle-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    min-height: 40px;
    padding: 0 12px;

    color: #626c80;
    background: #fff;

    border: 1px solid #e0e4eb;
    border-radius: 9px;

    font-family: inherit;
    font-size: 12.5px;
    font-weight: 800;

    cursor: pointer;

    transition:
        color .18s ease,
        background .18s ease,
        border-color .18s ease,
        box-shadow .18s ease,
        transform .18s ease;
}

.sh-hosting-plans .sh-hosting-location-button:hover,
.sh-hosting-plans .sh-hosting-cycle-button:hover {
    color: var(--sh-blue);
    border-color: var(--sh-blue-border);
    transform: translateY(-1px);
}

.sh-hosting-plans .sh-hosting-location-button.is-active,
.sh-hosting-plans .sh-hosting-cycle-button.is-active {
    color: #fff;
    background: var(--sh-blue);
    border-color: var(--sh-blue);
    box-shadow: 0 6px 17px rgba(1, 39, 218, .15);
}

.sh-hosting-plans .sh-hosting-location-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 22px;
    height: 22px;

    flex-shrink: 0;
    overflow: hidden;

    border-radius: 5px;
}

.sh-hosting-plans .sh-hosting-location-icon img,
.sh-hosting-plans .sh-hosting-location-icon svg {
    display: block;

    max-width: 22px;
    max-height: 22px;
}

.sh-hosting-plans .sh-hosting-location-name {
    white-space: nowrap;
}

.sh-hosting-plans .sh-hosting-cycle-discount {
    padding: 2px 5px;

    color: var(--sh-blue);
    background: rgba(1, 39, 218, .07);

    border-radius: 5px;

    font-size: 10px;
    font-weight: 900;
}

.sh-hosting-plans
.sh-hosting-cycle-button.is-active
.sh-hosting-cycle-discount {
    color: #fff;
    background: rgba(255, 255, 255, .15);
}

.sh-hosting-plans .sh-hosting-view-buttons {
    display: inline-flex;
    align-items: center;
    gap: 4px;

    padding: 3px;

    background: #fff;

    border: 1px solid #e0e4eb;
    border-radius: 9px;
}

.sh-hosting-plans .sh-hosting-view-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    min-height: 34px;
    padding: 0 10px;

    color: #687287;
    background: transparent;

    border: 0;
    border-radius: 7px;

    font-family: inherit;
    font-size: 11.5px;
    font-weight: 800;

    white-space: nowrap;
    cursor: pointer;

    transition:
        color .18s ease,
        background .18s ease,
        box-shadow .18s ease;
}

.sh-hosting-plans .sh-hosting-view-button:hover {
    color: var(--sh-blue);
    background: var(--sh-blue-light);
}

.sh-hosting-plans .sh-hosting-view-button.is-active {
    color: #fff;
    background: var(--sh-blue);

    box-shadow:
        0 4px 12px rgba(1, 39, 218, .14);
}

.sh-hosting-plans .sh-hosting-view-button i {
    font-size: 11px;
}


/* ============================================================
   PLAN GRID / CYCLE PRELOADER
============================================================ */

.sh-hosting-plans .sh-hosting-plan-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}

.sh-hosting-plans .sh-hosting-cycle-loader {
    position: absolute;
    inset: 0;
    z-index: 30;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 11px;

    min-height: 180px;

    color: var(--sh-blue);
    background: rgba(255, 255, 255, .86);

    border-radius: 18px;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);

    transition:
        opacity .22s ease,
        visibility .22s ease;
}

.sh-hosting-plans.is-cycle-loading .sh-hosting-cycle-loader {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.sh-hosting-plans .sh-hosting-cycle-loader-spinner {
    width: 36px;
    height: 36px;

    border: 3px solid rgba(1, 39, 218, .14);
    border-top-color: var(--sh-blue);
    border-radius: 50%;

    animation: shHostingCycleLoaderSpin .72s linear infinite;
}

.sh-hosting-plans .sh-hosting-cycle-loader-text {
    color: var(--sh-text-secondary);
    font-size: 12.5px;
    font-weight: 800;
    line-height: 1.8;
}

.sh-hosting-plans.is-cycle-loading .sh-hosting-plan-card,
.sh-hosting-plans.is-cycle-loading .sh-hosting-plan-cta-card {
    pointer-events: none;
}

@keyframes shHostingCycleLoaderSpin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================================
   PLAN CARD
============================================================ */

.sh-hosting-plans .sh-hosting-plan-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 100%;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--sh-border);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(24, 33, 61, .04);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.sh-hosting-plans .sh-hosting-plan-card:hover {
    transform: translateY(-3px);
    border-color: rgba(1, 39, 218, .19);
    box-shadow: 0 16px 38px rgba(24, 33, 61, .075);
}

.sh-hosting-plans .sh-hosting-plan-card.is-vip {
    color: #fff;
    background: var(--sh-blue);
    border-color: var(--sh-blue);
    box-shadow: 0 16px 38px rgba(1, 39, 218, .18);
}

.sh-hosting-plans .sh-hosting-vip-label {
    position: absolute;
    top: 0;
    left: 21px;
    z-index: 2;
    padding: 5px 10px;
    color: #fff;
    background: var(--sh-blue);
    border-radius: 0 0 8px 8px;
    font-size: 10.5px;
    font-weight: 900;
}

.sh-hosting-plans .sh-hosting-plan-card.is-vip .sh-hosting-vip-label {
    color: #fff;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .18);
    border-top: 0;
}

.sh-hosting-plans .sh-hosting-plan-card.is-vip .sh-hosting-plan-header,
.sh-hosting-plans .sh-hosting-plan-card.is-vip .sh-hosting-plan-footer {
    border-color: rgba(255, 255, 255, .15);
}

.sh-hosting-plans .sh-hosting-plan-card.is-vip .sh-hosting-plan-footer {
    background: rgba(255, 255, 255, .035);
}

.sh-hosting-plans .sh-hosting-plan-card.is-vip .sh-hosting-plan-feature {
    border-color: rgba(255, 255, 255, .13);
}

.sh-hosting-plans .sh-hosting-plan-card.is-vip .sh-hosting-plan-name,
.sh-hosting-plans .sh-hosting-plan-card.is-vip .sh-hosting-plan-feature-value,
.sh-hosting-plans .sh-hosting-plan-card.is-vip .sh-hosting-plan-price strong {
    color: #fff;
}

.sh-hosting-plans .sh-hosting-plan-card.is-vip .sh-hosting-plan-subtitle,
.sh-hosting-plans .sh-hosting-plan-card.is-vip .sh-hosting-plan-feature-label,
.sh-hosting-plans .sh-hosting-plan-card.is-vip .sh-hosting-plan-cycle-name,
.sh-hosting-plans .sh-hosting-plan-card.is-vip .sh-hosting-plan-price span,
.sh-hosting-plans .sh-hosting-plan-card.is-vip .sh-hosting-plan-price-unavailable {
    color: rgba(255, 255, 255, .74);
}

.sh-hosting-plans .sh-hosting-plan-card.is-vip .sh-hosting-order-button {
    color: var(--sh-blue) !important;
    background: #fff;
    border-color: #fff;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .12);
}

.sh-hosting-plans .sh-hosting-plan-card.is-vip .sh-hosting-order-button:hover {
    color: var(--sh-blue) !important;
    background: #fff;
    filter: none;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .16);
}

.sh-hosting-plans .sh-hosting-plan-card.is-vip .sh-hosting-order-button.is-disabled {
    color: rgba(255, 255, 255, .72) !important;
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .18);
    box-shadow: none;
}

.sh-hosting-plans .sh-hosting-plan-header {
    padding: 25px 23px 19px;
    border-bottom: 1px solid #edf0f4;
    text-align: center;
}

.sh-hosting-plans .sh-hosting-plan-name {
    margin: 0;
    color: var(--sh-text);
    font-size: 19px;
    font-weight: 900;
    line-height: 1.7;
    text-align: center;
}

.sh-hosting-plans .sh-hosting-plan-subtitle {
    min-height: 26px;
    margin-top: 3px;
    color: var(--sh-muted);
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.8;
    text-align: center;
}

/* ============================================================
   FEATURES
============================================================ */

.sh-hosting-plans .sh-hosting-plan-features {
    flex: 1;
    padding: 7px 23px 10px;
}

.sh-hosting-plans .sh-hosting-plan-feature {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    min-height: 49px;
    padding: 9px 0;
    border-bottom: 1px solid #f0f2f5;
}

.sh-hosting-plans .sh-hosting-plan-feature:last-child {
    border-bottom: 0;
}

.sh-hosting-plans .sh-hosting-plan-feature-label {
    color: var(--sh-muted);
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.8;
}

.sh-hosting-plans .sh-hosting-plan-feature-value {
    min-width: 0;
    color: var(--sh-text);
    font-size: 13.5px;
    font-weight: 900;
    line-height: 1.8;
    text-align: left;
}

/* ============================================================
   PRICE / ORDER AREA
============================================================ */

.sh-hosting-plans .sh-hosting-plan-footer {
    padding: 18px 23px 22px;
    background: linear-gradient(180deg, rgba(248, 249, 250, .35), #fff);
    border-top: 1px solid #edf0f4;
}

.sh-hosting-plans .sh-hosting-plan-price-area {
    min-height: 94px;
    margin-bottom: 13px;
    text-align: center;
}

.sh-hosting-plans .sh-hosting-plan-price-item {
    display: none;
    width: 100%;
}

.sh-hosting-plans .sh-hosting-plan-price-item.is-active {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    animation: shHostingPriceReveal .34s cubic-bezier(.22, .61, .36, 1) both;
}

.sh-hosting-plans .sh-hosting-plan-cycle-name {
    display: block;
    width: 100%;
    margin-bottom: 3px;
    color: var(--sh-muted);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.8;
    text-align: center;
}

.sh-hosting-plans .sh-hosting-plan-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
    text-align: center;
}

.sh-hosting-plans .sh-hosting-plan-price strong {
    color: var(--sh-text);
    font-size: 29px;
    font-weight: 900;
    line-height: 1.35;
}

.sh-hosting-plans .sh-hosting-plan-price span {
    color: var(--sh-muted);
    font-size: 12px;
    font-weight: 800;
}

.sh-hosting-plans .sh-hosting-plan-saving {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 6px;
    padding: 5px 9px;
    color: #237a42;
    background: #eef9f2;
    border: 1px solid #d9f0e1;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.7;
}

.sh-hosting-plans .sh-hosting-plan-annual-perk {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 7px;
    padding: 6px 10px;
    color: var(--sh-blue);
    background: var(--sh-blue-light);
    border: 1px solid var(--sh-blue-border);
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 900;
    line-height: 1.7;
}

.sh-hosting-plans .sh-hosting-plan-annual-perk i {
    font-size: 13px;
}

.sh-hosting-plans .sh-hosting-plan-perk-plus {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin: 6px auto -1px;
    color: var(--sh-blue);
    background: #fff;
    border: 1px solid var(--sh-blue-border);
    border-radius: 50%;
    font-size: 17px;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 4px 12px rgba(1, 39, 218, .08);
}

.sh-hosting-plans .sh-hosting-plan-card.is-vip .sh-hosting-plan-perk-plus {
    color: #fff;
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .20);
    box-shadow: none;
}

.sh-hosting-plans .sh-hosting-plan-card.is-vip .sh-hosting-plan-saving,
.sh-hosting-plans .sh-hosting-plan-card.is-vip .sh-hosting-plan-annual-perk {
    color: #fff;
    background: rgba(255, 255, 255, .13);
    border-color: rgba(255, 255, 255, .18);
}

.sh-hosting-plans .sh-hosting-plan-price-unavailable {
    width: 100%;
    color: #9aa1af;
    font-size: 13px;
    font-weight: 800;
    line-height: 2;
    text-align: center;
}

.sh-hosting-plans.is-cycle-changing .sh-hosting-plan-card {
    animation: shHostingCycleRefresh .38s cubic-bezier(.22, .61, .36, 1) both;
}

@keyframes shHostingPriceReveal {
    0% {
        opacity: 0;
        transform: translateY(8px) scale(.985);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes shHostingCycleRefresh {
    0% {
        opacity: .62;
        transform: translateY(3px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.sh-hosting-plans .sh-hosting-order-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 45px;
    color: #fff !important;
    background: var(--sh-blue);
    border: 1px solid var(--sh-blue);
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 900;
    text-decoration: none !important;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.sh-hosting-plans .sh-hosting-order-button:hover {
    color: #fff !important;
    transform: translateY(-1px);
    filter: brightness(.94);
    box-shadow: 0 8px 20px rgba(1, 39, 218, .17);
}

.sh-hosting-plans .sh-hosting-order-button.is-disabled {
    color: #8b93a3 !important;
    background: #eef0f4;
    border-color: #e4e7ec;
    cursor: default;
    box-shadow: none;
}

/* ============================================================
   CTA CARD / CTA AFTER GRID
============================================================ */

.sh-hosting-plans .sh-hosting-plan-cta-card {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    min-height: 100%;
    padding: 30px;
    color: var(--sh-text);
    background:
        radial-gradient(circle at 100% 0%, rgba(1, 39, 218, .07), transparent 45%),
        var(--sh-soft);
    border: 1px dashed rgba(1, 39, 218, .26);
    border-radius: 18px;
    text-align: center;
}

.sh-hosting-plans .sh-hosting-plan-cta-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 49px;
    height: 49px;
    margin-bottom: 15px;
    color: var(--sh-blue);
    background: #fff;
    border: 1px solid var(--sh-blue-border);
    border-radius: 12px;
}

.sh-hosting-plans .sh-hosting-plan-cta-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sh-hosting-plans .sh-hosting-plan-cta-card h3 {
    margin: 0 0 6px;
    color: var(--sh-text);
    font-size: 17px;
    font-weight: 900;
    line-height: 1.8;
}

.sh-hosting-plans .sh-hosting-plan-cta-card p {
    max-width: 290px;
    margin: 0 0 16px;
    color: var(--sh-muted);
    font-size: 13px;
    line-height: 2;
}

.sh-hosting-plans .sh-hosting-plan-cta-button,
.sh-hosting-plans .sh-hosting-after-plans-cta a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 17px;
    color: var(--sh-blue) !important;
    background: #fff;
    border: 1px solid var(--sh-blue-border);
    border-radius: 9px;
    font-size: 12.5px;
    font-weight: 900;
    text-decoration: none !important;
}

.sh-hosting-plans .sh-hosting-after-plans-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    margin-top: 18px;
    padding: 20px 22px;
    background: var(--sh-soft);
    border: 1px dashed var(--sh-blue-border);
    border-radius: 14px;
}

.sh-hosting-plans .sh-hosting-after-plans-cta-copy strong {
    display: block;
    color: var(--sh-text);
    font-size: 15px;
    font-weight: 900;
    line-height: 1.8;
}

.sh-hosting-plans .sh-hosting-after-plans-cta-copy span {
    display: block;
    margin-top: 2px;
    color: var(--sh-muted);
    font-size: 12.5px;
    line-height: 1.9;
}

.sh-hosting-plans .sh-hosting-after-plans-cta a {
    flex-shrink: 0;
    color: #fff !important;
    background: var(--sh-blue);
    border-color: var(--sh-blue);
}

/* ============================================================
   COMPARE SHORTCUT
============================================================ */

.sh-hosting-plans .sh-hosting-compare-shortcut {
    display: flex;
    justify-content: center;
    margin-top: 22px;
}

.sh-hosting-plans .sh-hosting-compare-shortcut a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--sh-blue) !important;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none !important;
}

/* ============================================================
   OPTIONAL HORIZONTAL VIEW
   Default remains the existing card/grid view.
============================================================ */

.sh-hosting-plans.is-horizontal-view .sh-hosting-plan-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;

    width: 100%;
}

.sh-hosting-plans.is-horizontal-view .sh-hosting-plan-card {
    position: relative;

    display: flex;
    align-items: stretch;
    flex-direction: row;

    width: 100%;
    min-width: 0;
    min-height: 190px;

    overflow: hidden;

    background: #fff;

    border: 1px solid var(--sh-border);
    border-radius: 18px;

    box-shadow:
        0 7px 25px rgba(28, 41, 78, .04);

    transition:
        transform .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;
}

.sh-hosting-plans.is-horizontal-view .sh-hosting-plan-card::before {
    content: "";

    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;

    width: 4px;
    height: 100%;

    background: var(--sh-blue);
}

.sh-hosting-plans.is-horizontal-view .sh-hosting-plan-card:hover {
    transform: translateY(-2px);

    border-color:
        rgba(1, 39, 218, .22);

    box-shadow:
        0 15px 40px rgba(28, 41, 78, .08);
}

.sh-hosting-plans.is-horizontal-view .sh-hosting-plan-card.is-vip {
    color: #fff;
    background: var(--sh-blue);
    border-color: var(--sh-blue);
}

.sh-hosting-plans.is-horizontal-view .sh-hosting-plan-header {
    display: flex;
    flex-direction: column;
    justify-content: center;

    flex: 0 0 225px;

    min-width: 0;

    padding: 24px 25px 24px 21px;

    border-left: 1px solid #edf0f4;
    border-bottom: 0;

    text-align: right;
}

.sh-hosting-plans.is-horizontal-view .sh-hosting-plan-name {
    font-size: 20px;
    font-weight: 800;

    text-align: right;
}

.sh-hosting-plans.is-horizontal-view .sh-hosting-plan-subtitle {
    min-height: 0;

    margin-top: 4px;

    text-align: right;
}

.sh-hosting-plans.is-horizontal-view .sh-hosting-plan-features {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
    align-content: center;

    flex: 1 1 auto;

    min-width: 0;

    padding: 18px 24px;
}

.sh-hosting-plans.is-horizontal-view .sh-hosting-plan-feature {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;

    gap: 4px;

    min-width: 0;
    min-height: 66px;

    padding: 10px 15px;

    border-left: 1px solid #eef1f5;
    border-bottom: 0;
}

.sh-hosting-plans.is-horizontal-view
.sh-hosting-plan-feature:nth-child(4n) {
    border-left: 0;
}

.sh-hosting-plans.is-horizontal-view
.sh-hosting-plan-feature-label {
    margin: 0;

    font-size: 12px;
    font-weight: 500;
}

.sh-hosting-plans.is-horizontal-view
.sh-hosting-plan-feature-value {
    font-size: 14px;
    font-weight: 800;

    text-align: right;

    overflow-wrap: anywhere;
}

.sh-hosting-plans.is-horizontal-view
.sh-hosting-plan-feature-value p,
.sh-hosting-plans.is-horizontal-view
.sh-hosting-plan-feature-value span {
    margin: 0 !important;
}

.sh-hosting-plans.is-horizontal-view .sh-hosting-plan-footer {
    display: flex;
    flex-direction: column;
    justify-content: center;

    flex: 0 0 255px;

    min-width: 0;

    padding: 20px 21px;

    background:
        linear-gradient(
            135deg,
            #fafbff 0%,
            #ffffff 100%
        );

    border-top: 0;
    border-right: 1px solid #edf0f4;
}

.sh-hosting-plans.is-horizontal-view
.sh-hosting-plan-price-area {
    min-height: 0;

    margin-bottom: 12px;
}

.sh-hosting-plans.is-horizontal-view
.sh-hosting-plan-price strong {
    font-size: 24px;
    line-height: 1.45;
}

.sh-hosting-plans.is-horizontal-view
.sh-hosting-plan-card.is-vip .sh-hosting-plan-header,
.sh-hosting-plans.is-horizontal-view
.sh-hosting-plan-card.is-vip .sh-hosting-plan-footer,
.sh-hosting-plans.is-horizontal-view
.sh-hosting-plan-card.is-vip .sh-hosting-plan-feature {
    border-color:
        rgba(255, 255, 255, .15);
}

.sh-hosting-plans.is-horizontal-view
.sh-hosting-plan-cta-card {
    width: 100%;
    min-height: 155px;
}


/* ============================================================
   TABLET
============================================================ */

@media (max-width: 991px) {
    .sh-hosting-plans .sh-hosting-plan-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sh-hosting-plans .sh-hosting-cycle-box {
        align-items: flex-start;
        flex-direction: column;
    }

    .sh-hosting-plans .sh-hosting-filter-controls {
        align-items: flex-start;
        flex-direction: column;
        width: 100%;
    }

    .sh-hosting-plans .sh-hosting-filter-separator {
        width: 100%;
        height: 1px;
    }

    .sh-hosting-plans .sh-hosting-filter-group,
    .sh-hosting-plans .sh-hosting-location-buttons,
    .sh-hosting-plans .sh-hosting-cycle-buttons {
        width: 100%;
    }
}

/* ============================================================
   MOBILE
============================================================ */

@media (max-width: 767px) {
    .sh-hosting-plans .sh-hosting-cycle-box.is-fixed {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        width: auto !important;
        margin-bottom: 24px;
        animation: none;
    }

    .sh-hosting-plans {
        padding-top: 55px;
    }

    .sh-hosting-plans .sh-hosting-section-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
    }

    .sh-hosting-plans .sh-hosting-section-title {
        font-size: 24px;
    }

    .sh-hosting-plans .sh-hosting-section-line {
        display: none;
    }

    .sh-hosting-plans .sh-hosting-section-subtitle {
        max-width: none;
        text-align: right;
    }

    .sh-hosting-plans .sh-hosting-plan-description {
        font-size: 14px;
    }

    .sh-hosting-plans .sh-hosting-cycle-box {
        padding: 11px 12px;
    }

    .sh-hosting-plans .sh-hosting-filter-label {
        display: none;
    }

    .sh-hosting-plans .sh-hosting-filter-controls {
        align-items: center;
    }

    .sh-hosting-plans .sh-hosting-filter-group {
        justify-content: center;
    }

    .sh-hosting-plans .sh-hosting-location-buttons,
    .sh-hosting-plans .sh-hosting-cycle-buttons {
        justify-content: center;
        flex-wrap: nowrap;
        padding-bottom: 4px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .sh-hosting-plans .sh-hosting-location-buttons::-webkit-scrollbar,
    .sh-hosting-plans .sh-hosting-cycle-buttons::-webkit-scrollbar {
        display: none;
    }

    .sh-hosting-plans .sh-hosting-location-button,
    .sh-hosting-plans .sh-hosting-cycle-button {
        flex-shrink: 0;
    }

    .sh-hosting-plans .sh-hosting-plan-grid {
        grid-template-columns: 1fr;
    }

    .sh-hosting-plans .sh-hosting-plan-name {
        font-size: 18px;
    }

    .sh-hosting-plans .sh-hosting-after-plans-cta {
        align-items: flex-start;
        flex-direction: column;
    }

    .sh-hosting-plans .sh-hosting-after-plans-cta a {
        width: 100%;
    }
}

/* ============================================================
   OPTIONAL HORIZONTAL VIEW - RESPONSIVE
============================================================ */

@media (max-width: 1200px) {

    .sh-hosting-plans.is-horizontal-view
    .sh-hosting-plan-header {
        flex-basis: 205px;
    }

    .sh-hosting-plans.is-horizontal-view
    .sh-hosting-plan-footer {
        flex-basis: 225px;
    }

    .sh-hosting-plans.is-horizontal-view
    .sh-hosting-plan-features {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        padding-right: 18px;
        padding-left: 18px;
    }

    .sh-hosting-plans.is-horizontal-view
    .sh-hosting-plan-feature:nth-child(4n) {
        border-left:
            1px solid #eef1f5;
    }

    .sh-hosting-plans.is-horizontal-view
    .sh-hosting-plan-feature:nth-child(3n) {
        border-left: 0;
    }

}


@media (max-width: 991px) {

    .sh-hosting-plans.is-horizontal-view
    .sh-hosting-plan-grid {
        display: flex;
    }

    .sh-hosting-plans.is-horizontal-view
    .sh-hosting-plan-card {
        flex-wrap: wrap;
    }

    .sh-hosting-plans.is-horizontal-view
    .sh-hosting-plan-header {
        flex: 1 1 50%;

        border-left: 0;
        border-bottom: 1px solid #edf0f4;
    }

    .sh-hosting-plans.is-horizontal-view
    .sh-hosting-plan-footer {
        flex: 0 0 280px;

        border-right: 1px solid #edf0f4;
        border-bottom: 1px solid #edf0f4;
    }

    .sh-hosting-plans.is-horizontal-view
    .sh-hosting-plan-features {
        flex: 0 0 100%;

        order: 3;

        grid-template-columns:
            repeat(4, minmax(0, 1fr));

        padding: 13px 18px;
    }

    .sh-hosting-plans.is-horizontal-view
    .sh-hosting-plan-feature:nth-child(3n) {
        border-left:
            1px solid #eef1f5;
    }

    .sh-hosting-plans.is-horizontal-view
    .sh-hosting-plan-feature:nth-child(4n) {
        border-left: 0;
    }

}


@media (max-width: 767px) {

    .sh-hosting-plans .sh-hosting-view-buttons {
        flex-shrink: 0;
    }

    .sh-hosting-plans .sh-hosting-view-button {
        min-height: 36px;
        padding-right: 10px;
        padding-left: 10px;
    }

    .sh-hosting-plans.is-horizontal-view
    .sh-hosting-plan-grid {
        display: flex;
        flex-direction: column;
    }

    .sh-hosting-plans.is-horizontal-view
    .sh-hosting-plan-card {
        display: block;

        min-height: 0;

        border-radius: 16px;
    }

    .sh-hosting-plans.is-horizontal-view
    .sh-hosting-plan-header {
        width: 100%;

        padding: 21px 20px 17px;

        border-left: 0;
        border-bottom: 1px solid #edf0f4;
    }

    .sh-hosting-plans.is-horizontal-view
    .sh-hosting-plan-name {
        font-size: 18px;
    }

    .sh-hosting-plans.is-horizontal-view
    .sh-hosting-plan-features {
        display: grid;
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        width: 100%;

        padding: 11px 10px;
    }

    .sh-hosting-plans.is-horizontal-view
    .sh-hosting-plan-feature {
        min-height: 70px;

        padding: 10px 11px;

        border-left:
            1px solid #eef1f5;
    }

    .sh-hosting-plans.is-horizontal-view
    .sh-hosting-plan-feature:nth-child(4n),
    .sh-hosting-plans.is-horizontal-view
    .sh-hosting-plan-feature:nth-child(3n) {
        border-left:
            1px solid #eef1f5;
    }

    .sh-hosting-plans.is-horizontal-view
    .sh-hosting-plan-feature:nth-child(2n) {
        border-left: 0;
    }

    .sh-hosting-plans.is-horizontal-view
    .sh-hosting-plan-footer {
        width: 100%;

        padding: 18px 20px;

        border: 0;
        border-top: 1px solid #edf0f4;
    }

    .sh-hosting-plans.is-horizontal-view
    .sh-hosting-plan-price strong {
        font-size: 23px;
    }

}
