/*
 * ZOSCLIENT 1.1.0 — cart cleanup
 * Removes left-side cart menus (Categorias / Acciones / Elegir Divisa)
 * and normalizes the cart colors/contrast.
 */

/* Hide cart side menus entirely */
body.wilo-authenticated #order-standard_cart.wilo-products-layout .wilo-products-menu,
#order-standard_cart.wilo-products-layout .wilo-products-menu {
    display: none !important;
}

/* Expand main cart content to full width */
body.wilo-authenticated #order-standard_cart.wilo-products-layout,
#order-standard_cart.wilo-products-layout {
    display: block !important;
}

body.wilo-authenticated #order-standard_cart.wilo-products-layout .wilo-products-main,
#order-standard_cart.wilo-products-layout .wilo-products-main {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* General contrast cleanup */
body.wilo-authenticated #order-standard_cart,
#order-standard_cart {
    color: #efedf2;
}

body.wilo-authenticated #order-standard_cart .panel,
body.wilo-authenticated #order-standard_cart .cart-sidebar,
body.wilo-authenticated #order-standard_cart .sub-heading,
body.wilo-authenticated #order-standard_cart .secondary-cart-body,
body.wilo-authenticated #order-standard_cart .summary-container,
body.wilo-authenticated #order-standard_cart .view-cart-items,
#order-standard_cart .panel,
#order-standard_cart .cart-sidebar,
#order-standard_cart .sub-heading,
#order-standard_cart .secondary-cart-body,
#order-standard_cart .summary-container,
#order-standard_cart .view-cart-items {
    border-color: rgba(255, 255, 255, .10) !important;
    background: #242424 !important;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .14) !important;
}

body.wilo-authenticated #order-standard_cart .panel-heading,
body.wilo-authenticated #order-standard_cart .summary-container .panel-heading,
#order-standard_cart .panel-heading,
#order-standard_cart .summary-container .panel-heading {
    color: #faf8fc !important;
    border-color: rgba(255, 255, 255, .08) !important;
    background: #202020 !important;
}

body.wilo-authenticated #order-standard_cart .panel-body,
body.wilo-authenticated #order-standard_cart .summary-body,
body.wilo-authenticated #order-standard_cart .secondary-cart-body,
#order-standard_cart .panel-body,
#order-standard_cart .summary-body,
#order-standard_cart .secondary-cart-body {
    color: #d9d4e0 !important;
    background: #242424 !important;
}

body.wilo-authenticated #order-standard_cart h1,
body.wilo-authenticated #order-standard_cart h2,
body.wilo-authenticated #order-standard_cart h3,
body.wilo-authenticated #order-standard_cart h4,
body.wilo-authenticated #order-standard_cart strong,
#order-standard_cart h1,
#order-standard_cart h2,
#order-standard_cart h3,
#order-standard_cart h4,
#order-standard_cart strong {
    color: #fff !important;
}

body.wilo-authenticated #order-standard_cart p,
body.wilo-authenticated #order-standard_cart small,
body.wilo-authenticated #order-standard_cart span,
#order-standard_cart p,
#order-standard_cart small,
#order-standard_cart span {
    color: #cfc8d8;
}

/* Fix summary card / totals */
body.wilo-authenticated #order-standard_cart .summary-container .subtotal,
body.wilo-authenticated #order-standard_cart .summary-container .recurring-totals,
body.wilo-authenticated #order-standard_cart .summary-container .total-due-today,
#order-standard_cart .summary-container .subtotal,
#order-standard_cart .summary-container .recurring-totals,
#order-standard_cart .summary-container .total-due-today {
    color: #f3eef8 !important;
    border-color: rgba(255,255,255,.10) !important;
}

/* Buttons */
body.wilo-authenticated #order-standard_cart .btn-default,
#order-standard_cart .btn-default {
    color: #eeeaf3 !important;
    border-color: rgba(255, 255, 255, .12) !important;
    background: #292929 !important;
}

body.wilo-authenticated #order-standard_cart .btn-default:hover,
body.wilo-authenticated #order-standard_cart .btn-default:focus,
#order-standard_cart .btn-default:hover,
#order-standard_cart .btn-default:focus {
    color: #fff !important;
    border-color: rgba(138, 44, 246, .44) !important;
    background: rgba(138, 44, 246, .14) !important;
}

/* Inputs / selects */
body.wilo-authenticated #order-standard_cart .form-control,
body.wilo-authenticated #order-standard_cart select,
#order-standard_cart .form-control,
#order-standard_cart select {
    color: #f4eff9 !important;
    border-color: rgba(255, 255, 255, .10) !important;
    background: #1f1f1f !important;
    box-shadow: none !important;
}

/* ==================================================================
   1.1.1 — strong color/contrast pass for Review & Pay
   ================================================================== */
body.wilo-authenticated #order-standard_cart .view-cart-items-header,
#order-standard_cart .view-cart-items-header {
    color: #f7f4fb !important;
    border: 1px solid rgba(255, 255, 255, .08) !important;
    border-bottom: 0 !important;
    background: #202020 !important;
}

body.wilo-authenticated #order-standard_cart .view-cart-items,
#order-standard_cart .view-cart-items {
    border: 1px solid rgba(255, 255, 255, .08) !important;
    border-top: 0 !important;
    background: #242424 !important;
}

body.wilo-authenticated #order-standard_cart .view-cart-items .item,
body.wilo-authenticated #order-standard_cart .view-cart-items .item:nth-child(odd),
body.wilo-authenticated #order-standard_cart .view-cart-items .item:nth-child(even),
#order-standard_cart .view-cart-items .item,
#order-standard_cart .view-cart-items .item:nth-child(odd),
#order-standard_cart .view-cart-items .item:nth-child(even) {
    color: #f1eef6 !important;
    border-bottom: 1px solid rgba(255, 255, 255, .08) !important;
    background: #242424 !important;
}

body.wilo-authenticated #order-standard_cart .view-cart-items .item > .row,
body.wilo-authenticated #order-standard_cart .view-cart-items .item > .row > div,
body.wilo-authenticated #order-standard_cart .view-cart-items .item span,
body.wilo-authenticated #order-standard_cart .view-cart-items .item small,
body.wilo-authenticated #order-standard_cart .view-cart-items .item a,
#order-standard_cart .view-cart-items .item > .row,
#order-standard_cart .view-cart-items .item > .row > div,
#order-standard_cart .view-cart-items .item span,
#order-standard_cart .view-cart-items .item small,
#order-standard_cart .view-cart-items .item a {
    background: transparent !important;
}

body.wilo-authenticated #order-standard_cart .view-cart-items .item-title,
body.wilo-authenticated #order-standard_cart .view-cart-items .item-title span,
body.wilo-authenticated #order-standard_cart .view-cart-items .item-price,
body.wilo-authenticated #order-standard_cart .view-cart-items .item-price span,
#order-standard_cart .view-cart-items .item-title,
#order-standard_cart .view-cart-items .item-title span,
#order-standard_cart .view-cart-items .item-price,
#order-standard_cart .view-cart-items .item-price span {
    color: #faf8fc !important;
}

body.wilo-authenticated #order-standard_cart .view-cart-items .item-group,
body.wilo-authenticated #order-standard_cart .view-cart-items .item-setup,
body.wilo-authenticated #order-standard_cart .view-cart-items .cycle,
body.wilo-authenticated #order-standard_cart .view-cart-items small,
#order-standard_cart .view-cart-items .item-group,
#order-standard_cart .view-cart-items .item-setup,
#order-standard_cart .view-cart-items .cycle,
#order-standard_cart .view-cart-items small {
    color: #b5afbf !important;
}

body.wilo-authenticated #order-standard_cart .view-cart-items .item-domain,
body.wilo-authenticated #order-standard_cart .view-cart-items .btn-link,
#order-standard_cart .view-cart-items .item-domain,
#order-standard_cart .view-cart-items .btn-link {
    color: #c996ff !important;
}

body.wilo-authenticated #order-standard_cart .view-cart-items .btn-remove-from-cart,
#order-standard_cart .view-cart-items .btn-remove-from-cart {
    color: #cf86ff !important;
}

body.wilo-authenticated #order-standard_cart .view-cart-items .btn-remove-from-cart:hover,
#order-standard_cart .view-cart-items .btn-remove-from-cart:hover {
    color: #f0d5ff !important;
}

body.wilo-authenticated #order-standard_cart .empty-cart,
#order-standard_cart .empty-cart {
    margin-top: 14px;
    border: 1px solid rgba(255,255,255,.08) !important;
    background: #202020 !important;
}

body.wilo-authenticated #order-standard_cart .empty-cart .btn-link,
#order-standard_cart .empty-cart .btn-link {
    color: #ece7f3 !important;
}

body.wilo-authenticated #order-standard_cart .order-summary,
#order-standard_cart .order-summary {
    border: 1px solid rgba(255,255,255,.10) !important;
    border-bottom: 1px solid rgba(255,255,255,.10) !important;
    background: #242424 !important;
}

body.wilo-authenticated #order-standard_cart .order-summary h2,
#order-standard_cart .order-summary h2 {
    color: #faf8fc !important;
    background: transparent !important;
}

body.wilo-authenticated #order-standard_cart .summary-container,
body.wilo-authenticated #order-standard_cart .summary-container .subtotal,
body.wilo-authenticated #order-standard_cart .summary-container .bordered-totals,
body.wilo-authenticated #order-standard_cart .summary-container .recurring-totals,
body.wilo-authenticated #order-standard_cart .summary-container .total-due-today,
#order-standard_cart .summary-container,
#order-standard_cart .summary-container .subtotal,
#order-standard_cart .summary-container .bordered-totals,
#order-standard_cart .summary-container .recurring-totals,
#order-standard_cart .summary-container .total-due-today {
    background: #242424 !important;
}

body.wilo-authenticated #order-standard_cart .summary-container .subtotal,
body.wilo-authenticated #order-standard_cart .summary-container .bordered-totals,
body.wilo-authenticated #order-standard_cart .summary-container .recurring-totals,
#order-standard_cart .summary-container .subtotal,
#order-standard_cart .summary-container .bordered-totals,
#order-standard_cart .summary-container .recurring-totals {
    color: #ede9f3 !important;
    border-color: rgba(255,255,255,.10) !important;
}

body.wilo-authenticated #order-standard_cart .summary-container .pull-left,
body.wilo-authenticated #order-standard_cart .summary-container .pull-right,
body.wilo-authenticated #order-standard_cart .summary-container .recurring-charges,
body.wilo-authenticated #order-standard_cart .summary-container .recurring-charges span,
#order-standard_cart .summary-container .pull-left,
#order-standard_cart .summary-container .pull-right,
#order-standard_cart .summary-container .recurring-charges,
#order-standard_cart .summary-container .recurring-charges span {
    color: #ede9f3 !important;
}

body.wilo-authenticated #order-standard_cart .summary-container .total-due-today.total-due-today-padded,
#order-standard_cart .summary-container .total-due-today.total-due-today-padded {
    background: linear-gradient(90deg, #8a2cf6, #a247ff) !important;
    color: #fff !important;
}

body.wilo-authenticated #order-standard_cart .summary-container .total-due-today.total-due-today-padded .amt,
body.wilo-authenticated #order-standard_cart .summary-container .total-due-today.total-due-today-padded span,
#order-standard_cart .summary-container .total-due-today.total-due-today-padded .amt,
#order-standard_cart .summary-container .total-due-today.total-due-today-padded span {
    color: #fff !important;
}

body.wilo-authenticated #order-standard_cart .btn-checkout,
#order-standard_cart .btn-checkout {
    border-color: rgba(138, 44, 246, .55) !important;
    background: linear-gradient(90deg, #8a2cf6, #a247ff) !important;
    color: #fff !important;
    box-shadow: 0 10px 26px rgba(138,44,246,.22) !important;
}

body.wilo-authenticated #order-standard_cart .btn-continue-shopping,
#order-standard_cart .btn-continue-shopping {
    color: #d2b0ff !important;
}

/* ==================================================================
   1.1.2 — final cart cleanup: remove sidebar blocks completely
   and fix progress-step text contrast
   ================================================================== */

/* Remove sidebar panels completely on desktop/order pages */
#order-standard_cart > .row > .sidebar,
#order-standard_cart .sidebar.hidden-xs.hidden-sm {
    display: none !important;
    width: 0 !important;
    max-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
}

/* Remove mobile/collapsed menu variants too */
#order-standard_cart .categories-collapsed,
#order-standard_cart .panel.hidden-lg.hidden-md,
#order-standard_cart .categories-collapsed select {
    display: none !important;
}

/* Expand the primary content area after sidebar removal */
#order-standard_cart > .row > .col-md-9.pull-md-right,
#order-standard_cart > .row > .pull-md-right.col-md-9,
#order-standard_cart > .row > .col-md-9,
#order-standard_cart > .row > .pull-md-right.col-md-9 + .col-md-9,
#order-standard_cart > .row > .col-md-9.pull-md-right + .col-md-9 {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
}

/* In some steps the main wrapper is the right-aligned header area */
#order-standard_cart > .row > .pull-md-right.col-md-9 .header-lined,
#order-standard_cart > .row > .col-md-9.pull-md-right .header-lined {
    margin-top: 0 !important;
}

/* Hard-force progress labels to be readable */
.wilo-purchase-progress li,
.wilo-purchase-progress li > strong,
.wilo-purchase-progress li > span,
.wilo-purchase-progress li i {
    color: #b7b0c2 !important;
}

.wilo-purchase-progress li.is-current,
.wilo-purchase-progress li.is-current > strong,
.wilo-purchase-progress li.is-current i,
.wilo-purchase-progress li.is-complete,
.wilo-purchase-progress li.is-complete > strong,
.wilo-purchase-progress li.is-complete i {
    color: #f7f4fb !important;
}

.wilo-purchase-progress li.is-current > span,
.wilo-purchase-progress li.is-current > span i,
.wilo-purchase-progress li.is-complete > span,
.wilo-purchase-progress li.is-complete > span i {
    color: #ffffff !important;
}

/* Unselected labels should still be visible, not near-black */
.wilo-purchase-progress li:not(.is-current):not(.is-complete) > strong {
    color: #a59eaf !important;
}

/* ==================================================================
   1.1.3 — remove empty gap on products/cart landing after sidebar removal
   ================================================================== */
#order-standard_cart.wilo-products-layout {
    display: block !important;
}

#order-standard_cart.wilo-products-layout > .wilo-products-main {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

#order-standard_cart.wilo-products-layout > .wilo-products-main > .header-lined {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

#order-standard_cart.wilo-products-layout > .wilo-products-main > .header-lined h1 {
    margin-top: 0 !important;
}

/* If any empty menu wrapper remains from cache, collapse it fully */
#order-standard_cart.wilo-products-layout .wilo-products-menu,
#order-standard_cart.wilo-products-layout .wilo-products-menu:empty,
#order-standard_cart.wilo-products-layout .categories-collapsed,
#order-standard_cart.wilo-products-layout .categories-collapsed:empty {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

/* Keep progress labels readable */
.wilo-purchase-progress li > strong { color: #a59eaf !important; }
.wilo-purchase-progress li.is-current > strong,
.wilo-purchase-progress li.is-complete > strong { color: #f7f4fb !important; }
