/* Clasico Next 1.1.14 · Checkout layout and confidence blocks.
   Keep PrestaShop's original forms, totals, payment controls and URLs. */
:root{--cn-co-ink:#1d2b40;--cn-co-border:#e3eaf4;--cn-co-blue:#326bf1;--cn-co-soft:#f7faff}

/* Header cart quantity badge – visible in compact scrolling header. */
.cn-sticky-topbar-cart{position:relative;padding-right:18px!important}
.cn-sticky-cart-count:not([hidden]){display:flex!important;align-items:center;justify-content:center;min-width:23px;height:23px;max-width:58px;box-sizing:border-box;padding:0 5px;position:absolute;top:0;right:0;transform:translate(25%,-8%);border-radius:20px;background:#326bf1;color:white;font-weight:800;font-size:11px;line-height:1;border:2px solid #fff;white-space:nowrap;font-variant-numeric:tabular-nums;z-index:2}

/* Both cart and checkout use the same card/summary rhythm. */
#cart #wrapper, #checkout #wrapper, #order #wrapper{background:linear-gradient(180deg,#f8faff 0,#fff 280px)}
#cart #wrapper>.container,#checkout #wrapper>.container,#order #wrapper>.container{max-width:1480px;width:100%}
.cart-grid,.cart-grid-body,.cart-grid-right,#checkout #content>.row,#order #content>.row{min-width:0}
.cart-grid{display:grid;grid-template-columns:minmax(0,1.75fr) minmax(320px,1fr);gap:28px;align-items:start;margin:14px 0 30px}
.cart-grid>.cart-grid-body,.cart-grid>.cart-grid-right{width:100%;max-width:none;float:none;flex:none;padding:0;min-width:0}
.cart-grid-body .card,.cart-grid-right .card,#js-checkout-summary,#checkout .checkout-step,#order .checkout-step{border:1px solid var(--cn-co-border);box-shadow:0 10px 28px rgba(32,57,92,.045);border-radius:18px;background:#fff;overflow:visible}
.cart-grid-body .cart-container{padding:6px 0 10px}
.cart-grid-body .cart-container .card-block:first-child{padding:23px 28px 16px}
.cart-grid-body .cart-container h1{margin:0;font-size:22px;font-weight:800;color:var(--cn-co-ink)}
.cart-container hr.separator{border-color:#eaf0f8;margin:0}
.cart-overview .cart-item{border-bottom:1px solid #edf1f7;margin:0;padding:20px 8px}
.cart-overview .cart-item:last-child{border-bottom:0}
.cart-overview .cart-items{margin:0;padding:0 20px}
.cart-container .product-line-grid{display:grid;grid-template-columns:minmax(120px,155px) minmax(0,1fr) minmax(280px,.95fr);gap:20px;align-items:center;margin:0;width:100%;min-width:0}
.cart-container .product-line-grid>div{width:auto;max-width:none;float:none;padding:0;min-width:0}
.cart-container .product-line-grid-left .product-image{display:flex;align-items:center;justify-content:center;max-width:150px;border:1px solid #e8eff8;background:#fff;border-radius:14px;padding:8px;aspect-ratio:1}
.cart-container .product-line-grid-left img{max-width:100%;height:auto;max-height:132px;object-fit:contain}
.cart-container .product-line-grid-body .label{display:block;font-size:15px;font-weight:700;line-height:1.5;color:#263b59;white-space:normal;overflow-wrap:anywhere;margin-bottom:6px}
.cart-container .product-line-grid-body .current-price,.cart-container .product-line-grid-body .product-price{font-size:15px;font-weight:800;color:var(--cn-co-blue)}
.cart-container .product-line-actions>.row{display:flex;align-items:center;gap:12px;margin:0;justify-content:flex-end}
.cart-container .product-line-actions>.row>.col-xs-4.hidden-md-up{display:none!important}
.cart-container .product-line-actions>.row>.col-md-10{flex:1 1 auto;min-width:0;max-width:none;width:auto;padding:0}
.cart-container .product-line-actions>.row>.col-md-10>.row{display:flex;gap:12px;align-items:center;margin:0;justify-content:flex-end}
.cart-container .product-line-actions .qty{flex:0 0 auto;width:auto;min-width:96px;padding:0}
.cart-container .product-line-actions .qty .bootstrap-touchspin{display:flex;min-width:92px;max-width:118px;box-shadow:none;border:1px solid #dce5f2;border-radius:10px;overflow:hidden}
.cart-container .product-line-actions .qty input{width:64px;min-width:0;height:44px;text-align:center;font-weight:700;border:0;box-shadow:none;padding:4px}
.cart-container .product-line-actions .qty .input-group-btn-vertical{width:26px;display:flex;flex-direction:column}
.cart-container .product-line-actions .qty .btn-touchspin{width:26px;height:22px;display:flex;align-items:center;justify-content:center;padding:0;border:0;border-left:1px solid #e1e8f2;border-radius:0;background:#f8faff}
.cart-container .product-line-actions .qty .btn-touchspin i{font-size:15px}
.cart-container .product-line-actions .price{flex:1 1 104px;min-width:88px;width:auto;padding:0;text-align:right}
.cart-container .product-line-actions .product-price{font-size:17px;white-space:nowrap;color:#263b59}
.cart-container .product-line-actions>.row>.col-md-2{flex:0 0 32px;width:32px;max-width:32px;padding:0;text-align:center}
.cart-container .remove-from-cart{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border:1px solid #e6eaf1;border-radius:9px;color:#78869a}
.cart-container .remove-from-cart:hover{background:#fff3f3;border-color:#ffd4d4;color:#d54848}
.cart-container .remove-from-cart i{float:none!important;margin:0}
.cart-grid-right .cart-summary,#js-checkout-summary{position:relative;overflow:hidden;padding:0;border:1px solid var(--cn-co-border)}
.cart-grid-right .card-block,#js-checkout-summary .card-block{padding:20px 22px}
.cart-grid-right .cart-summary-line,#js-checkout-summary .cart-summary-line{display:flex;justify-content:space-between;align-items:baseline;gap:20px;margin:0 0 14px;color:#4c5c71;line-height:1.5;font-size:14px}
.cart-grid-right .cart-summary-line .label,#js-checkout-summary .cart-summary-line .label{min-width:0;white-space:normal;text-align:left}
.cart-grid-right .cart-summary-line .value,#js-checkout-summary .cart-summary-line .value{white-space:nowrap;font-weight:650;color:#27354d;text-align:right}
.cart-grid-right .cart-total,#js-checkout-summary .cart-total{background:#eef5ff;border-radius:13px;padding:15px 17px;margin:8px 0;font-size:16px;font-weight:800}
.cart-grid-right .cart-total .label,.cart-grid-right .cart-total .value,#js-checkout-summary .cart-total .label,#js-checkout-summary .cart-total .value{font-weight:800;color:#1e3150}
.cart-grid-right .cart-detailed-actions,.cart-grid-right .cart-summary-voucher{padding:18px 22px;border-top:1px solid #edf2f8}
.cart-grid-right .cart-detailed-actions .text-sm-center{display:block;width:100%}
.cart-grid-right .cart-detailed-actions .btn-primary{display:flex;align-items:center;justify-content:center;width:100%;min-height:52px;border-radius:12px;background:var(--cn-co-blue);color:#fff;font-size:15px;font-weight:800;box-shadow:none}
.cart-grid-right .cart-detailed-actions .btn-primary:hover{filter:brightness(.94)}

/* Cart and checkout reassurance: compact, icon-led, no giant empty lines. */
.cn-checkout-trust{border:1px solid #e1ebf7;background:#f8fbff;border-radius:17px;margin:18px 0 22px;padding:16px!important;overflow:hidden;max-width:100%}
.cn-checkout-trust #block-reassurance,.cn-checkout-trust .block-reassurance{margin:0!important;border:0!important;background:transparent!important;padding:0!important;box-shadow:none!important}
.cn-checkout-trust ul{display:grid!important;grid-template-columns:1fr!important;gap:10px!important;list-style:none!important;padding:0!important;margin:0!important;width:100%!important}
.cn-checkout-trust li{display:flex!important;align-items:center!important;gap:12px!important;min-height:44px!important;padding:5px 6px!important;margin:0!important;border:0!important;background:transparent!important;float:none!important;width:100%!important;max-width:100%!important;box-sizing:border-box}
.cn-checkout-trust .block-reassurance-item{display:flex!important;align-items:center!important;gap:12px!important;width:100%!important;min-height:42px!important;position:relative;margin:0!important;padding:0!important}
.cn-checkout-trust .cn-checkout-icon{display:inline-flex;flex:0 0 40px;width:40px;height:40px;border-radius:12px;align-items:center;justify-content:center;background:#e7f0ff;color:#2d68d5}
.cn-checkout-trust .cn-checkout-icon svg{width:22px;height:22px;stroke:currentColor;stroke-width:1.8;fill:none;stroke-linecap:round;stroke-linejoin:round}
.cn-checkout-trust li .cn-reassurance-icon,.cn-checkout-trust li img,.cn-checkout-trust li svg.cn-reassurance-default{display:none!important}
.cn-checkout-trust li .cn-reassurance-text,.cn-checkout-trust li span:not(.cn-checkout-icon):not(.cn-reassurance-icon){line-height:1.55;color:#334765;font-size:13px}
.cn-checkout-trust li p{margin:0!important;font-size:13px;line-height:1.55}

/* Checkout step layout follows same visual vocabulary as cart panel. */
#checkout #content>.row,#order #content>.row{display:grid;grid-template-columns:minmax(0,1.75fr) minmax(320px,1fr);gap:28px;margin:14px 0 32px;align-items:start}
#checkout #content>.row>.cart-grid-body,#checkout #content>.row>.cart-grid-right,#order #content>.row>.cart-grid-body,#order #content>.row>.cart-grid-right{width:auto;max-width:none;min-width:0;padding:0;float:none}
#checkout .checkout-step,#order .checkout-step{padding:0;margin:0 0 16px;overflow:hidden}
#checkout .checkout-step .step-title,#order .checkout-step .step-title{display:flex;align-items:center;gap:12px;min-height:75px;padding:18px 24px;margin:0!important;font-size:17px!important;font-weight:800;color:#253951;border:0;background:#fff;line-height:1.45;overflow-wrap:anywhere}
#checkout .checkout-step .step-number,#order .checkout-step .step-number{display:inline-flex;align-items:center;justify-content:center;min-width:32px;width:32px;height:32px;border-radius:50%;background:#edf2fa;color:#48648b;font-weight:800;font-size:15px}
#checkout .checkout-step.-current,#order .checkout-step.-current{border-color:#a9c8fc;box-shadow:0 8px 24px rgba(56,104,197,.09)}
#checkout .checkout-step.-current>.step-title,#order .checkout-step.-current>.step-title{background:#f4f8ff;color:#1e4b99}
#checkout .checkout-step.-current .step-number,#order .checkout-step.-current .step-number{background:#326bf1;color:white}
#checkout .checkout-step.-complete .step-number,#order .checkout-step.-complete .step-number{background:#e9f8ef;color:#277649}
#checkout .checkout-step .step-edit,#order .checkout-step .step-edit{margin-left:auto;white-space:nowrap;font-size:13px;font-weight:600}
#checkout .checkout-step>.content,#order .checkout-step>.content{padding:16px 24px 24px;margin:0;border:0;background:#fff;min-width:0}
#checkout .checkout-step>.content:empty,#order .checkout-step>.content:empty{display:none}
#checkout .checkout-step .address-selector,#order .checkout-step .address-selector{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:stretch}
#checkout .checkout-step .address-item,#order .checkout-step .address-item{width:auto;min-width:0;padding:16px;border:1px solid #e2eaf5;border-radius:14px;background:#fff;margin:0;box-shadow:none}
#checkout .checkout-step .address-item.selected,#order .checkout-step .address-item.selected{border:2px solid #71a7f5;background:#f8fbff}
#checkout .checkout-step .address-body,#order .checkout-step .address-body{overflow-wrap:anywhere}
#checkout .checkout-step .address-footer,#order .checkout-step .address-footer{border-top:1px solid #edf1f7;margin-top:14px;padding-top:10px}
#checkout .checkout-step .delivery-option,#order .checkout-step .delivery-option{border:1px solid #e5ecf6;border-radius:14px;padding:14px;margin:0 0 12px;background:#fff;display:flex;align-items:center;gap:12px}
#checkout .checkout-step .delivery-option>[class*=col],#order .checkout-step .delivery-option>[class*=col]{width:auto;max-width:none;float:none;padding:0;min-width:0}
#checkout .checkout-step .delivery-option .delivery-option-2,#order .checkout-step .delivery-option .delivery-option-2{flex:1;min-width:0}
#checkout .checkout-step .payment-option,#order .checkout-step .payment-option{border:1px solid #e5ebf4;border-radius:13px;background:#fff;padding:14px 16px;margin-bottom:9px}
#checkout .checkout-step .payment-option label,#order .checkout-step .payment-option label{white-space:normal;line-height:1.5}
#checkout .checkout-step input:not([type=checkbox]):not([type=radio]),#order .checkout-step input:not([type=checkbox]):not([type=radio]){max-width:100%}
#checkout .checkout-step button.continue,#order .checkout-step button.continue{display:flex;justify-content:center;align-items:center;min-height:50px;min-width:180px;padding:10px 26px;border-radius:12px;float:none!important;margin:22px 0 0 auto;background:var(--cn-co-blue);color:white;font-weight:750}
.cn-checkout-side-continue:not([hidden]){display:block;padding:16px 22px;background:#fff;border:1px solid var(--cn-co-border);border-top:0;border-radius:0 0 17px 17px;margin-top:-14px}
.cn-checkout-side-button{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:52px;border:0;border-radius:12px;font-weight:800;background:var(--cn-co-blue);color:#fff;font-size:15px}
.cn-checkout-side-continue~.cn-checkout-trust{margin-top:18px}
.cn-original-action-proxied{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important;opacity:0!important;pointer-events:none!important}
#checkout #payment-confirmation .btn-primary,#order #payment-confirmation .btn-primary{min-height:52px;width:100%;border-radius:12px;font-size:16px;font-weight:800}

/* Quick View combination/image UX. */
.quickview .cn-quickview-detail-link{display:inline-flex;align-items:center;justify-content:center;gap:9px;width:100%;margin-top:16px;padding:14px 16px;min-height:49px;background:#fff;color:#2458b1;border:1px solid #b6cdf5;border-radius:13px;font-weight:750;text-decoration:none!important}
.quickview .cn-quickview-detail-link .material-icons{font-size:20px;line-height:1}
.quickview .cn-quickview-detail-link:hover{background:#f0f6ff;border-color:#6197ef}
.quickview .cn-quickview-variant-loading{opacity:.65;transition:opacity .15s}

@media(max-width:1199px){
 .cart-container .product-line-grid{grid-template-columns:105px minmax(0,1fr);gap:12px}
 .cart-container .product-line-actions{grid-column:2}
 .cart-container .product-line-actions>.row{justify-content:flex-start}
}
@media(max-width:991px){
 .cart-grid,#checkout #content>.row,#order #content>.row{grid-template-columns:minmax(0,1fr);gap:18px}
 .cart-grid>.cart-grid-right,#checkout #content>.row>.cart-grid-right,#order #content>.row>.cart-grid-right{width:100%}
 .cart-grid-right .cart-summary,#js-checkout-summary{position:static}
}
@media(max-width:600px){
 .cart-grid{margin-top:7px}
 .cart-container .product-line-grid{grid-template-columns:86px minmax(0,1fr);gap:10px}
 .cart-overview .cart-items{padding:0 12px}
 .cart-container .product-line-grid-left img{max-height:86px}
 .cart-container .product-line-actions>.row>.col-md-10>.row{justify-content:space-between}
 .cart-container .product-line-actions .price{min-width:88px}
 #checkout .checkout-step .step-title,#order .checkout-step .step-title{padding:14px 16px;font-size:15px!important}
 #checkout .checkout-step>.content,#order .checkout-step>.content{padding:14px 16px 20px}
 #checkout .checkout-step .address-selector,#order .checkout-step .address-selector{grid-template-columns:1fr}
 .cn-sticky-cart-count:not([hidden]){transform:translate(10%,-4%)}
}
