/**
 * ARPHost Cart Theme
 * Version: 6.0.9
 * Shared design language with the ARPHost WordPress and WHMCS client-area themes.
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --brand-primary: #0891b2;
    --brand-primary-dark: #0e7490;
    --brand-primary-light: #22d3ee;
    --brand-secondary: #f59e0b;
    --brand-secondary-dark: #d97706;
    --brand-success: #10b981;
    --brand-warning: #f59e0b;
    --brand-danger: #ef4444;

    --bg-body: #f8fafc;
    --bg-surface: #ffffff;
    --bg-surface-hover: #f1f5f9;
    --bg-card: #ffffff;
    --bg-input: #ffffff;

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;

    --border-color: #e2e8f0;
    --border-color-strong: #cbd5e1;

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.08);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.12), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-glow: 0 0 40px rgba(8, 145, 178, 0.15);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
}

[data-theme="dark"] {
    --bg-body: #0a0f1a;
    --bg-surface: #111827;
    --bg-surface-hover: #1f2937;
    --bg-card: #111827;
    --bg-input: #1f2937;

    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #94a3b8;

    --border-color: #1f2937;
    --border-color-strong: #374151;

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.25);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.4), 0 2px 4px -2px rgb(0 0 0 / 0.3);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.5), 0 4px 6px -4px rgb(0 0 0 / 0.4);
    --shadow-glow: 0 0 60px rgba(34, 211, 238, 0.2);
}

html,
body,
#order-standard_cart,
#order-arphost_cart,
.main-content {
    background: var(--bg-body) !important;
    color: var(--text-primary) !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif !important;
}

a {
    color: var(--brand-primary);
}

a:hover,
a:focus {
    color: var(--brand-primary-light);
    text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
.font-size-36,
.header-lined h1,
.header-lined h2,
.header-lined h3 {
    color: var(--text-primary) !important;
}

p,
small,
.text-muted,
.item-group,
.item-domain,
.sub-heading {
    color: var(--text-secondary) !important;
}

/* Layout */
#order-standard_cart > .row,
#order-arphost_cart > .row {
    gap: 0 !important;
}

.cart-sidebar,
.cart-body,
.secondary-cart-body {
    background: transparent !important;
}

#order-standard_cart .cart-sidebar,
#order-standard_cart .cart-sidebar.sidebar,
#order-standard_cart .sidebar,
#order-standard_cart .cart-sidebar::before,
#order-standard_cart .cart-sidebar::after {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    outline: 0 !important;
}

/* Sidebar categories */
.cart-sidebar .panel,
.cart-sidebar .list-group,
.order-summary,
.summary-container,
.secondary-cart-body > .panel,
.secondary-cart-body > .well {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-sm) !important;
}

.cart-sidebar .panel-heading,
.cart-sidebar .panel-title,
.order-summary h3,
.order-summary .summary-title {
    background: var(--bg-surface-hover) !important;
    border-bottom: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
}

.cart-sidebar .list-group-item,
.categories-collapsed .list-group-item {
    background: transparent !important;
    border: 0 !important;
    border-radius: var(--radius-md) !important;
    color: var(--text-secondary) !important;
    margin-bottom: 0.35rem !important;
}

.cart-sidebar .list-group-item:hover,
.cart-sidebar .list-group-item.active,
.categories-collapsed .list-group-item:hover,
.categories-collapsed .list-group-item.active {
    background: rgba(8, 145, 178, 0.14) !important;
    color: var(--brand-primary) !important;
}

.cart-sidebar .list-group-item i,
.categories-collapsed .list-group-item i {
    color: var(--brand-primary) !important;
}

/* Sidebar should read as one card, not nested cards */
#order-standard_cart .cart-sidebar .panel,
#order-standard_cart .cart-sidebar .card.card-sidebar {
    overflow: hidden !important;
}

#order-standard_cart .cart-sidebar .panel .list-group,
#order-standard_cart .cart-sidebar .card .list-group,
#order-standard_cart .cart-sidebar .panel .collapsable-card-body {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0.45rem 0.55rem 0.65rem !important;
}

#order-standard_cart .cart-sidebar .list-group-item,
#order-standard_cart .categories-collapsed .list-group-item {
    margin-bottom: 0.2rem !important;
}

/* Section heading */
.header-lined {
    border-bottom: 1px solid var(--border-color) !important;
    margin-bottom: 1.4rem !important;
    padding-bottom: 1rem !important;
}

.header-lined h1,
.header-lined h2 {
    font-weight: 700 !important;
}

.header-lined p {
    color: var(--text-secondary) !important;
}

/* Product list cards */
.products .product,
#products .product,
.store-products .item,
.product-group {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-sm) !important;
    overflow: hidden;
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-fast);
    margin-bottom: 0 !important;
}

.products .product:hover,
#products .product:hover,
.store-products .item:hover,
.product-group:hover {
    border-color: var(--brand-primary) !important;
    box-shadow: var(--shadow-glow) !important;
    transform: translateY(-2px);
}

.products .product header,
#products .product header,
.product-group header {
    background: var(--bg-surface-hover) !important;
    border-bottom: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
    padding: 0.8rem 1rem !important;
    font-weight: 600 !important;
}

/* Keep product/title headers readable in both modes */
#order-standard_cart .products .product header span,
#order-standard_cart #products .product header span,
#order-standard_cart .products .product header .qty,
#order-standard_cart #products .product header .qty,
#order-standard_cart .header-lined h1,
#order-standard_cart .header-lined h2,
#order-standard_cart .header-lined h3 {
    color: var(--text-primary) !important;
}

[data-theme="dark"] #order-standard_cart .products .product header span,
[data-theme="dark"] #order-standard_cart #products .product header span,
[data-theme="dark"] #order-standard_cart .products .product header .qty,
[data-theme="dark"] #order-standard_cart #products .product header .qty,
[data-theme="dark"] #order-standard_cart .header-lined h1,
[data-theme="dark"] #order-standard_cart .header-lined h2,
[data-theme="dark"] #order-standard_cart .header-lined h3 {
    color: #fff !important;
}

[data-theme="light"] #order-standard_cart .products .product header span,
[data-theme="light"] #order-standard_cart #products .product header span,
[data-theme="light"] #order-standard_cart .products .product header .qty,
[data-theme="light"] #order-standard_cart #products .product header .qty,
[data-theme="light"] #order-standard_cart .header-lined h1,
[data-theme="light"] #order-standard_cart .header-lined h2,
[data-theme="light"] #order-standard_cart .header-lined h3,
body.theme-light #order-standard_cart .products .product header span,
body.theme-light #order-standard_cart #products .product header span,
body.theme-light #order-standard_cart .products .product header .qty,
body.theme-light #order-standard_cart #products .product header .qty,
body.theme-light #order-standard_cart .header-lined h1,
body.theme-light #order-standard_cart .header-lined h2,
body.theme-light #order-standard_cart .header-lined h3 {
    color: #000 !important;
}

.products .product .qty,
.product-group .qty {
    color: var(--text-muted) !important;
    font-weight: 500;
}

.product-desc,
.product-desc p,
.product-desc li,
.product .product-desc,
.product .product-desc p {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif !important;
    color: var(--text-secondary) !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    font-weight: 500 !important;
    line-height: 1.45 !important;
}

.product-desc {
    padding: 0.8rem 1rem !important;
}

.product-desc ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.product-desc ul li {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.45rem 0;
    border-bottom: 1px solid var(--border-color) !important;
    font-size: 0.96rem !important;
    align-items: flex-start;
}

.product-desc ul li:last-child {
    border-bottom: 0 !important;
}

.feature-value {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif !important;
    color: var(--text-primary) !important;
    font-weight: 600;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

/* Support Font Awesome list icons in product descriptions without hijacking the text font */
#order-standard_cart #products .product .product-desc ul > br,
#order-standard_cart .products .product .product-desc ul > br {
    display: none !important;
}

#order-standard_cart #products .product .product-desc ul li.fa,
#order-standard_cart #products .product .product-desc ul li.fas,
#order-standard_cart #products .product .product-desc ul li.far,
#order-standard_cart #products .product .product-desc ul li.fal,
#order-standard_cart #products .product .product-desc ul li.fab,
#order-standard_cart #products .product .product-desc ul li.fa-solid,
#order-standard_cart #products .product .product-desc ul li.fa-regular,
#order-standard_cart #products .product .product-desc ul li.fa-light,
#order-standard_cart #products .product .product-desc ul li.fa-brands,
#order-standard_cart .products .product .product-desc ul li.fa,
#order-standard_cart .products .product .product-desc ul li.fas,
#order-standard_cart .products .product .product-desc ul li.far,
#order-standard_cart .products .product .product-desc ul li.fal,
#order-standard_cart .products .product .product-desc ul li.fab,
#order-standard_cart .products .product .product-desc ul li.fa-solid,
#order-standard_cart .products .product .product-desc ul li.fa-regular,
#order-standard_cart .products .product .product-desc ul li.fa-light,
#order-standard_cart .products .product .product-desc ul li.fa-brands {
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 0.7rem !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif !important;
    font-weight: 500 !important;
    color: var(--text-secondary) !important;
    line-height: 1.45 !important;
}

#order-standard_cart #products .product .product-desc ul li.fa::before,
#order-standard_cart #products .product .product-desc ul li.fas::before,
#order-standard_cart #products .product .product-desc ul li.far::before,
#order-standard_cart #products .product .product-desc ul li.fal::before,
#order-standard_cart #products .product .product-desc ul li.fab::before,
#order-standard_cart #products .product .product-desc ul li.fa-solid::before,
#order-standard_cart #products .product .product-desc ul li.fa-regular::before,
#order-standard_cart #products .product .product-desc ul li.fa-light::before,
#order-standard_cart #products .product .product-desc ul li.fa-brands::before,
#order-standard_cart .products .product .product-desc ul li.fa::before,
#order-standard_cart .products .product .product-desc ul li.fas::before,
#order-standard_cart .products .product .product-desc ul li.far::before,
#order-standard_cart .products .product .product-desc ul li.fal::before,
#order-standard_cart .products .product .product-desc ul li.fab::before,
#order-standard_cart .products .product .product-desc ul li.fa-solid::before,
#order-standard_cart .products .product .product-desc ul li.fa-regular::before,
#order-standard_cart .products .product .product-desc ul li.fa-light::before,
#order-standard_cart .products .product .product-desc ul li.fa-brands::before {
    content: var(--fa) !important;
    font-family: "Font Awesome 6 Pro", "Font Awesome 6 Free", "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
    color: var(--brand-primary) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 1.15rem !important;
    min-width: 1.15rem !important;
    flex: 0 0 1.15rem !important;
    margin-right: 0 !important;
}

.product footer,
.product-footer,
.pricing-footer {
    padding: 0.75rem 1rem 0.95rem !important;
    border-top: 1px solid var(--border-color) !important;
}

.product-pricing,
.product-pricing .price,
.product .price,
#products .price {
    color: var(--brand-primary) !important;
    font-weight: 700 !important;
}

.product-pricing {
    margin-bottom: 0 !important;
    padding: 0.35rem 0.5rem !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-md) !important;
    min-height: 72px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.2rem !important;
    text-align: center !important;
}

.product-pricing .price,
#order-standard_cart #products .product .product-pricing .price {
    display: inline-block !important;
    max-width: 100% !important;
    font-size: 1.58rem !important;
    line-height: 1.08 !important;
    letter-spacing: -0.02em !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
}

.product-pricing small {
    color: var(--text-muted) !important;
    font-size: 0.72rem !important;
    line-height: 1.2 !important;
}

#order-standard_cart .products .product .btn-order-now,
#order-standard_cart #products .product .btn-order-now {
    padding: 0.58rem 1rem !important;
}

/* Give visual breathing room between product cards */
#order-standard_cart #products {
    padding: 10px 8px 8px !important;
    overflow: hidden !important;
}

#order-standard_cart #products .row.row-eq-height {
    margin-left: 0 !important;
    margin-right: 0 !important;
    gap: 16px !important;
    margin-bottom: 20px !important;
}

#order-standard_cart #products .row.row-eq-height:last-child {
    margin-bottom: 0 !important;
}

#order-standard_cart #products .col-md-4,
#order-standard_cart #products .col-md-6 {
    width: calc(33.333% - 11px) !important;
    max-width: calc(33.333% - 11px) !important;
    flex: 0 0 calc(33.333% - 11px) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-bottom: 0 !important;
}

@media (max-width: 1199px) {
    #order-standard_cart #products .col-md-4,
    #order-standard_cart #products .col-md-6 {
        width: calc(50% - 8px) !important;
        max-width: calc(50% - 8px) !important;
        flex: 0 0 calc(50% - 8px) !important;
    }
}

@media (max-width: 991px) {
    #order-standard_cart #products .col-md-4,
    #order-standard_cart #products .col-md-6 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }
}

/* Desktop compact mode so 3-up cards stay visually balanced */
@media (min-width: 1200px) {
    #order-standard_cart #products .product header {
        padding: 0.65rem 0.85rem !important;
    }

    #order-standard_cart #products .product header span {
        font-size: 1.03rem !important;
    }

    #order-standard_cart #products .product .qty {
        font-size: 0.78rem !important;
    }

    #order-standard_cart #products .product .product-desc {
        padding: 0.62rem 0.85rem !important;
    }

    #order-standard_cart #products .product .product-desc p {
        margin-bottom: 0.45rem !important;
        font-size: 0.92rem !important;
        line-height: 1.35 !important;
    }

    #order-standard_cart #products .product .product-desc ul li {
        padding: 0.35rem 0 !important;
        font-size: 0.91rem !important;
        line-height: 1.3 !important;
    }

    #order-standard_cart #products .product footer {
        padding: 0.62rem 0.85rem 0.78rem !important;
    }

    #order-standard_cart #products .product .product-pricing {
        padding: 0.3rem 0.45rem !important;
        min-height: 68px !important;
    }

    #order-standard_cart #products .product .product-pricing .price {
        font-size: 1.38rem !important;
        line-height: 1.02 !important;
    }

    #order-standard_cart #products .product .btn-order-now {
        margin-top: 6px !important;
        padding: 0.5rem 0.85rem !important;
        font-size: 0.95rem !important;
    }
}

/* View cart */
.view-cart-items-header {
    background: var(--bg-surface-hover) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important;
    color: var(--text-muted) !important;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.78rem;
    font-weight: 700;
}

.view-cart-items {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    border-top: 0 !important;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg) !important;
}

.view-cart-items .item {
    background: var(--bg-card) !important;
    border-bottom: 1px solid var(--border-color) !important;
    transition: background var(--transition-fast);
}

.view-cart-items .item:nth-child(even) {
    background: var(--bg-card) !important;
}

.view-cart-items .item:hover {
    background: rgba(8, 145, 178, 0.06) !important;
}

[data-theme="dark"] .view-cart-items .item,
body.theme-dark .view-cart-items .item,
[data-theme="dark"] .view-cart-items .item:nth-child(even),
body.theme-dark .view-cart-items .item:nth-child(even) {
    background: var(--bg-card) !important;
}

[data-theme="dark"] .view-cart-items .item:hover,
body.theme-dark .view-cart-items .item:hover {
    background: var(--bg-surface-hover) !important;
}

.view-cart-items .item:last-child {
    border-bottom: 0 !important;
}

.item-title {
    color: var(--text-primary) !important;
    font-weight: 600;
}

.item-group,
.item-domain,
.item-desc,
.item small,
.item .text-muted {
    color: var(--text-secondary) !important;
}

.item-price,
.item-price > span:first-child,
.item-price .pull-right {
    color: var(--text-primary) !important;
    font-weight: 600;
}

.item-price .cycle,
.item-price .renewal,
.item-price .renewal-price {
    color: var(--text-muted) !important;
    font-weight: 500;
}

.item-qty .form-control {
    min-width: 72px;
}

.btn-remove-from-cart {
    color: var(--brand-danger) !important;
}

/* Summary totals */
.order-summary .summary-totals,
.summary-totals,
.totals-row {
    color: var(--text-secondary) !important;
}

.order-summary .pull-right,
.summary-totals .pull-right,
.total-due-today .pull-right {
    color: var(--text-primary) !important;
    font-weight: 700;
}

.total-due-today,
.order-summary .total-due-today {
    background: var(--bg-surface-hover) !important;
    border-top: 1px solid var(--border-color) !important;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg) !important;
    color: var(--text-primary) !important;
}

.total-due-today .pull-right {
    color: var(--brand-primary) !important;
}

/* Buttons */
.btn {
    border-radius: var(--radius-md) !important;
    font-weight: 600 !important;
    transition: all var(--transition-fast) !important;
}

.btn-primary,
.btn-success,
.btn-order-now,
input[type="submit"].btn-primary {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-dark)) !important;
    border: 1px solid transparent !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(8, 145, 178, 0.35) !important;
}

.btn-primary:hover,
.btn-success:hover,
.btn-order-now:hover,
.btn-primary:focus,
.btn-success:focus,
.btn-order-now:focus {
    background: linear-gradient(135deg, var(--brand-primary-dark), #0b5f73) !important;
    color: #fff !important;
    box-shadow: 0 6px 20px rgba(8, 145, 178, 0.45) !important;
    transform: translateY(-1px);
}

.btn-default,
.btn-secondary,
.btn-link.btn-default,
.btn-outline {
    background: var(--bg-surface) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
}

.btn-default:hover,
.btn-secondary:hover,
.btn-link.btn-default:hover,
.btn-outline:hover {
    background: var(--bg-surface-hover) !important;
    border-color: var(--brand-primary) !important;
    color: var(--brand-primary) !important;
}

.btn-warning {
    background: linear-gradient(135deg, var(--brand-warning), var(--brand-secondary-dark)) !important;
    border-color: transparent !important;
    color: #fff !important;
}

.btn-danger {
    background: linear-gradient(135deg, var(--brand-danger), #dc2626) !important;
    border-color: transparent !important;
    color: #fff !important;
}

.btn-link {
    color: var(--brand-primary) !important;
}

.btn-link:hover {
    color: var(--brand-primary-light) !important;
}

/* Forms */
.form-control,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="url"],
input[type="search"],
select,
textarea,
.input-group-addon,
.tld-select,
.domain-tld-select,
select.tld {
    background: var(--bg-input) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-md) !important;
    color: var(--text-primary) !important;
    box-shadow: none !important;
}

.form-control:focus,
input:focus,
textarea:focus,
select:focus {
    border-color: var(--brand-primary) !important;
    box-shadow: 0 0 0 0.2rem rgba(8, 145, 178, 0.2) !important;
    outline: 0 !important;
}

.form-control::placeholder,
input::placeholder,
textarea::placeholder {
    color: var(--text-muted) !important;
    opacity: 0.85;
}

#order-standard_cart #frmConfigureProduct .form-group > label,
#order-standard_cart #frmConfigureProduct .field-container label {
    font-size: 0.9rem !important;
    line-height: 1.3 !important;
}

#order-standard_cart #frmConfigureProduct .form-control,
#order-standard_cart #frmConfigureProduct select.form-control,
#order-standard_cart #frmConfigureProduct .custom-select,
#order-standard_cart #frmConfigureProduct .select-inline {
    font-size: 0.97rem !important;
    line-height: 1.3 !important;
    min-height: 46px !important;
    height: 46px !important;
    padding: 0.55rem 2.35rem 0.55rem 0.95rem !important;
}

#order-standard_cart #frmConfigureProduct select.form-control option,
#order-standard_cart #frmConfigureProduct .custom-select option {
    font-size: 0.97rem !important;
    line-height: 1.35 !important;
}

#order-standard_cart #frmConfigureProduct #inputBillingcycle,
#order-standard_cart #frmConfigureProduct .product-configurable-options select.form-control,
#order-standard_cart #frmConfigureProduct .product-configurable-options .custom-select {
    font-size: 0.95rem !important;
    line-height: 1.25 !important;
    min-height: 44px !important;
    height: 44px !important;
    padding: 0.5rem 2.2rem 0.5rem 0.9rem !important;
}

#order-standard_cart .cart-sidebar .custom-select,
#order-standard_cart .sidebar .custom-select,
#order-standard_cart .panel-body .custom-select,
#order-standard_cart .card-body .custom-select {
    font-size: 0.97rem !important;
    line-height: 1.35 !important;
    min-height: 46px !important;
    height: 46px !important;
    padding: 0.55rem 2.35rem 0.55rem 0.95rem !important;
    color: var(--text-primary) !important;
}

#order-standard_cart .cart-sidebar .custom-select option,
#order-standard_cart .sidebar .custom-select option {
    font-size: 0.97rem !important;
    line-height: 1.4 !important;
}

select option {
    background: var(--bg-card) !important;
    color: var(--text-primary) !important;
}

.markItUp,
.markItUp .markItUpContainer,
.markItUpEditor,
textarea.markItUpEditor,
#inputMessage,
textarea#inputMessage,
.markdown-editor textarea,
.ticket-form textarea,
.submitticket textarea {
    background: var(--bg-card) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
}

.markItUpHeader,
.markItUpHeader ul,
.markItUpHeader ul li {
    background: var(--bg-surface-hover) !important;
}

.markItUpHeader ul li a {
    color: var(--text-secondary) !important;
}

.markItUpHeader ul li a:hover {
    background: rgba(8, 145, 178, 0.14) !important;
    color: var(--brand-primary) !important;
}

input[type="file"],
.custom-file-input,
.custom-file-label,
.file-upload-input,
.form-group input[type="file"] {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
    border-radius: var(--radius-md) !important;
}

.custom-file-label::after {
    background: var(--bg-surface-hover) !important;
    border-left: 1px solid var(--border-color) !important;
    color: var(--text-secondary) !important;
}

/* Domain selection widgets */
.domain-option,
.domain-selection-option,
.transfer-domain-option,
.use-domain-option,
.radio-container,
.form-check,
.spotlight-tld-row {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-md) !important;
    color: var(--text-secondary) !important;
}

.domain-option:hover,
.domain-selection-option:hover,
.transfer-domain-option:hover,
.use-domain-option:hover,
.radio-container:hover {
    border-color: var(--brand-primary) !important;
    background: var(--bg-surface-hover) !important;
}

.domain-option.selected,
.domain-selection-option.selected,
.radio.active,
.form-check.active {
    border-color: rgba(8, 145, 178, 0.45) !important;
    background: rgba(8, 145, 178, 0.12) !important;
}

.domain-option label,
.domain-selection label,
.radio label,
.form-check-label,
.transfer-option label {
    color: var(--text-primary) !important;
}

#order-standard_cart .domain-selection-options {
    margin: 15px 0 !important;
}

#order-standard_cart .domain-selection-options .option {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-md) !important;
    color: var(--text-primary) !important;
    margin-bottom: 0.65rem !important;
    padding: 0.85rem 1rem !important;
}

#order-standard_cart .domain-selection-options .option:hover {
    background: var(--bg-surface-hover) !important;
    border-color: var(--brand-primary) !important;
}

#order-standard_cart .domain-selection-options .option-selected {
    background: rgba(8, 145, 178, 0.12) !important;
    border-color: rgba(8, 145, 178, 0.42) !important;
}

#order-standard_cart .domain-selection-options .option label,
#order-standard_cart .domain-selection-options .option .radio-inline,
#order-standard_cart .domain-selection-options .option .checkbox-inline,
#order-standard_cart .domains-row .form-control-static,
#order-standard_cart .domains-row p.form-control-static {
    color: var(--text-primary) !important;
}

#order-standard_cart .domain-input-group {
    margin: 0.9rem 0 0.35rem !important;
    padding: 0.15rem 0 !important;
}

#order-standard_cart .domain-input-group .input-group,
#order-standard_cart .domain-input-group .form-control,
#order-standard_cart .domain-input-group select.form-control,
#order-standard_cart .domain-input-group .input-group-addon,
#order-standard_cart .domain-input-group .input-group-text {
    background: var(--bg-input) !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
}

#order-standard_cart .domain-checker-container,
#order-standard_cart .domain-checker-bg,
#order-standard_cart .domain-checker-container .input-group-box {
    background: var(--bg-card) !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
}

#order-standard_cart .domain-checker-container .input-group-box {
    box-shadow: none !important;
}

[data-theme="dark"] #order-standard_cart .domain-selection-options .option,
html[data-theme="dark"] #order-standard_cart .domain-selection-options .option,
body.theme-dark #order-standard_cart .domain-selection-options .option {
    background: #111827 !important;
    border-color: #1f2937 !important;
}

[data-theme="dark"] #order-standard_cart .domain-selection-options .option-selected,
html[data-theme="dark"] #order-standard_cart .domain-selection-options .option-selected,
body.theme-dark #order-standard_cart .domain-selection-options .option-selected {
    background: rgba(8, 145, 178, 0.14) !important;
    border-color: rgba(34, 211, 238, 0.35) !important;
}

[data-theme="dark"] #order-standard_cart .domain-selection-options .option label,
[data-theme="dark"] #order-standard_cart .domain-selection-options .option .radio-inline,
[data-theme="dark"] #order-standard_cart .domain-selection-options .option .checkbox-inline,
[data-theme="dark"] #order-standard_cart .domains-row .form-control-static,
[data-theme="dark"] #order-standard_cart .domains-row p.form-control-static,
html[data-theme="dark"] #order-standard_cart .domain-selection-options .option label,
html[data-theme="dark"] #order-standard_cart .domain-selection-options .option .radio-inline,
html[data-theme="dark"] #order-standard_cart .domain-selection-options .option .checkbox-inline,
html[data-theme="dark"] #order-standard_cart .domains-row .form-control-static,
html[data-theme="dark"] #order-standard_cart .domains-row p.form-control-static,
body.theme-dark #order-standard_cart .domain-selection-options .option label,
body.theme-dark #order-standard_cart .domains-row p.form-control-static {
    color: #f1f5f9 !important;
}

[data-theme="dark"] #order-standard_cart .domain-input-group,
[data-theme="dark"] #order-standard_cart .domain-input-group .row,
[data-theme="dark"] #order-standard_cart .domain-input-group .col-9,
[data-theme="dark"] #order-standard_cart .domain-input-group .col-3,
[data-theme="dark"] #order-standard_cart .domain-input-group .col-xs-9,
[data-theme="dark"] #order-standard_cart .domain-input-group .col-xs-3,
html[data-theme="dark"] #order-standard_cart .domain-input-group,
html[data-theme="dark"] #order-standard_cart .domain-input-group .row,
html[data-theme="dark"] #order-standard_cart .domain-input-group .col-9,
html[data-theme="dark"] #order-standard_cart .domain-input-group .col-3,
html[data-theme="dark"] #order-standard_cart .domain-input-group .col-xs-9,
html[data-theme="dark"] #order-standard_cart .domain-input-group .col-xs-3,
body.theme-dark #order-standard_cart .domain-input-group,
body.theme-dark #order-standard_cart .domain-input-group .row,
body.theme-dark #order-standard_cart .domain-input-group .col-9,
body.theme-dark #order-standard_cart .domain-input-group .col-3 {
    background: transparent !important;
}

[data-theme="dark"] #order-standard_cart .domain-checker-container,
[data-theme="dark"] #order-standard_cart .domain-checker-bg,
[data-theme="dark"] #order-standard_cart .domain-checker-container .input-group-box,
html[data-theme="dark"] #order-standard_cart .domain-checker-container,
html[data-theme="dark"] #order-standard_cart .domain-checker-bg,
html[data-theme="dark"] #order-standard_cart .domain-checker-container .input-group-box,
body.theme-dark #order-standard_cart .domain-checker-container,
body.theme-dark #order-standard_cart .domain-checker-bg,
body.theme-dark #order-standard_cart .domain-checker-container .input-group-box {
    background: #111827 !important;
    border-color: #1f2937 !important;
    background-image: none !important;
    box-shadow: none !important;
}

[data-theme="dark"] #order-standard_cart .domain-input-group .input-group,
[data-theme="dark"] #order-standard_cart .domain-input-group .form-control,
[data-theme="dark"] #order-standard_cart .domain-input-group select.form-control,
[data-theme="dark"] #order-standard_cart .domain-input-group .input-group-addon,
[data-theme="dark"] #order-standard_cart .domain-input-group .input-group-text,
html[data-theme="dark"] #order-standard_cart .domain-input-group .input-group,
html[data-theme="dark"] #order-standard_cart .domain-input-group .form-control,
html[data-theme="dark"] #order-standard_cart .domain-input-group select.form-control,
html[data-theme="dark"] #order-standard_cart .domain-input-group .input-group-addon,
html[data-theme="dark"] #order-standard_cart .domain-input-group .input-group-text,
body.theme-dark #order-standard_cart .domain-input-group .input-group,
body.theme-dark #order-standard_cart .domain-input-group .form-control,
body.theme-dark #order-standard_cart .domain-input-group select.form-control,
body.theme-dark #order-standard_cart .domain-input-group .input-group-addon,
body.theme-dark #order-standard_cart .domain-input-group .input-group-text {
    background: #1f2937 !important;
    border-color: #374151 !important;
    color: #f1f5f9 !important;
}

[data-theme="dark"] #order-standard_cart .domain-input-group .form-control::placeholder,
html[data-theme="dark"] #order-standard_cart .domain-input-group .form-control::placeholder,
body.theme-dark #order-standard_cart .domain-input-group .form-control::placeholder {
    color: #94a3b8 !important;
}

/* Domain pricing category pills */
#order-standard_cart .tld-filters {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.65rem !important;
    margin: 1rem 0 1.35rem !important;
}

#order-standard_cart .tld-filters a.badge,
#order-standard_cart .tld-filters a.badge.badge-secondary,
#order-standard_cart .tld-filters a.badge.badge-info {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 2.35rem !important;
    padding: 0.55rem 0.95rem !important;
    border: 1px solid rgba(8, 145, 178, 0.22) !important;
    border-radius: 999px !important;
    background: #e0f2fe !important;
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
    text-decoration: none !important;
    font-size: 0.92rem !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    box-shadow: none !important;
}

#order-standard_cart .tld-filters a.badge:hover,
#order-standard_cart .tld-filters a.badge:focus,
#order-standard_cart .tld-filters a.badge.badge-secondary:hover,
#order-standard_cart .tld-filters a.badge.badge-secondary:focus,
#order-standard_cart .tld-filters a.badge.badge-info:hover,
#order-standard_cart .tld-filters a.badge.badge-info:focus {
    background: #bae6fd !important;
    border-color: rgba(8, 145, 178, 0.35) !important;
    color: #082f49 !important;
    -webkit-text-fill-color: #082f49 !important;
}

[data-theme="dark"] #order-standard_cart .tld-filters a.badge,
[data-theme="dark"] #order-standard_cart .tld-filters a.badge.badge-secondary,
[data-theme="dark"] #order-standard_cart .tld-filters a.badge.badge-info,
html[data-theme="dark"] #order-standard_cart .tld-filters a.badge,
html[data-theme="dark"] #order-standard_cart .tld-filters a.badge.badge-secondary,
html[data-theme="dark"] #order-standard_cart .tld-filters a.badge.badge-info,
body.theme-dark #order-standard_cart .tld-filters a.badge,
body.theme-dark #order-standard_cart .tld-filters a.badge.badge-secondary,
body.theme-dark #order-standard_cart .tld-filters a.badge.badge-info {
    background: rgba(8, 145, 178, 0.18) !important;
    border-color: rgba(34, 211, 238, 0.28) !important;
    color: #e0f2fe !important;
    -webkit-text-fill-color: #e0f2fe !important;
}

[data-theme="dark"] #order-standard_cart .tld-filters a.badge:hover,
[data-theme="dark"] #order-standard_cart .tld-filters a.badge:focus,
[data-theme="dark"] #order-standard_cart .tld-filters a.badge.badge-secondary:hover,
[data-theme="dark"] #order-standard_cart .tld-filters a.badge.badge-secondary:focus,
[data-theme="dark"] #order-standard_cart .tld-filters a.badge.badge-info:hover,
[data-theme="dark"] #order-standard_cart .tld-filters a.badge.badge-info:focus,
html[data-theme="dark"] #order-standard_cart .tld-filters a.badge:hover,
html[data-theme="dark"] #order-standard_cart .tld-filters a.badge:focus,
html[data-theme="dark"] #order-standard_cart .tld-filters a.badge.badge-secondary:hover,
html[data-theme="dark"] #order-standard_cart .tld-filters a.badge.badge-secondary:focus,
html[data-theme="dark"] #order-standard_cart .tld-filters a.badge.badge-info:hover,
html[data-theme="dark"] #order-standard_cart .tld-filters a.badge.badge-info:focus,
body.theme-dark #order-standard_cart .tld-filters a.badge:hover,
body.theme-dark #order-standard_cart .tld-filters a.badge:focus,
body.theme-dark #order-standard_cart .tld-filters a.badge.badge-secondary:hover,
body.theme-dark #order-standard_cart .tld-filters a.badge.badge-secondary:focus,
body.theme-dark #order-standard_cart .tld-filters a.badge.badge-info:hover,
body.theme-dark #order-standard_cart .tld-filters a.badge.badge-info:focus {
    background: rgba(8, 145, 178, 0.28) !important;
    border-color: rgba(34, 211, 238, 0.42) !important;
    color: #f8fafc !important;
    -webkit-text-fill-color: #f8fafc !important;
}

/* Alerts */
.alert {
    border-radius: var(--radius-md) !important;
    border: 1px solid transparent !important;
}

.alert-success {
    background: rgba(16, 185, 129, 0.14) !important;
    border-color: rgba(16, 185, 129, 0.38) !important;
}

.alert-danger,
.alert-error {
    background: rgba(239, 68, 68, 0.14) !important;
    border-color: rgba(239, 68, 68, 0.38) !important;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.2) !important;
    border-color: rgba(245, 158, 11, 0.45) !important;
}

.alert-info {
    background: rgba(8, 145, 178, 0.14) !important;
    border-color: rgba(8, 145, 178, 0.38) !important;
}

/* Checkout / pay methods */
.payment-methods,
.paymethod-info,
.existing-paymethods,
.payment-details,
.gateway-container,
.card-info-box,
.billing-details,
.login-box,
.register-box {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-lg) !important;
}

.payment-methods .nav-tabs,
.checkout-tabs .nav-tabs {
    border-bottom: 1px solid var(--border-color) !important;
}

.payment-methods .nav-tabs > li > a,
.checkout-tabs .nav-tabs > li > a {
    border: 0 !important;
    color: var(--text-secondary) !important;
    border-radius: var(--radius-md) !important;
}

.payment-methods .nav-tabs > li.active > a,
.checkout-tabs .nav-tabs > li.active > a {
    background: rgba(8, 145, 178, 0.14) !important;
    color: var(--brand-primary) !important;
}

/* Checkout account selection + section labels */
#order-standard_cart .already-registered p,
#order-standard_cart .already-registered .text-sm-left,
#order-standard_cart .already-registered .overflow-hidden,
#order-standard_cart .form-group label,
#order-standard_cart .checkbox-inline,
#order-standard_cart .radio-inline {
    color: var(--text-primary) !important;
}

#order-standard_cart .form-group .field-icon,
#order-standard_cart .already-registered .btn-info,
#order-standard_cart .already-registered .btn-warning {
    color: inherit !important;
}

#order-standard_cart .prepend-icon {
    position: relative !important;
}

#order-standard_cart .prepend-icon .field,
#order-standard_cart .prepend-icon .form-control {
    padding-left: 3rem !important;
}

#order-standard_cart .prepend-icon .field-icon {
    left: 0 !important;
    top: 0 !important;
    width: 44px !important;
    min-width: 44px !important;
    height: 46px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    z-index: 4 !important;
    pointer-events: none !important;
}

#order-standard_cart .prepend-icon .field-icon i {
    font-size: 0.95rem !important;
    color: var(--text-muted) !important;
}

#order-standard_cart .sub-heading {
    border-top: 1px solid var(--border-color) !important;
}

#order-standard_cart .sub-heading span,
#order-standard_cart .sub-heading-borderless span,
#order-standard_cart .sub-heading .primary-bg-color,
#order-standard_cart .sub-heading-borderless .primary-bg-color {
    background: var(--bg-body) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-md) !important;
    color: var(--text-primary) !important;
    font-weight: 600 !important;
    padding: 0.25rem 1rem !important;
}

#order-standard_cart .account-select-container {
    margin: 0 !important;
    border: 0 !important;
}

#order-standard_cart .account-select-container > [class*="col-"] {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

#order-standard_cart .account-select-container div.account {
    background: var(--bg-surface-hover) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
    padding: 0.95rem 1rem !important;
}

#order-standard_cart .account-select-container div.account:not(.border-bottom) {
    border-bottom: 0 !important;
}

#order-standard_cart .account-select-container div.account.active {
    background: var(--bg-card) !important;
    border-color: rgba(8, 145, 178, 0.45) !important;
    box-shadow: inset 0 0 0 1px rgba(8, 145, 178, 0.2) !important;
}

#order-standard_cart .account-select-container label,
#order-standard_cart .account-select-container .address,
#order-standard_cart .account-select-container strong {
    color: var(--text-primary) !important;
}

#order-standard_cart .account-select-container .small,
#order-standard_cart .account-select-container .small * {
    color: var(--text-secondary) !important;
}

#order-standard_cart .account-select-container .label-default {
    background: #475569 !important;
    color: #fff !important;
}

#order-standard_cart .account-select-container .label-info {
    background: var(--brand-primary) !important;
    color: #fff !important;
}

/* Replace iCheck sprite controls with theme-aware boxes so terms/radios stay visible */
#order-standard_cart .icheckbox_square-blue,
#order-standard_cart .iradio_square-blue {
    width: 20px !important;
    height: 20px !important;
    background: var(--bg-card) !important;
    background-image: none !important;
    border: 1px solid var(--border-color-strong) !important;
    box-shadow: none !important;
    position: relative !important;
    vertical-align: middle !important;
}

#order-standard_cart .icheckbox_square-blue {
    border-radius: 6px !important;
}

#order-standard_cart .iradio_square-blue {
    border-radius: 999px !important;
}

#order-standard_cart .icheckbox_square-blue.hover,
#order-standard_cart .iradio_square-blue.hover,
#order-standard_cart .icheckbox_square-blue.checked,
#order-standard_cart .iradio_square-blue.checked {
    border-color: var(--brand-primary) !important;
}

#order-standard_cart .icheckbox_square-blue.checked,
#order-standard_cart .iradio_square-blue.checked {
    background: rgba(8, 145, 178, 0.14) !important;
}

#order-standard_cart .icheckbox_square-blue::after,
#order-standard_cart .iradio_square-blue::after {
    content: "" !important;
    position: absolute !important;
    opacity: 0 !important;
}

#order-standard_cart .icheckbox_square-blue.checked::after {
    opacity: 1 !important;
    left: 6px !important;
    top: 2px !important;
    width: 5px !important;
    height: 10px !important;
    border: solid var(--brand-primary) !important;
    border-width: 0 2px 2px 0 !important;
    transform: rotate(45deg) !important;
}

#order-standard_cart .iradio_square-blue.checked::after {
    opacity: 1 !important;
    left: 5px !important;
    top: 5px !important;
    width: 8px !important;
    height: 8px !important;
    border-radius: 999px !important;
    background: var(--brand-primary) !important;
}

#order-standard_cart label .iradio_square-blue,
#order-standard_cart label .icheckbox_square-blue {
    margin-right: 0.45rem !important;
}

#order-standard_cart .checkbox-inline a {
    color: var(--brand-primary) !important;
}

/* Utility */
.text-primary,
.text-info {
    color: var(--brand-primary) !important;
}

.text-success {
    color: var(--brand-success) !important;
}

.text-warning {
    color: var(--brand-warning) !important;
}

.text-danger {
    color: var(--brand-danger) !important;
}

.bg-light,
.bg-white,
.white,
.white-bg,
[style*="background: white"],
[style*="background:#fff"],
[style*="background: #fff"] {
    background: var(--bg-card) !important;
    color: var(--text-primary) !important;
}

/* Responsive */
@media (max-width: 991px) {
    .cart-sidebar {
        margin-bottom: 1rem;
    }

    .products .product,
    #products .product {
        margin-bottom: 1rem;
    }

    .view-cart-items-header .row > div,
    .view-cart-items .row > div {
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 767px) {
    .header-lined h1,
    .header-lined h2,
    .font-size-36 {
        font-size: 1.7rem !important;
    }

    .product-desc,
    .products .product header,
    .product footer,
    .view-cart-items .item {
        padding-left: 0.9rem !important;
        padding-right: 0.9rem !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
    }
}
