/* Marracloud / Adya Host client area and cart layout fixes. Scoped to avoid header/menu/WhatsApp changes. */
:root {
    --mc-cart-blue: #0f5fd6;
    --mc-cart-blue-dark: #0b3f91;
    --mc-cart-text: #0f172a;
    --mc-cart-muted: #64748b;
    --mc-cart-border: #e5e7eb;
    --mc-cart-soft: #f8fafc;
    --mc-cart-shadow: 0 10px 30px rgba(15, 23, 42, .08);
    --mc-cart-shadow-sm: 0 8px 24px rgba(15, 23, 42, .06);
}

body.is-shopping-cart,
body.tpl-clientareahome,
body.tpl-clientareaproducts,
body.tpl-clientareaproductdetails,
body.tpl-clientareainvoices,
body.tpl-supportticketslist,
body.tpl-supportticketsubmit-stepone,
body.tpl-supportticketsubmit-steptwo {
    background: #f5f7fb;
}

body.is-shopping-cart .main-content,
body.is-shopping-cart .content-area,
body.is-shopping-cart section#main-body,
body.is-shopping-cart .clientarea-wrapper,
body[class*="tpl-clientarea"] .main-content,
body[class*="tpl-clientarea"] section#main-body {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

#order-standard_cart.whmcs-cart-wrapper {
    width: 100%;
    max-width: 1280px;
    margin: 28px auto 56px !important;
    padding: 0 24px;
    color: var(--mc-cart-text);
}

#order-standard_cart.whmcs-cart-wrapper > .row {
    display: grid;
    grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
    margin-left: 0;
    margin-right: 0;
}

#order-standard_cart.whmcs-cart-wrapper .cart-sidebar,
#order-standard_cart.whmcs-cart-wrapper .cart-body {
    float: none !important;
    width: auto !important;
    max-width: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    min-width: 0;
}

#order-standard_cart.whmcs-cart-wrapper .cart-body > .row,
#order-standard_cart.whmcs-cart-wrapper form > .row,
#order-standard_cart.whmcs-cart-wrapper .secondary-cart-body > .row,
#order-standard_cart.whmcs-cart-wrapper .product-configurable-options > .row {
    margin-left: 0;
    margin-right: 0;
}

#order-standard_cart.cart-configure-layout form > .row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
    gap: 28px;
    align-items: start;
}

#order-standard_cart.cart-view-layout .cart-body > .row,
#order-standard_cart.cart-checkout-layout .cart-body > .row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
    gap: 28px;
    align-items: start;
}

#order-standard_cart.whmcs-cart-wrapper .secondary-cart-body,
#order-standard_cart.whmcs-cart-wrapper .secondary-cart-sidebar,
#order-standard_cart.whmcs-cart-wrapper .cart-body > .row > [class*="col-"],
#order-standard_cart.whmcs-cart-wrapper form > .row > [class*="col-"] {
    float: none !important;
    width: auto !important;
    max-width: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-top: 0 !important;
    min-width: 0;
}

#order-standard_cart.whmcs-cart-wrapper .header-lined {
    margin: 0 0 18px;
    padding: 0;
    border: 0;
}

#order-standard_cart.whmcs-cart-wrapper .header-lined h1,
#order-standard_cart.whmcs-cart-wrapper .header-lined h2,
#order-standard_cart.whmcs-cart-wrapper h2.font-size-24 {
    margin: 0;
    font-size: 28px;
    line-height: 1.25;
    font-weight: 800;
    color: var(--mc-cart-text);
    letter-spacing: 0;
}

#order-standard_cart.whmcs-cart-wrapper p {
    color: var(--mc-cart-muted);
    line-height: 1.65;
}

#order-standard_cart.whmcs-cart-wrapper .panel,
#order-standard_cart.whmcs-cart-wrapper .card,
#order-standard_cart.whmcs-cart-wrapper .product-info,
#order-standard_cart.whmcs-cart-wrapper .field-container,
#order-standard_cart.whmcs-cart-wrapper .view-cart-items,
#order-standard_cart.whmcs-cart-wrapper .view-cart-items-header,
#order-standard_cart.whmcs-cart-wrapper .order-summary,
#order-standard_cart.whmcs-cart-wrapper .summary-card,
#order-standard_cart.whmcs-cart-wrapper #orderSummary,
#order-standard_cart.whmcs-cart-wrapper .domain-selection-options,
#order-standard_cart.whmcs-cart-wrapper .sub-heading + .product-configurable-options {
    border-radius: 16px;
    border: 1px solid var(--mc-cart-border);
    background: #fff;
    box-shadow: var(--mc-cart-shadow-sm);
    margin-bottom: 24px;
}

#order-standard_cart.whmcs-cart-wrapper .product-info,
#order-standard_cart.whmcs-cart-wrapper .field-container,
#order-standard_cart.whmcs-cart-wrapper .product-configurable-options {
    padding: 24px;
}

#order-standard_cart.whmcs-cart-wrapper .product-title,
#order-standard_cart.whmcs-cart-wrapper .product-info h5 {
    font-size: 20px;
    line-height: 1.35;
    color: var(--mc-cart-text);
    font-weight: 800;
    margin: 0 0 8px;
}

#order-standard_cart.whmcs-cart-wrapper .sub-heading {
    margin: 28px 0 14px;
    padding: 0;
    border: 0;
}

#order-standard_cart.whmcs-cart-wrapper .sub-heading span {
    display: block;
    padding: 0;
    background: transparent !important;
    color: var(--mc-cart-text);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.35;
}

#order-standard_cart.whmcs-cart-wrapper .form-group {
    margin-bottom: 18px;
}

#order-standard_cart.whmcs-cart-wrapper label {
    color: #334155;
    font-weight: 700;
    margin-bottom: 7px;
}

#order-standard_cart.whmcs-cart-wrapper .form-control,
#order-standard_cart.whmcs-cart-wrapper select,
#order-standard_cart.whmcs-cart-wrapper input[type="text"],
#order-standard_cart.whmcs-cart-wrapper input[type="password"],
#order-standard_cart.whmcs-cart-wrapper input[type="email"],
#order-standard_cart.whmcs-cart-wrapper input[type="number"] {
    min-height: 44px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    box-shadow: none;
    font-size: 14px;
}

#order-standard_cart.whmcs-cart-wrapper .form-control:focus,
#order-standard_cart.whmcs-cart-wrapper select:focus,
#order-standard_cart.whmcs-cart-wrapper input:focus {
    border-color: var(--mc-cart-blue);
    box-shadow: 0 0 0 3px rgba(15, 95, 214, .12);
}

#order-standard_cart.whmcs-cart-wrapper .radio-cycle-box,
#order-standard_cart.whmcs-cart-wrapper .panel-addon,
#order-standard_cart.whmcs-cart-wrapper .item {
    border-radius: 14px;
    border: 1px solid var(--mc-cart-border);
    background: #fff;
    box-shadow: 0 6px 18px rgba(15, 23, 42, .05);
    overflow: hidden;
}

#order-standard_cart.whmcs-cart-wrapper .radio-cycle-box .radio-content {
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 16px;
}

#order-standard_cart.whmcs-cart-wrapper .product-configurable-options .col-sm-6,
#order-standard_cart.whmcs-cart-wrapper .selectBillingCycle .col-sm-6,
#order-standard_cart.whmcs-cart-wrapper .addon-products .col-sm-6,
#order-standard_cart.whmcs-cart-wrapper .field-container .col-sm-6 {
    padding-left: 8px;
    padding-right: 8px;
}

#order-standard_cart.whmcs-cart-wrapper .cart-sidebar .panel,
#order-standard_cart.whmcs-cart-wrapper .cart-sidebar .card-sidebar {
    border-radius: 16px;
    border: 1px solid rgba(15, 95, 214, .18);
    overflow: hidden;
    box-shadow: var(--mc-cart-shadow-sm);
    position: static !important;
    margin-bottom: 18px;
}

#order-standard_cart.whmcs-cart-wrapper .cart-sidebar .panel-heading,
#order-standard_cart.whmcs-cart-wrapper .cart-sidebar .card-header {
    background: linear-gradient(135deg, var(--mc-cart-blue), var(--mc-cart-blue-dark));
    color: #fff;
    border: 0;
    padding: 16px 18px;
}

#order-standard_cart.whmcs-cart-wrapper .cart-sidebar .panel-title,
#order-standard_cart.whmcs-cart-wrapper .cart-sidebar .panel-title i {
    color: #fff;
    font-size: 15px;
    font-weight: 800;
}

#order-standard_cart.whmcs-cart-wrapper .cart-sidebar .list-group-item {
    border-left: 0;
    border-right: 0;
    padding: 13px 16px;
    color: #334155;
    font-weight: 600;
    line-height: 1.35;
}

#order-standard_cart.whmcs-cart-wrapper .cart-sidebar .list-group-item.active,
#order-standard_cart.whmcs-cart-wrapper .cart-sidebar .list-group-item:hover {
    color: var(--mc-cart-blue);
    background: #eff6ff;
    border-color: #dbeafe;
}

#order-standard_cart.whmcs-cart-wrapper #orderSummary,
#order-standard_cart.whmcs-cart-wrapper .order-summary {
    position: sticky;
    top: 24px;
    border-radius: 16px;
    padding: 0;
    background: #fff;
    border: 1px solid var(--mc-cart-border);
    box-shadow: var(--mc-cart-shadow);
    overflow: hidden;
}

#order-standard_cart.whmcs-cart-wrapper .order-summary {
    padding: 24px;
    margin-bottom: 18px;
}

#order-standard_cart.whmcs-cart-wrapper .order-summary h2,
#order-standard_cart.whmcs-cart-wrapper #orderSummary h2 {
    font-size: 21px;
    font-weight: 800;
    color: var(--mc-cart-text);
    margin: 0 0 16px;
}

#order-standard_cart.whmcs-cart-wrapper #producttotal,
#order-standard_cart.whmcs-cart-wrapper .summary-container {
    font-size: 15px;
    color: #334155;
}

#order-standard_cart.whmcs-cart-wrapper #producttotal .total-due-today,
#order-standard_cart.whmcs-cart-wrapper .summary-totals,
#order-standard_cart.whmcs-cart-wrapper .recurring-totals {
    color: var(--mc-cart-text);
    font-weight: 800;
}

#order-standard_cart.whmcs-cart-wrapper .btn,
#order-standard_cart.whmcs-cart-wrapper button {
    border-radius: 10px;
    min-height: 42px;
    font-weight: 800;
    white-space: normal;
}

#order-standard_cart.whmcs-cart-wrapper .btn-checkout,
#order-standard_cart.whmcs-cart-wrapper .checkout-btn,
#order-standard_cart.whmcs-cart-wrapper .btn-primary,
#order-standard_cart.whmcs-cart-wrapper #btnCompleteProductConfig,
#order-standard_cart.whmcs-cart-wrapper #btnCheckout {
    background: linear-gradient(135deg, var(--mc-cart-blue), var(--mc-cart-blue-dark));
    border-color: var(--mc-cart-blue);
    color: #fff;
    box-shadow: 0 10px 24px rgba(15, 95, 214, .22);
}

#order-standard_cart.whmcs-cart-wrapper .btn-checkout:hover,
#order-standard_cart.whmcs-cart-wrapper .btn-primary:hover,
#order-standard_cart.whmcs-cart-wrapper #btnCompleteProductConfig:hover,
#order-standard_cart.whmcs-cart-wrapper #btnCheckout:hover {
    filter: brightness(.96);
    color: #fff;
}

#order-standard_cart.whmcs-cart-wrapper .view-cart-items-header {
    padding: 14px 18px;
    font-weight: 800;
    color: var(--mc-cart-muted);
    background: #f8fafc;
}

#order-standard_cart.whmcs-cart-wrapper .view-cart-items {
    padding: 0;
}

#order-standard_cart.whmcs-cart-wrapper .view-cart-items .item {
    border: 0;
    border-bottom: 1px solid #eef2f7;
    border-radius: 0;
    box-shadow: none;
    padding: 18px;
    margin: 0;
}

#order-standard_cart.whmcs-cart-wrapper .item-title {
    color: var(--mc-cart-text);
    font-weight: 800;
    line-height: 1.35;
}

#order-standard_cart.whmcs-cart-wrapper .item-price {
    color: var(--mc-cart-text);
    font-weight: 800;
    text-align: right;
}

#order-standard_cart.whmcs-cart-wrapper .alert {
    border-radius: 14px;
    margin-bottom: 20px;
}

#order-standard_cart.whmcs-cart-wrapper .hidden-lg.hidden-md,
#order-standard_cart.whmcs-cart-wrapper .d-md-none {
    margin-bottom: 20px;
}

body[class*="tpl-clientarea"] .main-content,
body[class*="tpl-clientarea"] .content-area,
body[class*="tpl-clientarea"] .container:not(.top-bar .container):not(.header-main-menu .container),
body[class*="tpl-supportticket"] .container:not(.top-bar .container):not(.header-main-menu .container) {
    max-width: 1280px;
}

body[class*="tpl-clientarea"] .panel,
body[class*="tpl-clientarea"] .card,
body[class*="tpl-clientarea"] .tiles .tile,
body[class*="tpl-clientarea"] .client-home-panels .panel {
    border-radius: 16px;
    border: 1px solid var(--mc-cart-border);
    box-shadow: var(--mc-cart-shadow-sm);
}

@media (min-width: 992px) {
    #order-standard_cart.cart-products-layout > .row,
    #order-standard_cart.cart-view-layout > .row,
    #order-standard_cart.cart-checkout-layout > .row {
        grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
    }

    #order-standard_cart.whmcs-cart-wrapper .cart-sidebar {
        position: sticky;
        top: 24px;
    }
}

@media (max-width: 991px) {
    #order-standard_cart.whmcs-cart-wrapper {
        margin-top: 24px !important;
        padding: 0 20px;
    }

    #order-standard_cart.whmcs-cart-wrapper > .row,
    #order-standard_cart.cart-configure-layout form > .row,
    #order-standard_cart.cart-view-layout .cart-body > .row,
    #order-standard_cart.cart-checkout-layout .cart-body > .row {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    #order-standard_cart.whmcs-cart-wrapper .cart-sidebar,
    #order-standard_cart.whmcs-cart-wrapper #orderSummary,
    #order-standard_cart.whmcs-cart-wrapper .order-summary {
        position: static;
        top: auto;
    }

    #order-standard_cart.whmcs-cart-wrapper .cart-sidebar .panel:not(.hidden-lg):not(.hidden-md) {
        display: none;
    }
}

@media (max-width: 575px) {
    #order-standard_cart.whmcs-cart-wrapper {
        margin-top: 18px !important;
        padding: 0 14px;
    }

    #order-standard_cart.whmcs-cart-wrapper .header-lined h1,
    #order-standard_cart.whmcs-cart-wrapper .header-lined h2,
    #order-standard_cart.whmcs-cart-wrapper h2.font-size-24 {
        font-size: 23px;
    }

    #order-standard_cart.whmcs-cart-wrapper .product-info,
    #order-standard_cart.whmcs-cart-wrapper .field-container,
    #order-standard_cart.whmcs-cart-wrapper .product-configurable-options,
    #order-standard_cart.whmcs-cart-wrapper .order-summary {
        padding: 18px;
        border-radius: 12px;
    }

    #order-standard_cart.whmcs-cart-wrapper .panel,
    #order-standard_cart.whmcs-cart-wrapper .card,
    #order-standard_cart.whmcs-cart-wrapper .product-info,
    #order-standard_cart.whmcs-cart-wrapper .field-container,
    #order-standard_cart.whmcs-cart-wrapper .view-cart-items,
    #order-standard_cart.whmcs-cart-wrapper .view-cart-items-header,
    #order-standard_cart.whmcs-cart-wrapper .order-summary,
    #order-standard_cart.whmcs-cart-wrapper #orderSummary {
        border-radius: 12px;
    }

    #order-standard_cart.whmcs-cart-wrapper .product-configurable-options .col-sm-6,
    #order-standard_cart.whmcs-cart-wrapper .selectBillingCycle .col-sm-6,
    #order-standard_cart.whmcs-cart-wrapper .addon-products .col-sm-6,
    #order-standard_cart.whmcs-cart-wrapper .field-container .col-sm-6,
    #order-standard_cart.whmcs-cart-wrapper .view-cart-items .row > [class*="col-"] {
        width: 100%;
        float: none;
        padding-left: 0;
        padding-right: 0;
        text-align: left;
        margin-bottom: 10px;
    }

    #order-standard_cart.whmcs-cart-wrapper .item-price,
    #order-standard_cart.whmcs-cart-wrapper .actions-prod {
        text-align: left !important;
    }

    #order-standard_cart.whmcs-cart-wrapper .btn,
    #order-standard_cart.whmcs-cart-wrapper button {
        width: 100%;
    }
}
