.tide-shop {
    --domain-ink: #14243d;
    --domain-muted: #465d7c;
    --domain-line: #d5e2f2;
    --domain-brand: #174fae;
    --domain-wash: #edf5ff;
    --domain-surface: #fff;
    --domain-gutter: clamp(16px, 5vw, 58px);
    max-width: 1080px;
    margin-inline: auto;
    color: var(--domain-ink);
}

.ho-site:has(.tide-shop) .master-breadcrumb {
    display: none;
}

.tide-domain-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.tide-domain-nav a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 7px 13px;
    border: 1px solid transparent;
    border-radius: 9px;
    color: var(--domain-muted);
    font-size: .87rem;
    font-weight: 640;
}

.tide-domain-nav a:hover,
.tide-domain-nav a[aria-current="page"] {
    border-color: var(--domain-line);
    background: var(--domain-surface);
    color: var(--domain-brand);
    text-decoration: none;
}

.tide-shop #order-standard_cart > .row {
    flex-direction: column;
    margin-inline: 0;
}

.tide-shop #order-standard_cart :is(.cart-body, .cart-sidebar) {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
    padding-inline: 0;
}

.tide-shop #order-standard_cart .cart-sidebar { order: 1; }
.tide-shop #order-standard_cart .cart-sidebar:empty,
.tide-shop #order-standard_cart .cart-sidebar > [menuItemName="Categories"],
.tide-shop #order-standard_cart .cart-sidebar > [menuItemName="Actions"],
.tide-shop #order-standard_cart .sidebar-collapsed > .panel {
    display: none !important;
}

.tide-shop #order-standard_cart .cart-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.tide-shop #order-standard_cart .sidebar-collapsed {
    display: none;
}

.tide-shop #order-standard_cart .sidebar-collapsed:has(select[name="currency"]) {
    display: flex;
    justify-content: flex-end;
    order: -1;
    margin: -4px 0 12px;
}

.tide-shop:not(.tide-shop--register) #order-standard_cart .header-lined {
    margin: 0 0 18px;
    padding: clamp(16px, 3.2vw, 33px) clamp(15px, 4vw, 38px);
    border: 1px solid var(--domain-line);
    border-radius: 17px;
    background: var(--domain-wash);
}

.ho-site .tide-shop:not(.tide-shop--register) #order-standard_cart .header-lined h1 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 18px;
    margin: 0;
    padding: 0;
    border: 0;
    color: var(--domain-ink);
    font-size: clamp(1.7rem, 3.4vw, 2.8rem);
    line-height: 1.14;
    letter-spacing: -.04em;
}

.tide-shop #order-standard_cart .header-lined p {
    margin: 7px 0 0;
    color: var(--domain-muted);
}

.tide-shop #order-standard_cart .form-control { min-height: 43px; border-radius: 8px; }

.tide-shop-action,
.tide-shop #order-standard_cart :is(.btn-order-now, .btn-add-renewal-to-cart, .btn-checkout, #btnGoToCart) {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid var(--domain-brand);
    border-radius: 9px;
    background: var(--domain-brand);
    color: #fff;
    font-size: .88rem;
    font-weight: 680;
    white-space: normal;
}

.tide-shop-action:hover,
.tide-shop #order-standard_cart :is(.btn-order-now, .btn-add-renewal-to-cart, .btn-checkout, #btnGoToCart):hover {
    border-color: #133a76;
    background: #133a76;
    color: #fff;
    text-decoration: none;
}

.tide-shop-action--secondary {
    border-color: #bcd0ea;
    background: #f3f8ff;
    color: var(--domain-brand);
}

/* Transfer keeps the native form, validation and registrar-code tooltip. */
@media (min-width: 768px) {
    .tide-shop--transfer {
        display: grid;
        grid-template-columns: minmax(0, 2.15fr) minmax(220px, 1fr);
        align-items: start;
        gap: 16px;
    }
    .tide-shop--transfer .tide-domain-nav { grid-column: 1 / -1; margin-bottom: 0; }
    .tide-shop--transfer .tide-transfer-help { margin-top: 0; }
}

.tide-shop--transfer #order-standard_cart .cart-body > .text-center:not(.small) {
    margin: 0 0 17px;
    text-align: start !important;
}
.tide-shop--transfer #order-standard_cart .cart-body > .text-center h2 { display: none; }
.tide-shop--transfer #order-standard_cart .cart-body > .text-center p { margin: 0; color: var(--domain-muted); }
.tide-shop--transfer #order-standard_cart .cart-body > br { display: none; }
.tide-shop--transfer #frmDomainTransfer > .row { margin: 0; }
.tide-shop--transfer #frmDomainTransfer > .row > div {
    flex: 0 0 100%;
    max-width: 760px;
    margin: 0;
    padding: 0;
}
.tide-shop--transfer #frmDomainTransfer .card { margin: 0; box-shadow: none; }
.tide-shop--transfer #frmDomainTransfer :is(.card-header, .card-body, .card-footer) { padding: 15px clamp(15px, 3vw, 24px); }
.tide-shop--transfer #frmDomainTransfer label { color: var(--domain-ink); font-weight: 650; }
.tide-shop--transfer #frmDomainTransfer .card-footer { background: #f2f7ff; }
.tide-shop--transfer #order-standard_cart .cart-body > p.small { margin: 11px 0; color: var(--domain-muted); text-align: start !important; }

.tide-transfer-help {
    display: flex;
    gap: 13px;
    max-width: 760px;
    margin-top: 10px;
    padding: 15px 18px;
    border: 1px solid var(--domain-line);
    border-radius: 12px;
    background: var(--domain-wash);
}
.tide-transfer-help > i { margin-top: 4px; color: var(--domain-brand); }
.tide-transfer-help h2 { margin: 0 0 3px; font-size: 1rem; font-weight: 720; }
.tide-transfer-help p { margin: 0; color: var(--domain-muted); font-size: .89rem; }

/* Keep renewal periods and totals beside each other when space permits. */
.tide-shop:is(.tide-shop--renew, .tide-shop--cart) #order-standard_cart .cart-body > .row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 30%);
    align-items: start;
    gap: 16px;
    margin: 0;
}

.tide-shop #order-standard_cart :is(.secondary-cart-body, .secondary-cart-sidebar) {
    width: auto;
    max-width: none;
    min-width: 0;
    padding: 0;
}

.tide-shop #order-standard_cart .domain-renewals { display: grid; gap: 10px; margin: 0; }
.tide-shop #order-standard_cart .domain-renewal {
    min-width: 0;
    margin: 0;
    padding: clamp(14px, 2.5vw, 22px);
    border: 1px solid var(--domain-line);
    border-radius: 13px;
    background: var(--domain-surface);
}
.tide-shop #order-standard_cart .domain-renewal h3 {
    margin: 0 0 4px;
    color: var(--domain-ink);
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    font-weight: 740;
    overflow-wrap: anywhere;
}
.tide-shop #order-standard_cart .domain-renewal p { margin-bottom: 12px; color: var(--domain-muted); }
.tide-shop #order-standard_cart .domain-renewal .label { display: inline-block; padding: 5px 8px; border-radius: 6px; font-size: .73rem; }
.tide-shop #order-standard_cart .domain-renewal .label-warning { color: #784705; background: #fff0d4; }
.tide-shop #order-standard_cart .domain-renewal .label-success { color: #135841; background: #e2f4ed; }
.tide-shop #order-standard_cart .domain-renewal label { align-self: center; color: var(--domain-ink); font-weight: 600; }
.tide-shop #order-standard_cart .domain-renewal form { margin-top: 12px; }

.ho-site .tide-shop #order-standard_cart .order-summary {
    margin: 0 0 12px;
    padding: 15px;
    border: 1px solid var(--domain-line);
    border-radius: 14px;
    background: var(--domain-surface);
}
.ho-site .tide-shop #order-standard_cart .order-summary h2 {
    margin: 0 0 12px;
    padding: 0;
    color: var(--domain-ink);
    text-align: start;
    font-size: 1.13rem;
}
.tide-shop #order-standard_cart .order-summary .summary-container { padding: 12px; background: #f1f6ff; }
.tide-shop #order-standard_cart .total-due-today .amt { color: var(--domain-ink); font-weight: 730; }
.tide-shop #order-standard_cart :is(.btn-checkout, #btnGoToCart) { width: 100%; }

.tide-shop--cart #order-standard_cart .view-cart-items-header {
    padding-block: 13px;
    border: 1px solid var(--domain-line);
    border-radius: 13px 13px 0 0;
    background: var(--domain-wash);
    color: var(--domain-ink);
    font-weight: 650;
}
.tide-shop--cart #order-standard_cart .view-cart-items { border-radius: 0 0 13px 13px; background: var(--domain-surface); }
.tide-shop--cart #order-standard_cart .view-cart-items .item { padding-block: 13px; }
.tide-shop--cart #order-standard_cart .view-cart-tabs { margin-top: 17px; }
.tide-shop--cart #order-standard_cart .view-cart-tabs .tab-content {
    padding: 15px;
    border: 1px solid var(--domain-line);
    border-radius: 0 0 12px 12px;
    background: var(--domain-surface);
}
.tide-shop--cart #order-standard_cart .view-cart-tabs form .btn-default {
    min-height: 41px;
    border-color: #bcd0ea;
    border-radius: 8px;
    background: #eef5ff;
    color: var(--domain-brand);
}
.tide-shop--empty #order-standard_cart .cart-body > .row { display: block; }
.tide-shop--empty #order-standard_cart :is(.view-cart-items-header, .view-cart-items, .view-cart-tabs, #scrollingPanelContainer) { display: none; }
.tide-cart-empty {
    display: grid;
    justify-items: center;
    gap: 13px;
    padding: clamp(22px, 6vw, 58px) 15px;
    border: 1px solid var(--domain-line);
    border-radius: 15px;
    background: var(--domain-surface);
    text-align: center;
}
.tide-cart-empty > i {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border-radius: 13px;
    background: var(--domain-wash);
    color: var(--domain-brand);
    font-size: 1.3rem;
}
.tide-cart-empty h2 { margin: 0; font-size: 1.25rem; font-weight: 720; }
.tide-cart-empty-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }

/* Product prices and features come from the active WHMCS group. */
.tide-catalog-nav .tide-catalog-cart {
    margin-inline-start: auto;
    border-color: var(--domain-line);
    background: var(--domain-surface);
}

.tide-shop--catalog .products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr));
    gap: 13px;
    margin: 0;
}
.tide-shop--catalog .products > .row { display: contents; }
.tide-shop--catalog .products > .row > div { display: flex; min-width: 0; max-width: none; padding: 0; }
.tide-shop--catalog #order-standard_cart .products .product {
    display: flex;
    flex-direction: column;
    float: none;
    width: 100%;
    margin: 0;
    padding: clamp(14px, 2.5vw, 24px);
    border: 1px solid var(--domain-line);
    border-radius: 15px;
    background: var(--domain-surface);
}
.tide-shop--catalog #order-standard_cart .products .product header {
    padding: 0;
    border: 0;
    background: none;
    color: var(--domain-ink);
    font-size: 1.2rem;
    font-weight: 740;
}
.tide-shop--catalog #order-standard_cart .products .product header .qty { margin-inline-start: 5px; }
.tide-shop--catalog #order-standard_cart .products .product footer {
    order: 1;
    float: none;
    width: auto;
    padding: 12px 0 16px;
    text-align: start;
}
.tide-shop--catalog #order-standard_cart .products .product-pricing { margin: 0 0 11px; color: var(--domain-muted); }
.tide-shop--catalog #order-standard_cart .products .product-pricing .price {
    color: var(--domain-ink);
    font-size: clamp(1.42rem, 3vw, 1.95rem);
    font-weight: 760;
    line-height: 1.2;
}
.tide-shop--catalog #order-standard_cart .products .btn-order-now { width: 100%; }
.tide-shop--catalog #order-standard_cart .products .product-desc {
    order: 2;
    float: none;
    width: auto;
    padding: 13px 0 0;
    border-top: 1px solid var(--domain-line);
    color: var(--domain-ink);
    font-size: .9rem;
}
.tide-shop--catalog #order-standard_cart .products .product-desc ul { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.tide-shop--catalog #order-standard_cart .products .product-desc p { margin: 0 0 8px; line-height: 1.4; }
.tide-shop--catalog #order-standard_cart .products .product-desc li { position: relative; margin: 0; padding-inline-start: 18px; overflow-wrap: anywhere; }
.tide-shop--catalog #order-standard_cart .products .product-desc li::before {
    content: "";
    position: absolute;
    inset: .43em auto auto 1px;
    width: 9px;
    height: 5px;
    border: solid #17695c;
    border-width: 0 0 2px 2px;
    transform: rotate(-45deg);
}
.tide-shop--catalog #products .product-desc:not(:has(p, li)) { display: none; }
.tide-shop--catalog #order-standard_cart #products .product:not(:has(.product-desc :is(p, li))) footer { padding-bottom: 0; }

.tide-shop--catalog #order-standard_cart .products .product > form {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
}

.tide-shop--catalog #order-standard_cart .products .product > form .product-desc { order: 0; margin-top: 10px; }
.tide-shop--catalog #order-standard_cart .products .product > form select { width: 100%; min-width: 0; }
.tide-shop--catalog #order-standard_cart .products footer button.btn-success {
    width: 100%;
    min-height: 42px;
    border-color: var(--domain-brand);
    border-radius: 9px;
    background: var(--domain-brand);
    color: #fff;
}

.tide-catalog-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 18px;
    padding: clamp(16px, 3.2vw, 33px) clamp(15px, 4vw, 38px);
    border: 1px solid var(--domain-line);
    border-radius: 17px;
    background: var(--domain-wash);
}

.tide-catalog-title {
    margin: 0;
    color: var(--domain-ink);
    font-size: clamp(1.7rem, 3.4vw, 2.8rem);
    font-weight: 750;
    line-height: 1.14;
    letter-spacing: -.04em;
}

.tide-shop--market > .landing-page {
    border: 1px solid var(--domain-line);
    border-radius: 17px;
}
.primary-content.tide-shop--market { width: calc(100% - 30px); }

.tide-shop--market .landing-page :is(.pricing, .validation-levels) form button.btn {
    border-color: var(--domain-brand);
    border-radius: 9px;
    background: var(--domain-brand);
    color: #fff;
}

.tide-shop--market .landing-page :is(.pricing, .validation-levels) form button.btn:hover {
    border-color: #133a76;
    background: #133a76;
}

@media (max-width: 767px) {
    .tide-shop:is(.tide-shop--renew, .tide-shop--cart) #order-standard_cart .cart-body > .row { grid-template-columns: minmax(0, 1fr); }
    .tide-shop #order-standard_cart #orderSummary { position: static !important; width: auto !important; }
    .tide-shop #order-standard_cart .domain-renewal > .float-right { float: none !important; margin-bottom: 7px; }
    #main-body .tide-shop--market .landing-page.ox .logo-img,
    #main-body .tide-shop--market .landing-page.nordvpn .world-image { max-width: 100%; height: auto; }
    .tide-shop--market .landing-page.ox .row > :has(> table) { min-width: 0; overflow-x: auto; }
    #main-body .tide-shop--market .landing-page.nordvpn .world-data { margin-inline: 0; max-width: 100%; }
}

@media (max-width: 575px) {
    .tide-domain-nav a { padding-inline: 9px; }
    .tide-catalog-nav .tide-catalog-cart { margin-inline-start: 0; }
}

