/*
 * TSPK order form overrides.
 * The Standard Cart parent template remains unchanged for safe WHMCS updates.
 */

#order-standard_cart {
    --tspk-order-bg: var(--tspk-bg, #0c1c30);
    --tspk-order-surface: var(--tspk-surface, #142d49);
    --tspk-order-surface-raised: var(--tspk-surface-raised, #1c3a5b);
    --tspk-order-field: var(--tspk-field, #10263f);
    --tspk-order-text: var(--tspk-text, #f6f9fc);
    --tspk-order-muted: var(--tspk-muted, #adc1d2);
    --tspk-order-subtle: var(--tspk-subtle, #7f98ad);
    --tspk-order-line: var(--tspk-line, rgba(190, 218, 239, .17));
    --tspk-order-accent: var(--tspk-accent, #35e1c1);
    --tspk-order-accent-hover: var(--tspk-accent-hover, #66ecd3);
    --tspk-order-accent-soft: var(--tspk-accent-soft, rgba(53, 225, 193, .08));
    --tspk-order-accent-border: var(--tspk-accent-border, rgba(53, 225, 193, .28));
    --tspk-order-on-accent: var(--tspk-on-accent, #031714);
    --tspk-order-danger: var(--tspk-danger, #ff7285);
    --tspk-order-warning: var(--tspk-warning, #f8c85d);
    color: var(--tspk-order-muted);
}

#order-standard_cart h1,
#order-standard_cart h2,
#order-standard_cart h3,
#order-standard_cart h4,
#order-standard_cart strong {
    color: var(--tspk-order-text);
}

#order-standard_cart .header-lined {
    margin-bottom: 28px;
}

#order-standard_cart .header-lined h1,
#order-standard_cart .tspk-catalog-heading h1 {
    margin: 8px 0 10px;
    color: var(--tspk-order-text);
    font-size: clamp(32px, 4vw, 50px) !important;
    font-weight: 780;
    line-height: 1.08;
    letter-spacing: -.045em;
}

#order-standard_cart .tspk-catalog-shell {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
}

#order-standard_cart .tspk-catalog-hero {
    margin-bottom: 22px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 178px;
    align-items: stretch;
    gap: 24px;
}

#order-standard_cart .tspk-catalog-heading {
    min-width: 0;
    padding: 18px 0 16px;
}

#order-standard_cart .tspk-catalog-heading p,
#order-standard_cart .header-lined p {
    max-width: 720px;
    margin: 0;
    color: var(--tspk-order-muted);
    font-size: 14px;
    line-height: 1.65;
}

#order-standard_cart .tspk-catalog-eyebrow {
    color: var(--tspk-order-accent);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .13em;
    text-transform: uppercase;
}

#order-standard_cart .tspk-catalog-overview {
    min-height: 150px;
    padding: 23px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--tspk-order-muted);
    background:
        radial-gradient(circle at 100% 0, rgba(53, 225, 193, .14), transparent 58%),
        var(--tspk-order-surface);
    border: 1px solid var(--tspk-order-line);
    border-radius: 20px;
}

#order-standard_cart .tspk-catalog-overview-label,
#order-standard_cart .tspk-catalog-overview-note {
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .08em;
    text-transform: uppercase;
}

#order-standard_cart .tspk-catalog-overview strong {
    color: var(--tspk-order-text);
    font-size: 48px;
    font-weight: 780;
    line-height: .95;
    letter-spacing: -.05em;
}

#order-standard_cart .tspk-catalog-overview-note {
    color: var(--tspk-order-accent);
    font-size: 9px;
    letter-spacing: .04em;
}

#order-standard_cart .tspk-catalog-toolbar {
    margin-bottom: 24px;
    padding: 7px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: rgba(20, 45, 73, .82);
    border: 1px solid var(--tspk-order-line);
    border-radius: 16px;
}

#order-standard_cart .tspk-category-tabs,
#order-standard_cart .tspk-catalog-controls {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

#order-standard_cart .tspk-category-tabs {
    overflow-x: auto;
    scrollbar-width: none;
}

#order-standard_cart .tspk-category-tabs::-webkit-scrollbar {
    display: none;
}

#order-standard_cart .tspk-category-tab,
#order-standard_cart .tspk-catalog-action {
    min-height: 42px;
    padding: 10px 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 0 0 auto;
    color: var(--tspk-order-muted);
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.2;
    text-decoration: none;
    transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}

#order-standard_cart .tspk-category-tab:hover,
#order-standard_cart .tspk-category-tab:focus,
#order-standard_cart .tspk-catalog-action:hover,
#order-standard_cart .tspk-catalog-action:focus {
    color: var(--tspk-order-text);
    background: rgba(255, 255, 255, .045);
    border-color: rgba(255, 255, 255, .08);
    text-decoration: none;
}

#order-standard_cart .tspk-category-tab.is-active {
    color: var(--tspk-order-on-accent);
    background: var(--tspk-order-accent);
    border-color: var(--tspk-order-accent);
}

#order-standard_cart .tspk-category-tab.is-disabled,
#order-standard_cart .tspk-catalog-action.is-disabled {
    opacity: .45;
    pointer-events: none;
}

#order-standard_cart .tspk-catalog-controls {
    flex: 0 0 auto;
}

#order-standard_cart .tspk-currency-control {
    margin: 0;
}

#order-standard_cart .tspk-currency-control .form-control {
    width: 82px;
    min-height: 42px;
    padding: 8px 34px 8px 12px;
    color: var(--tspk-order-text);
    background-color: var(--tspk-order-field);
    background-position: right 11px center;
    border: 1px solid var(--tspk-order-line);
    border-radius: 10px;
    font-size: 12px;
    font-weight: 750;
}

#order-standard_cart .tspk-catalog-action {
    color: var(--tspk-order-text);
    background: var(--tspk-order-surface-raised);
    border-color: var(--tspk-order-line);
}

#order-standard_cart .tspk-catalog-action i {
    color: var(--tspk-order-accent);
}

/* Category and action navigation */
#order-standard_cart .cart-sidebar .card,
#order-standard_cart .cart-sidebar .panel,
#order-standard_cart .sidebar-collapsed,
#order-standard_cart .list-group-item {
    color: var(--tspk-order-muted);
    background: var(--tspk-order-surface);
    border-color: var(--tspk-order-line);
}

#order-standard_cart .cart-sidebar .card,
#order-standard_cart .cart-sidebar .panel,
#order-standard_cart .sidebar-collapsed {
    overflow: hidden;
    margin-bottom: 16px;
    border: 1px solid var(--tspk-order-line);
    border-radius: 16px;
    box-shadow: none;
}

#order-standard_cart .cart-sidebar .card-header,
#order-standard_cart .cart-sidebar .panel-heading,
#order-standard_cart .sidebar-collapsed h3 {
    color: var(--tspk-order-text);
    background: var(--tspk-order-surface-raised);
    border-color: var(--tspk-order-line);
}

#order-standard_cart .cart-sidebar .list-group-item:hover,
#order-standard_cart .cart-sidebar .list-group-item.active {
    color: var(--tspk-order-text);
    background: var(--tspk-order-surface-raised);
}

#order-standard_cart .cart-sidebar select,
#order-standard_cart .sidebar-collapsed select {
    min-height: 44px;
    color: var(--tspk-order-text);
    background: var(--tspk-order-field);
    border-color: var(--tspk-order-line);
}

#order-standard_cart .sidebar-collapsed,
#order-standard_cart .tspk-catalog-mobile-nav {
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    background: transparent;
    border: 0;
}

#order-standard_cart .sidebar-collapsed::after,
#order-standard_cart .tspk-catalog-mobile-nav::after {
    display: none;
}

#order-standard_cart .sidebar-collapsed > .panel,
#order-standard_cart .sidebar-collapsed > .card,
#order-standard_cart .tspk-catalog-mobile-nav > .panel,
#order-standard_cart .tspk-catalog-mobile-nav > .card {
    min-width: 0;
    margin: 0;
}

#order-standard_cart .sidebar-collapsed .panel-heading,
#order-standard_cart .sidebar-collapsed .card-header,
#order-standard_cart .sidebar-collapsed .panel-body,
#order-standard_cart .sidebar-collapsed .card-body,
#order-standard_cart .tspk-catalog-mobile-nav .panel-heading,
#order-standard_cart .tspk-catalog-mobile-nav .card-header,
#order-standard_cart .tspk-catalog-mobile-nav .panel-body,
#order-standard_cart .tspk-catalog-mobile-nav .card-body {
    padding: 11px 12px;
}

#order-standard_cart .sidebar-collapsed .panel-title,
#order-standard_cart .tspk-catalog-mobile-nav .panel-title {
    font-size: 12px;
}

#order-standard_cart .sidebar-collapsed > .panel:has(select option:only-child) {
    display: none;
}

#order-standard_cart .sidebar-collapsed > .pull-right,
#order-standard_cart .sidebar-collapsed > .float-right {
    width: 100%;
    grid-column: 1 / -1;
    float: none !important;
}

#order-standard_cart .sidebar-collapsed > .pull-right form,
#order-standard_cart .sidebar-collapsed > .float-right form,
#order-standard_cart .sidebar-collapsed > .pull-right select,
#order-standard_cart .sidebar-collapsed > .float-right select {
    width: 100%;
}

#order-standard_cart .tspk-mobile-currency {
    grid-column: 1 / -1;
}

#order-standard_cart .tspk-mobile-currency form,
#order-standard_cart .tspk-mobile-currency select {
    width: 100%;
}

/* Product collection: auto-fit deliberately supports 1, 3, 6+ tariffs. */
#order-standard_cart .products.tspk-catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr));
    gap: 20px;
    margin: 0;
}

#order-standard_cart .products .product.tspk-catalog-card {
    min-width: 0;
    min-height: 470px;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: var(--tspk-order-muted);
    background:
        linear-gradient(90deg, var(--tspk-order-accent), transparent 72%) top left / 100% 2px no-repeat,
        linear-gradient(155deg, rgba(53, 225, 193, .06), var(--tspk-order-surface) 48%);
    border: 1px solid var(--tspk-order-line);
    border-radius: 22px;
    box-shadow: none;
}

#order-standard_cart .products .product.tspk-catalog-card:hover {
    border-color: rgba(53, 225, 193, .38);
    transform: translateY(-2px);
    transition: transform .18s ease, border-color .18s ease;
}

#order-standard_cart .products .product .tspk-catalog-card-header {
    min-height: 140px;
    padding: 25px 27px 22px;
    margin: 0;
    position: relative;
    background: transparent;
    border: 0;
}

#order-standard_cart .products .product .tspk-catalog-card-kicker {
    min-height: 25px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

#order-standard_cart .products .product .tspk-catalog-index {
    display: block;
    margin: 0;
    color: var(--tspk-order-accent);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .14em;
}

#order-standard_cart .products .product .tspk-catalog-card-header h2 {
    margin: 0;
    padding-right: 0;
    color: var(--tspk-order-text);
    font-size: 22px;
    font-weight: 750;
    line-height: 1.25;
    letter-spacing: -.025em;
}

#order-standard_cart .products .product header .qty {
    position: static;
    float: none;
    padding: 5px 8px;
    color: var(--tspk-order-accent);
    background: rgba(53, 225, 193, .08);
    border: 1px solid rgba(53, 225, 193, .2);
    border-radius: 999px;
    font-size: 9px;
    font-style: normal;
}

#order-standard_cart .products .product div.product-desc.tspk-catalog-card-body {
    width: 100%;
    padding: 22px 27px 28px;
    float: none;
    flex: 1;
    color: var(--tspk-order-muted);
    font-size: 14px;
    line-height: 1.65;
    border-top: 1px solid var(--tspk-order-line);
}

#order-standard_cart .tspk-card-section-label {
    margin-bottom: 15px;
    display: block;
    color: var(--tspk-order-text);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

#order-standard_cart .tspk-product-description {
    overflow-wrap: anywhere;
}

#order-standard_cart .tspk-product-description a {
    color: var(--tspk-order-accent);
}

#order-standard_cart .tspk-bot-description-link {
    width: fit-content;
    margin-top: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--tspk-order-accent);
    font-weight: 750;
    text-decoration: none;
}

#order-standard_cart .tspk-bot-description-link:hover,
#order-standard_cart .tspk-bot-description-link:focus {
    color: var(--tspk-order-text);
    text-decoration: none;
}

#order-standard_cart .tspk-feature-list {
    margin: 18px 0 0;
    padding: 0;
    display: grid;
    gap: 9px;
    list-style: none;
}

#order-standard_cart .tspk-feature-list li::before {
    content: "\2713";
    margin-right: 8px;
    color: var(--tspk-order-accent);
    font-weight: 900;
}

#order-standard_cart .products .product .tspk-catalog-card-footer {
    width: auto;
    margin: 0;
    padding: 22px 27px 26px;
    float: none;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    background: rgba(8, 21, 34, .24);
    border-top: 1px solid var(--tspk-order-line);
    text-align: left;
}

#order-standard_cart .products .product div.product-pricing {
    min-width: 0;
    margin: 0;
    color: var(--tspk-order-muted);
    line-height: 1.35;
}

#order-standard_cart .tspk-price-label,
#order-standard_cart .tspk-price-cycle,
#order-standard_cart .product-pricing small {
    display: block;
    color: var(--tspk-order-muted);
    font-size: 10px;
}

#order-standard_cart .products .product div.product-pricing span.price {
    display: block;
    margin: 4px 0;
    color: var(--tspk-order-text);
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -.025em;
}

#order-standard_cart .btn-order-now {
    min-width: 116px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: var(--tspk-order-on-accent);
    background: var(--tspk-order-accent);
    border-color: var(--tspk-order-accent);
    border-radius: 11px;
    font-size: 12px;
    font-weight: 800;
}

#order-standard_cart .btn-order-now:hover,
#order-standard_cart .btn-order-now:focus {
    color: var(--tspk-order-on-accent);
    background: var(--tspk-order-accent-hover);
    border-color: var(--tspk-order-accent-hover);
}

/*
 * Visual fallback for product groups that still explicitly use standard_cart.
 * The preferred configuration remains tspk_cart, but category navigation must
 * not fall back to light cards while WHMCS settings are being migrated.
 */
body.tspk-theme #order-standard_cart .products:not(.tspk-catalog-grid) > .row {
    margin-right: 0;
    margin-left: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr));
    gap: 18px;
}

body.tspk-theme #order-standard_cart .products:not(.tspk-catalog-grid) > .row > [class*="col-"] {
    width: auto;
    max-width: none;
    padding: 0;
    float: none;
    flex: none;
}

body.tspk-theme #order-standard_cart .products .product:not(.tspk-catalog-card) {
    min-height: 470px;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: var(--tspk-order-muted);
    background: linear-gradient(155deg, rgba(53, 225, 193, .055), var(--tspk-order-surface) 45%);
    border: 1px solid var(--tspk-order-line);
    border-radius: 20px;
}

body.tspk-theme #order-standard_cart .products .product:not(.tspk-catalog-card) > header {
    padding: 24px 26px;
    margin: 0;
    background: transparent;
    border-bottom: 1px solid var(--tspk-order-line);
    border-radius: 0;
}

body.tspk-theme #order-standard_cart .products .product:not(.tspk-catalog-card) > header span {
    color: var(--tspk-order-text);
    font-size: 19px;
    font-weight: 750;
    line-height: 1.3;
}

body.tspk-theme #order-standard_cart .products .product:not(.tspk-catalog-card) > .product-desc {
    width: 100%;
    padding: 22px 26px;
    float: none;
    flex: 1;
    color: var(--tspk-order-muted);
    font-size: 13px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

body.tspk-theme #order-standard_cart .products .product:not(.tspk-catalog-card) > .product-desc a {
    color: var(--tspk-order-accent-hover);
    font-weight: 700;
}

body.tspk-theme #order-standard_cart .products .product:not(.tspk-catalog-card) > footer {
    width: 100%;
    min-height: 104px;
    padding: 20px 26px 24px;
    margin: 0;
    float: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    color: var(--tspk-order-muted);
    background: rgba(8, 21, 34, .24);
    border-top: 1px solid var(--tspk-order-line);
    text-align: left;
}

body.tspk-theme #order-standard_cart .products .product:not(.tspk-catalog-card) > footer .product-pricing {
    margin: 0;
    color: var(--tspk-order-muted);
}

body.tspk-theme #order-standard_cart .products .product:not(.tspk-catalog-card) > footer .price {
    color: var(--tspk-order-text);
    font-size: 25px;
    font-weight: 800;
}

/* Shared order steps, cart and checkout */
body.tspk-theme #order-standard_cart .product-info,
body.tspk-theme #order-standard_cart .order-summary,
body.tspk-theme #order-standard_cart .summary-container,
body.tspk-theme #order-standard_cart .view-cart-items,
body.tspk-theme #order-standard_cart .view-cart-tabs .tab-content,
body.tspk-theme #order-standard_cart .panel,
body.tspk-theme #order-standard_cart .card,
body.tspk-theme #order-standard_cart .modal-content {
    color: var(--tspk-order-muted);
    background: var(--tspk-order-surface);
    border-color: var(--tspk-order-line);
}

body.tspk-theme #order-standard_cart .order-summary,
body.tspk-theme #order-standard_cart .summary-container,
body.tspk-theme #order-standard_cart .view-cart-items,
body.tspk-theme #order-standard_cart .view-cart-tabs .tab-content {
    border-radius: 16px;
}

body.tspk-theme #order-standard_cart .view-cart-tabs .nav-tabs {
    border-bottom-color: var(--tspk-order-line);
}

body.tspk-theme #order-standard_cart .view-cart-tabs .nav-tabs .nav-link {
    color: var(--tspk-order-muted);
    background: transparent;
    border-color: transparent;
}

body.tspk-theme #order-standard_cart .view-cart-tabs .nav-tabs .nav-link.active,
body.tspk-theme #order-standard_cart .view-cart-tabs .nav-tabs .nav-link[aria-expanded="true"],
body.tspk-theme #order-standard_cart .view-cart-tabs .nav-tabs .nav-link[aria-selected="true"] {
    color: var(--tspk-order-text);
    background: var(--tspk-order-surface);
    border-color: var(--tspk-order-line) var(--tspk-order-line) var(--tspk-order-surface);
}

body.tspk-theme #order-standard_cart .order-summary .btn-continue-shopping {
    margin-top: 8px;
    color: var(--tspk-order-muted);
    font-size: 13px;
    font-weight: 650;
}

body.tspk-theme #order-standard_cart .order-summary .btn-continue-shopping:hover,
body.tspk-theme #order-standard_cart .order-summary .btn-continue-shopping:focus {
    color: var(--tspk-order-accent-hover);
    text-decoration: underline;
    text-underline-offset: 3px;
}

body.tspk-theme #order-standard_cart .order-summary h2,
body.tspk-theme #order-standard_cart .view-cart-items-header,
body.tspk-theme #order-standard_cart .panel-heading,
body.tspk-theme #order-standard_cart .card-header {
    color: var(--tspk-order-text);
    background: var(--tspk-order-surface-raised);
    border-color: var(--tspk-order-line);
}

body.tspk-theme #order-standard_cart .view-cart-items .item,
body.tspk-theme #order-standard_cart .view-cart-items .item:nth-child(even),
body.tspk-theme #order-standard_cart .summary-totals,
body.tspk-theme #order-standard_cart .bordered-totals,
body.tspk-theme #order-standard_cart .recurring-totals {
    color: var(--tspk-order-muted);
    background: transparent;
    border-color: var(--tspk-order-line);
}

body.tspk-theme #order-standard_cart label,
body.tspk-theme #order-standard_cart p.domain-renewal-desc,
body.tspk-theme #order-standard_cart .service-renewals .div-renewal-period-label {
    color: var(--tspk-order-text);
}

body.tspk-theme #order-standard_cart .field-help-text {
    color: var(--tspk-order-muted);
}

body.tspk-theme #order-standard_cart .field,
body.tspk-theme #order-standard_cart .form-control,
body.tspk-theme #order-standard_cart select,
body.tspk-theme #order-standard_cart textarea {
    min-height: 46px;
    color: var(--tspk-order-text);
    background: var(--tspk-order-field);
    border-color: rgba(255, 255, 255, .16);
    border-radius: 10px;
}

body.tspk-theme #order-standard_cart select.field,
body.tspk-theme #order-standard_cart select.form-control,
body.tspk-theme #order-standard_cart select.custom-select {
    padding-right: 42px;
    background-position: right 14px center;
    color-scheme: dark;
}

body.tspk-theme #order-standard_cart select option {
    color: var(--tspk-order-text);
    background-color: var(--tspk-order-field);
}

body.tspk-theme #order-standard_cart .field:focus,
body.tspk-theme #order-standard_cart .form-control:focus,
body.tspk-theme #order-standard_cart select:focus,
body.tspk-theme #order-standard_cart textarea:focus {
    color: var(--tspk-order-text);
    background: var(--tspk-order-surface);
    border-color: var(--tspk-order-accent);
    box-shadow: 0 0 0 3px rgba(53, 225, 193, .15);
}

body.tspk-theme #order-standard_cart .sub-heading {
    border-color: var(--tspk-order-line);
}

body.tspk-theme #order-standard_cart .sub-heading span,
body.tspk-theme #order-standard_cart .sub-heading-borderless span {
    color: var(--tspk-order-text);
    background: var(--tspk-order-bg) !important;
}

body.tspk-theme #order-standard_cart .alert {
    color: var(--tspk-order-text);
    background: var(--tspk-order-surface-raised);
    border-color: var(--tspk-order-line);
    border-radius: 12px;
}

body.tspk-theme #order-standard_cart .alert-success { border-left: 3px solid var(--tspk-order-accent); }
body.tspk-theme #order-standard_cart .alert-danger { border-left: 3px solid var(--tspk-order-danger); }
body.tspk-theme #order-standard_cart .alert-warning { border-left: 3px solid var(--tspk-order-warning); }

body.tspk-theme #order-standard_cart .alert-warning.info-text-sm {
    color: var(--tspk-order-text);
    background: rgba(53, 225, 193, .07);
    border-left-color: var(--tspk-order-accent);
    font-size: 13px;
    line-height: 1.55;
}

body.tspk-theme #order-standard_cart .alert-warning.info-text-sm > i {
    margin-right: 5px;
    color: var(--tspk-order-accent);
}

body.tspk-theme #order-standard_cart .alert-warning.info-text-sm .alert-link {
    color: var(--tspk-order-accent-hover) !important;
    font-weight: 800;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

body.tspk-theme #order-standard_cart .tspk-checkout-assurance {
    max-width: 820px;
    margin: 28px auto 4px;
    padding: 16px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    color: var(--tspk-order-muted);
    background: color-mix(in srgb, var(--tspk-order-surface-raised) 68%, transparent);
    border: 1px solid var(--tspk-order-line);
    border-radius: 14px;
    text-align: left;
}

body.tspk-theme #order-standard_cart .tspk-billing-address-hidden {
    display: none !important;
}

body.tspk-theme #order-standard_cart .checkout-security-msg {
    display: none !important;
}

body.tspk-theme #order-standard_cart .tspk-checkout-assurance-item {
    min-width: 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

body.tspk-theme #order-standard_cart .tspk-checkout-assurance-item > i {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--tspk-order-accent);
    background: var(--tspk-order-accent-soft);
    border: 1px solid var(--tspk-order-accent-border);
    border-radius: 9px;
}

body.tspk-theme #order-standard_cart .tspk-checkout-assurance-item span,
body.tspk-theme #order-standard_cart .tspk-checkout-assurance-item strong,
body.tspk-theme #order-standard_cart .tspk-checkout-assurance-item small {
    display: block;
}

body.tspk-theme #order-standard_cart .tspk-checkout-assurance-item strong {
    margin-bottom: 2px;
    color: var(--tspk-order-text);
    font-size: 13px;
    line-height: 1.35;
}

body.tspk-theme #order-standard_cart .tspk-checkout-assurance-item small {
    color: var(--tspk-order-subtle);
    font-size: 11px;
    line-height: 1.45;
}

/* Checkout: replace the remaining light Standard Cart panels with TSPK UI. */
body.tspk-theme #order-standard_cart .already-registered {
    margin-bottom: 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    color: var(--tspk-order-muted);
}

body.tspk-theme #order-standard_cart .already-registered > p {
    margin: 0;
}

body.tspk-theme #order-standard_cart .already-registered .btn.w-hidden {
    display: none !important;
}

body.tspk-theme #order-standard_cart .already-registered .pull-right {
    order: 2;
    display: flex;
    gap: 10px;
}

body.tspk-theme #order-standard_cart .already-registered .btn-info,
body.tspk-theme #order-standard_cart .already-registered .btn-warning {
    color: var(--tspk-on-accent);
    background: var(--tspk-order-accent);
    border-color: var(--tspk-order-accent);
}

body.tspk-theme #frmCheckout {
    width: 100%;
    max-width: 980px;
    margin-right: auto;
    margin-left: auto;
}

body.tspk-theme #frmCheckout .sub-heading {
    margin-top: 28px;
}

body.tspk-theme #order-standard_cart #containerExistingAccountSelect {
    margin: 0;
    padding: 8px;
    overflow: hidden;
    color: var(--tspk-order-muted);
    background: var(--tspk-order-surface);
    border: 1px solid var(--tspk-order-line);
    border-radius: 18px;
}

body.tspk-theme #order-standard_cart #containerExistingAccountSelect > [class*="col-"] {
    width: 100%;
    max-width: none;
    padding: 6px;
    flex: 0 0 100%;
}

body.tspk-theme #order-standard_cart #containerExistingAccountSelect div.account {
    min-height: 72px;
    padding: 0;
    color: var(--tspk-order-muted);
    background: var(--tspk-order-field);
    border: 1px solid var(--tspk-order-line) !important;
    border-radius: 12px;
}

body.tspk-theme #order-standard_cart #containerExistingAccountSelect div.account.active {
    color: var(--tspk-order-text);
    background: var(--tspk-order-surface-raised);
    border-color: var(--tspk-order-accent) !important;
    box-shadow: inset 3px 0 0 var(--tspk-order-accent);
}

body.tspk-theme #order-standard_cart #containerExistingAccountSelect div.account label {
    min-height: 70px;
    margin: 0;
    padding: 15px 18px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: inherit;
    cursor: pointer;
}

body.tspk-theme #order-standard_cart #containerExistingAccountSelect div.account input {
    margin: 4px 0 0;
    position: static;
    flex: 0 0 auto;
    accent-color: var(--tspk-order-accent);
}

body.tspk-theme #order-standard_cart #containerExistingAccountSelect div.account .address {
    min-width: 0;
    color: inherit;
}

body.tspk-theme #order-standard_cart #containerExistingAccountSelect div.account .address strong {
    color: var(--tspk-order-text);
}

body.tspk-theme #order-standard_cart #containerExistingAccountSelect div.account .small {
    color: var(--tspk-order-muted);
}

body.tspk-theme #order-standard_cart #containerExistingAccountSelect .label-info {
    color: var(--tspk-on-accent);
    background: var(--tspk-order-accent);
}

body.tspk-theme #totalDueToday {
    padding: 18px 22px;
    color: var(--tspk-order-text);
    background: linear-gradient(90deg, var(--tspk-accent-soft), var(--tspk-order-surface));
    border: 1px solid var(--tspk-accent-border);
    border-left: 3px solid var(--tspk-order-accent);
}

body.tspk-theme #paymentGatewaysContainer > .text-center {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 10px;
    text-align: left !important;
}

body.tspk-theme #paymentGatewaysContainer .radio-inline {
    min-height: 52px;
    margin: 0;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--tspk-order-muted);
    background: var(--tspk-order-field);
    border: 1px solid var(--tspk-order-line);
    border-radius: 12px;
    cursor: pointer;
}

body.tspk-theme #paymentGatewaysContainer .radio-inline:has(input:checked) {
    color: var(--tspk-order-text);
    background: var(--tspk-order-surface-raised);
    border-color: var(--tspk-order-accent);
}

body.tspk-theme #paymentGatewaysContainer input[type="radio"] {
    margin: 0;
    position: static;
    accent-color: var(--tspk-order-accent);
}

body.tspk-theme #frmCheckout .marketing-email-optin,
body.tspk-theme #frmCheckout .apply-credit-container,
body.tspk-theme #frmCheckout .cc-input-container {
    padding: 20px;
    color: var(--tspk-order-muted);
    background: var(--tspk-order-surface);
    border: 1px solid var(--tspk-order-line);
    border-radius: 14px;
}

@media (max-width: 767.98px) {
    body.tspk-theme #order-standard_cart .tspk-checkout-assurance {
        grid-template-columns: minmax(0, 1fr);
    }

    body.tspk-theme #order-standard_cart .already-registered {
        align-items: stretch;
        flex-direction: column;
    }

    body.tspk-theme #order-standard_cart .already-registered .pull-right {
        width: 100%;
        order: 0;
    }

    body.tspk-theme #order-standard_cart .already-registered .btn {
        width: 100%;
    }

    body.tspk-theme #paymentGatewaysContainer > .text-center {
        grid-template-columns: minmax(0, 1fr);
    }
}

/*
 * Product configurator: remove the legacy WHMCS navigation column and use the
 * complete content width for the form and its order summary.
 */
body.tspk-template-configureproduct #order-standard_cart > .row {
    margin-right: 0;
    margin-left: 0;
    display: block;
}

body.tspk-template-configureproduct #order-standard_cart .cart-sidebar,
body.tspk-template-configureproduct #order-standard_cart .sidebar-collapsed {
    display: none !important;
}

body.tspk-template-configureproduct #order-standard_cart .cart-body {
    width: 100%;
    padding-right: 0;
    padding-left: 0;
    float: none;
}

body.tspk-template-configureproduct #frmConfigureProduct > .row {
    margin-right: 0;
    margin-left: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(300px, .75fr);
    align-items: start;
    gap: 28px;
}

body.tspk-template-configureproduct #order-standard_cart .secondary-cart-body,
body.tspk-template-configureproduct #order-standard_cart .secondary-cart-sidebar {
    width: auto;
    min-width: 0;
    padding-right: 0;
    padding-left: 0;
    float: none;
}

body.tspk-template-configureproduct #order-standard_cart .secondary-cart-sidebar {
    margin: 0;
    position: sticky;
    top: 24px;
}

body.tspk-template-configureproduct #order-standard_cart .product-info {
    padding: 22px 24px;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.65;
    border: 1px solid var(--tspk-order-line);
    border-radius: 18px;
}

body.tspk-template-configureproduct #order-standard_cart .order-summary .summary-container {
    font-size: 13px;
    line-height: 1.55;
}

body.tspk-template-configureproduct #order-standard_cart .tspk-slot-option-label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.5;
}

body.tspk-template-configureproduct #order-standard_cart .product-configurable-options,
body.tspk-template-configureproduct #order-standard_cart .product-configurable-options .form-group,
body.tspk-template-configureproduct #order-standard_cart .product-configurable-options select,
body.tspk-template-configureproduct #order-standard_cart .field-container,
body.tspk-template-configureproduct #order-standard_cart .field-container .form-control {
    min-width: 0;
    max-width: 100%;
}

/*
 * Cart review: keep the content compact, remove the legacy WHMCS navigation
 * column and align the item list, promo form and summary to one grid.
 */
body.tspk-template-viewcart #order-standard_cart {
    width: 100%;
    max-width: 980px;
    margin-right: auto;
    margin-left: auto;
}

body.tspk-template-viewcart #order-standard_cart > .row {
    margin-right: 0;
    margin-left: 0;
    display: block;
}

body.tspk-template-viewcart #order-standard_cart .cart-sidebar,
body.tspk-template-viewcart #order-standard_cart .sidebar-collapsed {
    display: none !important;
}

body.tspk-template-viewcart #order-standard_cart .cart-body {
    width: 100%;
    padding-right: 0;
    padding-left: 0;
    float: none;
}

body.tspk-template-viewcart #order-standard_cart .cart-body > .row {
    margin-right: 0;
    margin-left: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(290px, .8fr);
    align-items: start;
    gap: 24px;
}

body.tspk-template-viewcart #order-standard_cart .secondary-cart-body,
body.tspk-template-viewcart #order-standard_cart .secondary-cart-sidebar {
    width: auto;
    min-width: 0;
    padding-right: 0;
    padding-left: 0;
    float: none;
}

body.tspk-template-viewcart #order-standard_cart .secondary-cart-sidebar {
    margin: 0;
    position: sticky;
    top: 24px;
}

body.tspk-template-viewcart #order-standard_cart .view-cart-items-header,
body.tspk-template-viewcart #order-standard_cart .order-summary > h2 {
    border-radius: 10px;
}

body.tspk-template-viewcart #order-standard_cart .view-cart-tabs .nav-tabs {
    border-bottom: 0;
}

body.tspk-template-viewcart #order-standard_cart .view-cart-items .item {
    font-size: 14px;
    line-height: 1.55;
}

body.tspk-template-viewcart #order-standard_cart .view-cart-items .item-title {
    font-size: 18px;
}

body.tspk-template-viewcart #order-standard_cart .view-cart-items .item-group,
body.tspk-template-viewcart #order-standard_cart .view-cart-items .item-domain {
    font-size: 14px;
}

body.tspk-template-viewcart #order-standard_cart .view-cart-items .item-price span {
    font-size: 18px;
}

body.tspk-template-viewcart #order-standard_cart .order-summary .summary-container {
    font-size: 13px;
    line-height: 1.55;
}

body.tspk-template-viewcart #order-standard_cart .order-summary .product-name {
    font-size: 15px;
}

@media (max-width: 991.98px) {
    body.tspk-template-viewcart #order-standard_cart .cart-body > .row {
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
    }

    body.tspk-template-viewcart #order-standard_cart .secondary-cart-sidebar {
        position: static;
    }
}

@media (max-width: 991.98px) {
    body.tspk-template-configureproduct #frmConfigureProduct > .row {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    body.tspk-template-configureproduct #order-standard_cart .secondary-cart-sidebar {
        position: static;
    }
}

@media (max-width: 991.98px) {
    #order-standard_cart .tspk-catalog-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    #order-standard_cart .tspk-category-tabs {
        width: 100%;
    }

    #order-standard_cart .tspk-catalog-controls {
        justify-content: flex-end;
    }
}

@media (max-width: 899.98px) {
    #order-standard_cart .products.tspk-catalog-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 767.98px) {
    body.tspk-template-viewcart #order-standard_cart {
        width: calc(100% - 16px);
    }

    body.tspk-template-viewcart #order-standard_cart .header-lined h1 {
        font-size: clamp(27px, 7.5vw, 31px) !important;
    }

    body.tspk-template-configureproduct #productConfigurableOptions > .row {
        margin-right: 0;
        margin-left: 0;
    }

    body.tspk-template-configureproduct #productConfigurableOptions > .row > [class*="col-"] {
        padding-right: 0;
        padding-left: 0;
    }

    body.tspk-template-configureproduct #order-standard_cart .product-info {
        padding: 18px;
        border-radius: 15px;
    }

    body.tspk-template-configureproduct #order-standard_cart .sub-heading span,
    body.tspk-template-configureproduct #order-standard_cart .sub-heading-borderless span {
        padding-right: 12px;
        padding-left: 12px;
        white-space: normal;
    }

    #order-standard_cart .cart-body,
    #order-standard_cart .secondary-cart-body,
    #order-standard_cart .secondary-cart-sidebar {
        width: 100%;
        padding-right: 0;
        padding-left: 0;
        float: none;
    }

    #order-standard_cart .tspk-catalog-heading {
        padding: 8px 0 0;
    }

    #order-standard_cart .tspk-catalog-hero {
        margin-bottom: 18px;
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    #order-standard_cart .tspk-catalog-heading h1,
    #order-standard_cart .header-lined h1 {
        font-size: clamp(29px, 9vw, 40px) !important;
    }

    #order-standard_cart .tspk-catalog-overview {
        min-height: 0;
        padding: 17px 19px;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 5px 18px;
        border-radius: 16px;
    }

    #order-standard_cart .tspk-catalog-overview strong {
        grid-column: 2;
        grid-row: 1 / 3;
        font-size: 38px;
    }

    #order-standard_cart .tspk-catalog-overview-note {
        grid-column: 1;
    }

    #order-standard_cart .tspk-catalog-toolbar {
        margin-bottom: 18px;
    }

    #order-standard_cart .tspk-category-tab,
    #order-standard_cart .tspk-catalog-action {
        min-height: 44px;
    }

    #order-standard_cart .tspk-catalog-controls,
    #order-standard_cart .tspk-currency-control {
        width: 100%;
    }

    #order-standard_cart .tspk-currency-control {
        flex: 0 0 88px;
    }

    #order-standard_cart .tspk-currency-control .form-control {
        width: 100%;
        min-height: 44px;
    }

    #order-standard_cart .tspk-catalog-action {
        flex: 1 1 auto;
    }

    #order-standard_cart .products .product.tspk-catalog-card {
        min-height: 0;
    }

    #order-standard_cart .products .product .tspk-catalog-card-header,
    #order-standard_cart .products .product div.product-desc.tspk-catalog-card-body,
    #order-standard_cart .products .product .tspk-catalog-card-footer {
        padding-left: 21px;
        padding-right: 21px;
    }

    #order-standard_cart .products .product .tspk-catalog-card-header {
        min-height: 0;
    }

    #order-standard_cart .products .product .tspk-catalog-card-footer {
        align-items: stretch;
        flex-direction: column;
    }

    #order-standard_cart .btn-order-now {
        width: 100%;
    }

    body.tspk-theme #order-standard_cart .products .product:not(.tspk-catalog-card) {
        min-height: 0;
    }

    body.tspk-theme #order-standard_cart .products .product:not(.tspk-catalog-card) > footer {
        align-items: stretch;
        flex-direction: column;
    }
}

@media (max-width: 359.98px) {
    #order-standard_cart .sidebar-collapsed,
    #order-standard_cart .tspk-catalog-mobile-nav {
        grid-template-columns: minmax(0, 1fr);
    }

    #order-standard_cart .tspk-mobile-currency {
        grid-column: auto;
    }

    #order-standard_cart .products.tspk-catalog-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    #order-standard_cart .products .product .tspk-catalog-card-header h2 {
        padding-right: 0;
    }

    #order-standard_cart .products .product header .qty {
        position: static;
        display: inline-block;
        margin-bottom: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #order-standard_cart .products .product.tspk-catalog-card {
        transition: none;
    }
}
