/* Wexnix Cart - mdmhost-style 4-Step Flow */
:root {
    --mx-green: #01be69;
    --mx-green-dark: #00a85d;
    --mx-check: #01be69;
    --mx-ink: #0b1728;
    --mx-body: #33435c;
    --mx-muted: #647187;
    --mx-line: #dce6f2;
    --mx-soft: #f4f8fd;
    --mx-surface: #ffffff;
    --mx-orange: #ff6b0b;
}

/* Outer Cart Wrapper */
#order-standard_cart {
    background: var(--mx-soft);
    color: var(--mx-ink);
    padding: 28px 22px 48px;
    border-radius: 16px;
    margin-bottom: 30px;
}

/* Header + 4-Step Stepper */
.mx-cartpage__head {
    margin-bottom: 8px;
}
.mx-cartpage__head h1 {
    color: var(--mx-ink);
    letter-spacing: -0.5px;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}
.mx-cartpage__head p {
    color: var(--mx-muted);
    margin: 6px 0 0;
    font-size: 14px;
}

.mx-stepper {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 22px 0 26px !important;
}
.mx-stepper__step {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
}
.mx-stepper__step:not(:last-child):after {
    content: "";
    background: var(--mx-line);
    border-radius: 2px;
    height: 2px;
    position: absolute;
    top: 13px;
    left: calc(50% + 18px);
    right: calc(18px - 50%);
}
.mx-stepper__step[data-state="done"]:after {
    background: var(--mx-green);
}
.mx-stepper__dot {
    z-index: 1;
    border: 2px solid var(--mx-line);
    background: var(--mx-surface);
    width: 28px;
    height: 28px;
    color: var(--mx-muted);
    border-radius: 999px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 13px;
    font-weight: 700;
    position: relative;
}
.mx-stepper__step[data-state="done"] .mx-stepper__dot {
    border-color: var(--mx-green);
    background: var(--mx-green);
    color: #fff;
}
.mx-stepper__step[data-state="active"] .mx-stepper__dot {
    border-color: var(--mx-green);
    color: var(--mx-green);
    box-shadow: 0 0 0 4px rgba(1, 190, 105, 0.12);
}
.mx-stepper__label {
    color: var(--mx-muted);
    font-size: 13px;
    font-weight: 500;
}
.mx-stepper__step[data-state="active"] .mx-stepper__label,
.mx-stepper__step[data-state="done"] .mx-stepper__label {
    color: var(--mx-ink);
    font-weight: 600;
}

/* Cards & Product Grid */
#order-standard_cart .header-lined h1 {
    color: var(--mx-ink);
    font-weight: 700;
    font-size: 24px;
    border-bottom: 1px solid var(--mx-line);
    padding-bottom: 10px;
}

#order-standard_cart .products .product {
    background: var(--mx-surface);
    border: 1px solid var(--mx-line);
    border-radius: 14px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(17, 24, 39, 0.04);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
#order-standard_cart .products .product:hover {
    transform: translateY(-2px);
    border-color: var(--mx-green);
    box-shadow: 0 10px 24px rgba(1, 190, 105, 0.1);
}
#order-standard_cart .products .product header {
    background: var(--mx-surface);
    border-bottom: 1px solid var(--mx-line);
    padding: 18px 20px 14px;
    color: var(--mx-ink);
}
#order-standard_cart .products .product header span {
    font-weight: 700;
    font-size: 16px;
    color: var(--mx-ink);
}
#order-standard_cart .products .product .product-desc {
    padding: 16px 20px 10px;
    color: var(--mx-body);
    font-size: 13.5px;
}
#order-standard_cart .products .product .product-desc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
#order-standard_cart .products .product .product-desc ul li {
    padding: 6px 0 6px 22px;
    border-bottom: 1px dashed #f1f5f9;
    position: relative;
}
#order-standard_cart .products .product .product-desc ul li:last-child {
    border-bottom: none;
}
#order-standard_cart .products .product .product-desc ul li:before {
    content: "✓";
    color: var(--mx-check);
    font-weight: 700;
    position: absolute;
    left: 0;
    top: 6px;
}
#order-standard_cart .products .product footer {
    background: #f9fafb;
    border-top: 1px solid var(--mx-line);
    padding: 16px 20px;
}
#order-standard_cart .products .product footer .product-pricing {
    margin-bottom: 10px;
}
#order-standard_cart .products .product footer .price {
    color: var(--mx-ink);
    font-size: 22px;
    font-weight: 700;
}

/* Primary Buttons */
#order-standard_cart .btn-success,
#order-standard_cart .btn-primary,
#order-standard_cart .btn-order-now,
#order-standard_cart #btnCompleteOrder {
    background-color: var(--mx-green) !important;
    border-color: var(--mx-green) !important;
    color: #ffffff !important;
    font-weight: 600;
    border-radius: 10px;
    padding: 10px 18px;
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
}
#order-standard_cart .btn-success:hover,
#order-standard_cart .btn-primary:hover,
#order-standard_cart .btn-order-now:hover,
#order-standard_cart #btnCompleteOrder:hover {
    background-color: var(--mx-green-dark) !important;
    border-color: var(--mx-green-dark) !important;
    box-shadow: 0 4px 12px rgba(1, 190, 105, 0.25);
}

/* 2-Column mdmhost Layout on Configure / Checkout / Complete */
#order-standard_cart.mx-step-2 .cart-sidebar,
#order-standard_cart.mx-step-3 .cart-sidebar,
#order-standard_cart.mx-step-4 .cart-sidebar {
    display: none;
}
#order-standard_cart.mx-step-2 .cart-body,
#order-standard_cart.mx-step-3 .cart-body,
#order-standard_cart.mx-step-4 .cart-body {
    width: 100%;
    float: none;
}
#order-standard_cart .header-lined {
    display: none;
}

/* Order Summary & Cart Item Cards (mdmhost style) */
#order-standard_cart .view-cart-items-header {
    display: none;
}
#order-standard_cart .view-cart-items {
    border: none;
    background: transparent;
    padding: 0;
    margin-bottom: 12px;
}
#order-standard_cart .view-cart-items .item {
    background: var(--mx-surface);
    border: 1px solid var(--mx-line);
    border-radius: 14px;
    padding: 18px 20px;
    margin-bottom: 14px;
    box-shadow: 0 2px 10px rgba(17, 24, 39, 0.04);
}
#order-standard_cart .view-cart-items .item:nth-child(even) {
    background: var(--mx-surface);
}
#order-standard_cart .view-cart-items .item-title {
    color: var(--mx-ink);
    font-weight: 700;
    font-size: 16px;
}
#order-standard_cart .view-cart-items .item-group {
    color: var(--mx-muted);
    font-size: 13px;
}
#order-standard_cart .view-cart-items .item-domain {
    color: var(--mx-green-dark);
    font-weight: 500;
    font-size: 13.5px;
}
#order-standard_cart .view-cart-items .item-price span {
    color: var(--mx-ink);
    font-weight: 700;
    font-size: 18px;
}
#order-standard_cart .view-cart-items .item-price .cycle {
    color: var(--mx-muted);
    font-weight: 400;
    font-size: 12.5px;
}
#order-standard_cart .empty-cart .btn {
    background: var(--mx-surface);
    border: 1px solid var(--mx-line);
    color: var(--mx-muted);
    border-radius: 8px;
    font-size: 12.5px;
    margin-top: 4px;
}
#order-standard_cart .empty-cart .btn:hover {
    border-color: #ef4444;
    color: #ef4444;
    background: #fef2f2;
}
#order-standard_cart .view-cart-tabs .nav-tabs {
    border-bottom-color: var(--mx-line);
}
#order-standard_cart .view-cart-tabs .nav-tabs > li.active > a {
    border-color: var(--mx-line) var(--mx-line) transparent;
    border-radius: 10px 10px 0 0;
    color: var(--mx-ink);
    font-weight: 600;
}
#order-standard_cart .view-cart-tabs .tab-content {
    background: var(--mx-surface);
    border: 1px solid var(--mx-line);
    border-top: none;
    border-radius: 0 10px 10px 10px;
    padding: 16px;
}
#order-standard_cart .order-summary {
    background: var(--mx-surface);
    border: 1px solid var(--mx-line);
    border-radius: 14px;
    color: var(--mx-ink);
    box-shadow: 0 4px 16px rgba(17, 24, 39, 0.05);
    padding-bottom: 12px;
}
#order-standard_cart .order-summary h2 {
    background: var(--mx-surface);
    color: var(--mx-ink);
    border-bottom: 1px solid var(--mx-line);
    border-radius: 14px 14px 0 0;
    font-size: 19px;
    font-weight: 700;
    padding: 16px 20px 12px;
    text-align: left;
}
#order-standard_cart .summary-container {
    background: var(--mx-surface);
    color: var(--mx-body);
    padding: 14px 20px;
}
#order-standard_cart .total-due-today {
    border-top: 1px solid var(--mx-line);
    padding-top: 14px;
    margin-top: 10px;
}
#order-standard_cart .total-due-today .amt {
    color: var(--mx-ink);
    font-weight: 800;
    font-size: 24px;
}
/* Configure & Checkout Left Card + Segmented Account Toggle (mdmhost style) */
#order-standard_cart.mx-step-2 .secondary-cart-body,
#order-standard_cart.mx-step-3 .secondary-cart-body {
    background: var(--mx-surface);
    border: 1px solid var(--mx-line);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 10px rgba(17, 24, 39, 0.04);
}
#order-standard_cart.mx-step-2 .product-info {
    background: #f8fafc;
    border: 1px solid var(--mx-line);
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 20px;
}
#order-standard_cart.mx-step-2 .product-info .product-title {
    color: var(--mx-ink);
    font-weight: 700;
    font-size: 18px;
    margin: 0 0 4px;
}
#order-standard_cart.mx-step-2 .field-container {
    background: var(--mx-surface);
    border: 1px solid var(--mx-line);
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 18px;
}
#order-standard_cart .already-registered {
    background: transparent;
    border: none;
    padding: 0;
    margin-bottom: 18px;
}
#order-standard_cart .mx-seg {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #f1f5f9;
    border: 1px solid var(--mx-line);
    border-radius: 12px;
    padding: 4px;
    gap: 4px;
    margin-bottom: 18px;
}
#order-standard_cart .mx-seg__btn {
    border: none;
    background: transparent;
    color: var(--mx-muted);
    font-weight: 600;
    font-size: 14px;
    padding: 10px 14px;
    border-radius: 9px;
    cursor: pointer;
    transition: all 0.15s ease;
}
#order-standard_cart .mx-seg__btn.is-active {
    background: var(--mx-surface);
    color: var(--mx-ink);
    box-shadow: 0 1px 4px rgba(17, 24, 39, 0.08);
}
#order-standard_cart .sub-heading {
    height: auto;
    border-bottom: 1px solid var(--mx-line);
    text-align: left;
    margin: 22px 0 16px;
    padding-bottom: 8px;
}
#order-standard_cart .sub-heading span,
#order-standard_cart .sub-heading .primary-bg-color {
    background: transparent !important;
    color: var(--mx-ink) !important;
    font-size: 16px;
    font-weight: 700;
    padding: 0;
}
#order-standard_cart #frmCheckout .form-control,
#order-standard_cart #frmCheckout select.form-control {
    height: 42px;
    border-radius: 10px;
    border-color: var(--mx-line);
}
#order-standard_cart #frmCheckout .prepend-icon .field-icon {
    top: 4px;
    line-height: 34px;
}
#order-standard_cart .mx-summary-cta {
    background-color: var(--mx-orange) !important;
    border-color: var(--mx-orange) !important;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 15px;
    border-radius: 10px;
    padding: 12px 18px;
    width: 100%;
    margin-top: 10px;
}
#order-standard_cart .mx-summary-cta:hover {
    background-color: #e85f06 !important;
    border-color: #e85f06 !important;
}
#order-standard_cart .mx-edit-cart-link {
    color: var(--mx-green-dark);
    font-weight: 600;
    font-size: 13.5px;
    display: inline-block;
    margin: 10px 0 6px;
}
.mx-ctrust.mx-ctrust--vertical {
    grid-template-columns: 1fr;
    margin-top: 16px !important;
}

/* Domain Register Hero inside wexnix_cart */
#order-standard_cart .hd-hero--cart {
    position: relative;
    background: radial-gradient(65% 110% at 80% 45%, rgba(0, 102, 255, 0.34) 0%, transparent 65%),
                linear-gradient(135deg, #020b32 0%, #051b5c 52%, #031247 100%);
    border-radius: 16px;
    padding: 40px 24px 36px;
    margin-bottom: 24px;
    overflow: hidden;
}
#order-standard_cart .hd-hero--cart .hd-hero-arc {
    position: absolute;
    left: -10%;
    right: -10%;
    bottom: -48px;
    height: 85px;
    border-top: 2px solid rgba(56, 189, 248, 0.55);
    border-radius: 50% 50% 0 0;
    box-shadow: 0 -8px 30px rgba(0, 102, 255, 0.45);
    pointer-events: none;
}
#order-standard_cart .hd-hero--cart .hd-hero-inner {
    position: relative;
    z-index: 2;
}
#order-standard_cart .hd-hero--cart .hd-hero-title {
    color: #ffffff;
    font-weight: 700;
    font-size: 28px;
    margin: 0 0 8px;
}
#order-standard_cart .hd-hero--cart .hd-hero-title span {
    color: #38bdf8;
}
#order-standard_cart .hd-hero--cart .hd-hero-sub {
    color: #cbd5e1;
    font-size: 14.5px;
    margin: 0 0 22px;
}
#order-standard_cart .hd-hero--cart .hd-search-form {
    max-width: 720px;
    margin: 0 auto;
}
#order-standard_cart .hd-hero--cart .hd-search-box {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 14px;
    padding: 6px 8px 6px 16px;
    box-shadow: 0 18px 42px rgba(2, 6, 23, 0.42);
    gap: 8px;
}
#order-standard_cart .hd-hero--cart .hd-search-icon {
    color: #94a3b8;
    font-size: 16px;
}
#order-standard_cart .hd-hero--cart .hd-search-input {
    flex: 1;
    border: none !important;
    box-shadow: none !important;
    height: 44px !important;
    font-size: 15px !important;
    color: #0b1728 !important;
    background: transparent !important;
}
#order-standard_cart .hd-hero--cart .hd-search-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}
#order-standard_cart .hd-hero--cart .hd-btn-search {
    background-color: #0066ff !important;
    border-color: #0066ff !important;
    color: #ffffff !important;
    height: 42px;
    padding: 0 20px;
    border-radius: 10px;
    font-weight: 600;
}
#order-standard_cart .hd-hero--cart .hd-btn-transfer {
    background-color: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0b1728 !important;
    height: 42px;
    padding: 0 16px;
    border-radius: 10px;
    font-weight: 600;
}
#order-standard_cart .hd-hero--cart .hd-tld-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
}
#order-standard_cart .hd-hero--cart .hd-tld-pill {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #e2e8f0;
    font-size: 12.5px;
    font-weight: 600;
    padding: 5px 13px;
    border-radius: 999px;
    cursor: pointer;
}
#order-standard_cart .hd-hero--cart .hd-tld-pill.is-active,
#order-standard_cart .hd-hero--cart .hd-tld-pill:hover {
    background: #0066ff;
    border-color: #0066ff;
    color: #ffffff;
}
#order-standard_cart .hd-hero--cart .hd-tld-viewall {
    color: #cbd5e1;
    font-size: 12.5px;
    font-weight: 600;
    margin-left: 6px;
}

@media (min-width: 992px) {
    #order-standard_cart .cart-body > .row {
        display: flex;
        align-items: flex-start;
        gap: 24px;
        margin-left: 0;
        margin-right: 0;
    }
    #order-standard_cart .cart-body > .row::before,
    #order-standard_cart .cart-body > .row::after {
        display: none;
    }
    #order-standard_cart .secondary-cart-body {
        flex: 1 1 0%;
        min-width: 0;
        width: auto !important;
        float: none !important;
    }
    #order-standard_cart .secondary-cart-sidebar {
        flex: 0 0 340px;
        width: 340px !important;
        float: none !important;
        padding-left: 0;
        padding-right: 0;
        position: sticky;
        top: 20px;
    }
}

/* Sidebar Categories */
#order-standard_cart .categories-collapsed,
#order-standard_cart .panel-sidebar {
    border-radius: 12px;
    border-color: var(--mx-line);
    overflow: hidden;
}
#order-standard_cart .panel-sidebar .panel-heading {
    background: var(--mx-surface);
    border-bottom: 1px solid var(--mx-line);
    color: var(--mx-ink);
    font-weight: 700;
}
#order-standard_cart .panel-sidebar a.list-group-item.active,
#order-standard_cart .panel-sidebar a.list-group-item.active:hover {
    background-color: var(--mx-green);
    border-color: var(--mx-green);
    color: #fff;
}

/* Form Controls */
#order-standard_cart .form-control,
#order-standard_cart select.form-control {
    border-radius: 10px;
    border-color: var(--mx-line);
    box-shadow: none;
}
#order-standard_cart .form-control:focus {
    border-color: var(--mx-green);
    box-shadow: 0 0 0 3px rgba(1, 190, 105, 0.14);
}

/* Trust Box */
.mx-ctrust {
    border: 1px dashed var(--mx-line);
    background: var(--mx-surface);
    border-radius: 12px;
    gap: 12px;
    padding: 16px 18px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    list-style: none;
    margin: 22px 0 0 !important;
}
.mx-ctrust li {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-left: 24px;
    font-size: 13px;
    line-height: 1.45;
    position: relative;
}
.mx-ctrust li:before {
    content: "✓";
    color: var(--mx-check);
    font-weight: 700;
    position: absolute;
    top: 0;
    left: 0;
}
.mx-ctrust strong {
    color: var(--mx-ink);
    font-size: 13.5px;
}
.mx-ctrust span {
    color: var(--mx-muted);
    font-size: 12.5px;
}

@media (max-width: 767px) {
    #order-standard_cart {
        padding: 18px 14px 36px;
    }
    .mx-cartpage__head h1 {
        font-size: 24px;
    }
    .mx-stepper__label {
        font-size: 11px;
    }
    .mx-stepper__step:not(:last-child):after {
        left: calc(50% + 16px);
        right: calc(16px - 50%);
    }
    .mx-ctrust {
        grid-template-columns: 1fr;
    }
}
