#orderopc  #left_column {display:none}

#orderopc  #left_column h2 {margin-top:20px}
#order-opc .order_message{width:95%}
#order-opc .steps{margin-bottom: 15px;}
.payment_module {
    position: relative;
    padding: 10px;
    margin-bottom: 5px;
    border: 1px solid #D2D2D2;
    background-color: white;
}
.payment_module p{margin:0;}

.payment_module:hover {border-color:#EC8E8E }
.payment_module a {display:block;min-height: 50px; font-size: 14px;
    font-weight: 500;}
#order-opc div.payplug-wrapper{
    font-size: 14px;
    font-weight: 500;
    color:inherit;
}
#order-opc .popover-content h2{
    margin: 0 0 10px 0;
    border: 0;
    padding: 0;
    font-size: 13px;
}
#order-opc .popover-content ul{
    list-style: none;
    margin-left: 10px;
}
.cart_total_price .total_price_container{white-space:nowrap;}
#order_hidden_step{display: none;}

.cart_confirm.confirm_top{margin: 15px 0;}
input.ppsubmit {
    cursor: pointer;
}
.payplug-wrapper .payment_module {
    border:0;
}
div.payplug-wrapper .payment_module{
    margin: 0;
}
.row div.payplug-wrapper .payment_module span{
    background-color: #fff;
        padding: 11px 0 25px 190px;
}
.row div.payplug-wrapper form div label div.info-wrapper{
    max-width: 170px;
}
.row div.payplug-wrapper form div.card-wrapper{
    padding: 0px 0 10px 5px;
}
.row div.payplug-wrapper{
    border-radius: 0;
    margin-bottom: 6px;
}
.row div.payplug-wrapper form{
    margin: 0;
    padding-top: 10px;
}

.payment_module .bank_wire:after, .payment_module .code_fee:after {
    display: block;
    content: "\f054";
    position: absolute;
    right: 15px;
    margin-top: -11px;
    top: 50%;
    font-family: "FontAwesome";
    font-size: 25px;
    height: 22px;
    width: 14px;
    color: #777;
}
.payment_module .bank_wire{
    padding-left: 15px;    
}
/* ************************************************************************************************
                PAGE ORDER-OPC
************************************************************************************************ */
#order-opc #left_column {display:none}


#order-opc h2 {
    border-bottom: 1px dashed #ccc;
    color: #333;
    margin:30px;
    position: relative;
    margin-bottom: 20px;
}

#order-opc h3, #addresses h3{
    padding: 8px;
    margin: 0;
    color: #608ae7;
    background: #f9f9f9;
    margin-bottom: 10px;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    border-bottom: 1px dashed #ecebeb;
    position: relative;
}
#order-opc h4{
    color: #009499;
    text-transform: uppercase;
    font-size: 17px;
    padding: 0;
}
.address_update{text-align: left;margin-top: 15px;}
.order_carrier_content{padding-left: 15px;}
.order_carrier_content, #payment_block {
    padding:15px;
    background: #f5f9fe;
    border-radius: 16px;
}
.address_customer_invoice_type{display: none;}
#carrier_area h3, #payment_block h3{
    padding-left: 50px !important;
}
#order-opc h3 span {
    background: #698dc9;
    position: absolute;
    top: -6px;
    left: -10px;
    display: inline-block;
    padding: 14px 16px;
    color: #fff;
    margin-right: 5px;
    -webkit-border-radius: 55px;
    -moz-border-radius: 55px;
    border-radius: 3px;
}
.btn.back_to_account{margin: 10px 0}

#order-opc .addresses {
    margin-bottom:20px;
    background: #f5f9fe;
    border-radius: 16px;
}
#live_msg h4{font-size: 17px; margin-bottom: 0;}
textarea#gift_message{	width:948px !important;}
#carrier_area{margin-bottom: 20px}
.delivery_option_carrier td {width:200px}
.delivery_option_carrier td + td {width:280px;}
.delivery_option_carrier td + td + td {width:200px}
.delivery_option_carrier {
    margin: 5px 0 0 45px;
    width: 670px;
    display: none;
}
.delivery_option_carrier tr td {
    padding: 5px;
}
.delivery_option_carrier.selected {
    display: table;
}
.delivery_option_carrier.not-displayable {
    display: none;
}
.delivery_option_title {
    font-weight: bold;
}
#cart_summary .cart_item {
    border: 1px solid #e7e7e7;
    margin-bottom: 5px;
    padding: 12px 8px 8px 8px;
}
#cart_summary .gift-icon {
    color: white;
    background: #C20000;
    line-height: 20px;
    padding: 2px 5px;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
}
#cart_summary .cart_total_price .total_price_container {
    padding:0;
    border-bottom:1px solid #CECECE;
    border-right:1px solid #CECECE;
}
.summary_header {
    margin-bottom: 15px;
}
.header_item{text-transform: uppercase; color: #000;font-size: 14px;}
#cart_summary{margin-bottom: 10px;}
#cart_summary  .cart_delete,
#cart_summary  .price_discount_del {border-right:none;text-align: center}
#cart_summary  .last_item  td {border-bottom:1px solid #999}
#cart_end tr.cart_total_price td{font-weight: bold;}
#cart_summary .cart_item.even{
    background: #f9f9fa
}
#cart_summary .cart_item.odd{
    background-color: #fff;
}
#cart_summary .customization.odd {
    background-color: #fff
}
#cart_summary .customization.even {
    background-color: #f3f3f3
}

#cart_summary .cart_discount{
    background: #1aacb9;
    color: #fff;
    font-weight:bold;
    border-color:#fff;
    text-align: center;
}
#cart_summary .cart_discount .cart_discount_name{
    text-align: center;
}
#cart_summary .cart_discount .cart_discount_desc{
    text-align: left;
}
#cart_summary ul {
    list-style: none;
}
#cart_summary  .cart_product  img {border:1px solid #f4f4f4}
#cart_summary .cart_description a{color:#0088cc}
#cart_summary .cart_description .prod_title a{color:#000;}
#cart_summary .cart_description h5 a {font-weight: normal;color:#333}
#cart_summary .customization .cart_quantity {padding: 8px 12px 0;}
.cart_quantity .cart_quantity_input {
    width: 38px;
    margin-left: 4px;
    margin-top: 4px;
}
.cart_quantity_down{
    height: 17px;
    width: 16px;
    background: url(../img/icon/quantity_down.gif) no-repeat 0 0;
    display: block;
    margin-top: -1px;
}
.cart_quantity_up{
    height: 17px;
    width: 16px;
    background: url(../img/icon/quantity_up.gif) no-repeat 0 0;
    display: block;
}
#cart_summary .cart_delete {
    text-align:center
}
#cart_summary .cart_discount_price {text-align: right}

.cart_delete a.cart_quantity_delete, .cart_delete a.gift_cart_delete{padding: 7px 8px 6px 8px}
.resum_voucher .discounts_active{
    background: #009499 ;
    color:#fff;
    padding: 7px;
    margin-bottom: 3px;
}
.resum_voucher .cart_discount_name {
    overflow: hidden;
}
.cart_discount .dentic-delete{
    color: #fff;
    font-size: 16px;
}
#cart_summary .cart_discount td.price_discount_del{
    background: #fff;
}

.cart_total_price .total_price_container {
    border-right:none;
}

#cart_summary .cart_total_price td.cart_voucher {
    border-bottom:1px solid #CECECE;
    vertical-align:middle;
    font-weight: bold;
}

#cart_summary #total_price_container {
    border-bottom:1px solid #CECECE;
}
#cart_summary .dentic-delete{font-size: 18px;}
#cart_vouchers_adder form{margin-top: 15px;}
.voucher_label {
    display: block;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #1d1e20;
    margin-bottom: 6px;
}
.voucher_row {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-width: 0;
}
.voucher_row #discount_name {
    flex: 1;
    min-width: 0;
    margin: 0;
}
.voucher_row .btn {
    flex: none;
    height: 42px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    font-size: 14px;
}
#cart_vouchers_adder p, #cart_vouchers_adder h4 {
    display: inline-block;
    font-size: 15px;
    margin: 5px 0;
    font-weight: bold;
}
#cart_vouchers_adder .voucher_name {
    background: #14B6C3;
    color: #fff;
    padding: 5px;
    font-weight: bold;
    cursor: pointer;
    display: inline-block;
    margin: 2px;
}

.cart_voucher h4,
.cart_voucher p {float:left;}
.cart_voucher h4 {
    margin-right:12px;
    padding:5px 0;
}
.cart_voucher p {padding-bottom:0;}
.cart_voucher #display_cart_vouchers {
    clear:both;
    line-height: 16px;
    color:#666;
    font-weight:normal;
    border-top:1px dotted #cecece
}
.cart_voucher #display_cart_vouchers .title_offers {margin-top:10px}
.cart_voucher #display_cart_vouchers span {font-weight:bold}
.cart_voucher input.discount_name {
    padding:0 5px;
    height:22px;
    width:170px;/* 180 */
    border:1px solid #cecece;
    font-weight:normal;
    background:url(../img/bg_discount_name.png) repeat-x 0 0 #fff
}
.cart_voucher .submit input.button {
    margin-left:2px;
    padding:2px;
    height:24px;
    border:1px solid #000;
    -moz-border-radius:0;
    -webkit-border-radius:0;
    border-radius:0;
    color:#fff;
    text-transform:uppercase;
    text-shadow:0 -1px 0 #333;
    background:url(../img/bg_cart_voucher_submit.png) repeat-x 0 0 #000
}
#discounts_resume .price_discount_del {
    text-align: right;
}
#cart_summary .price {
    color: #000;
    font-size: 16px;
}
#order-opc #opc_delivery_methods textarea{width: 97% !important;}
.delivery_option_carrier{width: auto !important;}
.addresses ul.address{width: 100% !important; float: none !important; height: auto !important;margin-left:0 !important}
.addresses ul.address:last-child{margin-top: 10px !important}
@media only screen and (min-width: 767px) and (max-width: 1000px) {
    #order-opc .delivery_option label > table.resume td{display: block;width: 100%; padding-bottom: 10px;padding-left: 20px; }
}
.buttons-acceder{
    display: none;
    border: 1px dashed #ccc;
    padding: 10px 0;
    margin: 10px;
}
.buttons-acceder div{text-align: center}
@media (max-width: 767px) {
    .span6{width: 100%; margin: 0;}
    .buttons-acceder{
        display: block;        
    }
    .summary_header{display: none;}
    .breake_mobile {
        margin-top: 20px;
    }
}

@media (max-width: 479px) {
    #order-opc .delivery_option label > table.resume td{display: block;width: 100%; padding-bottom: 10px;padding-left: 20px; }
    .cart_item .col-sm-7 {
        margin-top: 20px;
    }
}
.delivery_option_delay {
    font-weight: normal;
    font-size: 12px;
}

/* ============================================================
   Cart summary redesign (shopping-cart.tpl / shopping-cart-product-line.tpl)
   — based on the "Resumen Carrito" mockup in Claude Design. Two columns on
   desktop (product list + sticky order summary), stacked on mobile. The
   underlying PrestaShop data/AJAX (cart-summary.js: upQuantity/downQuantity/
   deleteProductFromSummary/updateCartSummary) is untouched — only the markup
   around the same ids/classes changed, so this is presentation-only.
   ============================================================ */
#cart_layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 32px;
    align-items: start;
    margin-top: 20px;
}
#cart_items_col {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}
.cart_items_card {
    border: 1px solid #e4eaf1;
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
}
.cart_row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 120px 150px 110px 44px;
    grid-template-areas: "info price qty total del";
    gap: 14px 16px;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid #e8e8e8;
}
.cart_items_card .cart_row:last-child {
    border-bottom: none;
}
/* #cart_summary .cart_item (below) is the pre-existing rule for the old
   table-row design (border on all 4 sides, its own margin/padding) — kept
   on the markup for cart-summary.js's refreshOddRow()/`.cart_item` selector,
   but its box model fights the flat grid row above (higher specificity via
   the #cart_summary id wins the shared properties otherwise). Neutralize it
   to the grid row's own look: border only from `.cart_row` above, no gap
   between rows. */
#cart_summary .cart_item {
    border: 0;
    border-bottom: 1px solid #e8e8e8;
    margin-bottom: 0;
    padding: 18px 20px;
}
#cart_summary .cart_item:last-child {
    border-bottom: none;
}
/* Rows are separated by the border above, not by zebra-striping (legacy
   #cart_summary .cart_item.even/.odd backgrounds from earlier in this file —
   refreshOddRow() in cart-summary.js still toggles those classes after an
   AJAX delete, so they have to stay in the markup; just flatten the look). */
#cart_summary .cart_item.even,
#cart_summary .cart_item.odd {
    background: #fff;
}
.cart_row.cart_row_header {
    padding: 12px 20px;
    background: #f7f9fc;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #6b7280;
}
.cart_header_price, .cart_header_total { text-align: right; grid-area: unset; }
.cart_header_qty { text-align: center; }
.cart_header_price_sub { text-transform: none; letter-spacing: 0; font-weight: 400; }

/* -- product line -- */
.cart_row_info {
    grid-area: info;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    min-width: 0;
}
.cart_row_img {
    flex-shrink: 0;
    width: 76px;
    height: 76px;
    border-radius: 12px;
    overflow: hidden;
    background: #e9f2fb;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cart_row_img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.cart_row_meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}
.cart_row_name {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.35;
    color: #1d1e20;
}
.cart_row_attributes {
    font-size: 13px;
    color: #6b7280;
}
.cart_row_badges {
    display: flex;
    align-items: center;
    gap: 6px 10px;
    flex-wrap: wrap;
}
.cart_row_ref {
    font-size: 12px;
    color: #6b7280;
}
.cart_row_pro {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 1px 7px;
    border: 1px solid #d6d6d6;
    border-radius: 5px;
    font-size: 12px;
    color: #3f4247;
}
.cart_row_pro img { display: block; }
.cart_row_stock {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    font-size: 13px;
    line-height: 18px;
    color: #3f4247;
}
.cart_stock_dot {
    width: 8px;
    height: 8px;
    margin-top: 5px;
    flex-shrink: 0;
    border-radius: 9999px;
}
.cart_stock_dot.cart_stock_in { background: #009499; }
.cart_stock_dot.cart_stock_partial { background: #e39a1c; }
.cart_stock_dot.cart_stock_out { background: #f06542; }
strong.cart_stock_in { color: #009499; }
strong.cart_stock_partial { color: #e39a1c; }
strong.cart_stock_out { color: #f06542; }

.cart_row_price {
    grid-area: price;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}
.cart_row_price .price {
    display: flex;
    flex-direction: column;
    align-items: inherit;
    gap: 2px;
}
.cart_row_price_old_row {
    display: flex;
    align-items: center;
    gap: 6px;
}
.cart_row_price_old {
    font-size: 13px;
    color: #9ca3af;
    text-decoration: line-through;
}
.cart_row_discount_badge {
    background: #009499;
    color: #fff;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 700;
    font-size: 11px;
    padding: 1px 5px;
    border-radius: 5px;
    white-space: nowrap;
}
.cart_row_price_now {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #1d1e20;
}

.cart_row_qty {
    grid-area: qty;
    display: flex;
    justify-content: center;
}
.cart_row_qty_fixed {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 700;
    font-size: 15px;
    color: #1d1e20;
}
/* Wrapper + boton look + campo de texto (pill, colores, icon sizing, input)
   ahora en themes/dentalcost/css/global.css — .cart_qty_stepper input[type="text"]
   cubre este input junto con el de la ficha de producto y el de cada variante,
   ya que los tres son el mismo <input type="text"> dentro de un .cart_qty_stepper.
   Nada que redeclarar aqui. */

.cart_row_total {
    grid-area: total;
    text-align: right;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 400;
    font-size: 17px;
    color: #1d1e20;
    white-space: nowrap;
}
.cart_row_del {
    grid-area: del;
    display: flex;
    justify-content: flex-end;
}
.cart_row_del .cart_quantity_delete {
    width: 40px;
    height: 40px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    transition: background .12s, color .12s;
}
.cart_row_del .cart_quantity_delete:hover {
    background: #fdecea;
    color: #f06542;
}

/* -- options / secondary actions below the list -- */
.cart_option_line { margin: 4px 0; font-size: 14px; color: #3f4247; }
.cart_pro_confirm { border-radius: 12px; }
.cart_secondary_actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.cart_pill_btn {
    display: flex;
    align-items: center;
    gap: 7px;
    height: 40px;
    padding: 0 16px;
    border-radius: 9999px;
    border: 1px solid #d6d6d6;
    background: #fff;
    font-weight: 500;
    font-size: 14px;
    color: #3f4247;
}
.cart_pill_btn:hover {
    border-color: rgb(28, 146, 219);
    color: rgb(28, 146, 219);
}
.cart_pill_btn.cart_pill_danger:hover {
    border-color: #f06542;
    color: #c2412a;
    background: #fdecea;
}

/* -- order summary aside -- */
#cart_summary_aside {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 24px;
    border: 1px solid #e4eaf1;
    border-radius: 16px;
    background: #fff;
    position: sticky;
    top: 96px;
}
#cart_summary_aside h2 {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: #1d1e20;
    margin: 0;
}
.cart_discount_chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 6px 6px 14px;
    border: 1px dashed rgb(28, 146, 219);
    border-radius: 9999px;
}
.cart_discount_chip_label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 700;
    font-size: 13px;
    color: rgb(28, 146, 219);
}
.cart_discount_chip_remove {
    width: 28px;
    height: 28px;
    border-radius: 9999px;
    background: rgb(237, 248, 255);
    color: rgb(28, 146, 219);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.cart_totals_table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 14px;
    color: #3f4247;
}
.cart_totals_table td {
    padding: 8px 0;
}
.cart_totals_table td:last-child {
    text-align: right;
}
.cart_totals_table tr.secound td {
    border-top: 1px solid #eef1f5;
    padding-top: 16px;
}
.cart_totals_table tr.cart_grand_total td {
    border-top: 1px solid #e4eaf1;
    padding-top: 18px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #1d1e20;
}
.cart_totals_table tr.cart_grand_total #total_price {
    font-weight: 400;
    font-size: 28px;
    letter-spacing: -.02em;
    color: #1d1e20;
}

/* -- discount code, collapsed behind a link by default -- */
#cart_vouchers_adder .voucher_toggle_link {
    display: flex;
    align-items: center;
    gap: 6px;
    border: none;
    background: none;
    padding: 0;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: rgb(28, 146, 219);
}
#cart_vouchers_adder form,
#cart_vouchers_adder .voucher_toggle_link {
    display: none;
}
#cart_vouchers_adder:not(.is_open) .voucher_toggle_link,
#cart_vouchers_adder.is_open form {
    display: flex;
}
#cart_vouchers_adder.is_open .voucher_label {
    display: none;
}
#cart_vouchers_adder .voucher_row #discount_name {
    border-radius: 9999px;
    text-transform: uppercase;
}

.cart_cta_btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 48px;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 16px;
    box-sizing: border-box;
}

#cart_mobile_cta {
    display: none;
}
/* global.css's .fixed_width is 990px wide from here up to 1240px (only
   fluid/mobile below 1000px, only 1240px+ above 1241px) — 1001-1240px is a
   fixed-at-990px zone of its own. Rather than stack to one column that
   whole way up (a normal-looking desktop width turning into a mobile-style
   single column felt wrong), narrow the aside and the row's own fixed
   columns just for this zone so the 2-column grid still fits; info still
   gets ~230px instead of collapsing to ~0. Keeps the true single-column
   stack for ≤1000px, matching the site's own mobile threshold. */
@media (min-width: 1001px) and (max-width: 1240px) {
    #cart_layout {
        grid-template-columns: minmax(0, 1fr) 300px;
        gap: 24px;
    }
    .cart_row {
        grid-template-columns: minmax(0, 1fr) 90px 120px 80px 36px;
        gap: 10px 12px;
        padding: 16px;
    }
    .cart_row_header {
        padding: 10px 16px;
    }
}
@media (max-width: 1000px) {
    #cart_layout {
        grid-template-columns: minmax(0, 1fr);
    }
    #cart_summary_aside {
        position: static;
    }
    /* The fixed CTA bar always covers the bottom ~73px of the viewport —
       that only matters at the very end of the scroll, where the footer
       sits. A margin on #cart_layout (before the footer) doesn't help: it
       just pushes the footer down, it doesn't give the PAGE extra scroll
       room past the footer's own bottom edge for the bar to clear it. The
       footer height varies (its link row can wrap to 2 lines on narrow
       screens), so reserve off the bar's real height, not a guess — this
       only runs on the order-opc page the bar exists on (:has() scopes it),
       so it doesn't add dead space under the footer anywhere else. */
    body:has(#cart_mobile_cta) .fullscreen-footer-wrap {
        margin-bottom: 89px;
    }
    /* Mobile uses the fixed bar below instead of the button inside the
       aside — same two-CTA pattern the old nav had (one button, shown in
       whichever spot applies), not two competing CTAs at once. */
    #cart_summary_aside .cart_cta_btn {
        display: none;
    }
    #cart_mobile_cta {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 40;
        padding: 12px 16px;
        background: #fff;
        border-top: 1px solid #e4eaf1;
        box-shadow: 0 -6px 16px -10px rgba(0, 0, 0, .18);
        box-sizing: border-box;
    }
    #cart_mobile_cta .cart_cta_btn {
        width: auto;
        flex-shrink: 0;
        padding: 0 24px;
    }
    .cart_mobile_cta_total {
        display: flex;
        flex-direction: column;
        line-height: 1.15;
    }
    .cart_mobile_cta_total_label {
        font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
        font-size: 12px;
        color: #6b7280;
    }
    .cart_mobile_cta_total_amount {
        font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
        font-weight: 800;
        font-size: 22px;
        color: #1d1e20;
    }
}
/* Stacked card layout (info on its own row, then price/qty/total/delete on
   a second row) — was max-width:680px (phones only), widened to match
   #cart_layout's own single-column breakpoint above (max-width:1000px):
   between that and 680px (tablet/iPad widths), .cart_row was still falling
   back to the 5-fixed-column desktop grid with no override, squeezing the
   product info column uncomfortably once the aside stacks below instead of
   beside it. */
@media (max-width: 1000px) {
    .cart_row:not(.cart_row_header) {
        grid-template-columns: minmax(0, 1fr) auto auto;
        grid-template-areas:
            "info info info"
            "price price price"
            "qty total del";
        row-gap: 10px;
    }
    .cart_row_header { display: none; }
    .cart_row_price { align-items: flex-start; }
    .cart_row_qty { justify-content: flex-start; }
}

/* ============================================================
   Checkout accordion (Entrega / Facturación / Transporte / Pago)
   — based on the "Checkout Dentalcost" mockup in Claude Design. Only one
   step open at a time; completed steps collapse to a one-line summary with
   an "Editar" link. The address/carrier/payment markup and AJAX wiring
   (order-opc.js, order-address.js) are untouched — this only adds step-card
   chrome + collapse/expand around the same ids (#address_delivery,
   #address_invoice, #carrier_area, #opc_payment_methods,
   .delivery_option_radio, etc). See checkout-steps.js for the state logic.
   ============================================================ */
.checkout_steps_col {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
/* #opc_account (order-address.tpl's own wrapper, kept for its loading-
   overlay) holds the Entrega + Facturación panels one level deeper than
   Transporte/Pago's — .checkout_steps_col's own `gap` only spaces its DIRECT
   children, so without this, Entrega and Facturación touched with 0 gap
   while every other pair of steps had 14px. */
#opc_account {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.checkout_step {
    border: 1px solid #e4eaf1;
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
    margin-bottom: 0; /* neutralizes bootstrap.css's .panel margin-bottom:20px —
                          .panel is needed for the collapse JS below */
    transition: box-shadow .15s, border-color .15s;
}
/* Open/closed animation + `aria-expanded` syncing come from Bootstrap's own
   Collapse plugin (already loaded site-wide, see FrontController.php's
   bootstrap.min.js): each step header is a `data-toggle="collapse"` trigger.
   There's no `data-parent` here — Bootstrap's built-in "close the other open
   panel" needs the collapsible bodies to be direct children of a `.panel`
   that's itself a direct child of `data-parent` (ours aren't: Entrega/
   Facturación sit inside #opc_account, needed for its loading-overlay), and
   worse, its lazy per-trigger re-sync (getParent(), run on every FIRST
   `.collapse()` call on ANY sibling) races the CSS transition of whichever
   step you just opened and can stomp its aria-expanded back to false before
   the animation finishes. order-opc.js's dcCheckoutCloseOthers() closes the
   other steps by hand instead, via plain `.collapse('hide')` calls. */
.checkout_step:has(.checkout_step_header[aria-expanded="true"]) {
    border-color: #c9dcf1;
    box-shadow: 0 12px 32px -20px rgba(30, 157, 224, .4);
}
.checkout_step_header {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
}
.checkout_step_num {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 700;
    font-size: 14px;
    background: #f2f5f9;
    color: #6b7280;
    transition: background .12s, color .12s;
}
.checkout_step_header[aria-expanded="true"] .checkout_step_num {
    background: rgb(28, 146, 219);
    color: #fff;
}
.checkout_step.step_done .checkout_step_num {
    background: #009499;
    color: #fff;
}
.checkout_step_num_check {
    display: none;
    font-size: 15px;
}
.checkout_step.step_done .checkout_step_num_digit { display: none; }
.checkout_step.step_done .checkout_step_num_check { display: block; }
.checkout_step_title_wrap {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.checkout_step_title {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: #1d1e20;
}
.checkout_step_summary {
    display: none;
    font-size: 14px;
    line-height: 1.4;
    color: #6b7280;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.checkout_step.step_done .checkout_step_header[aria-expanded="false"] .checkout_step_summary {
    display: -webkit-box;
}
.checkout_step_edit {
    display: none;
    flex-shrink: 0;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: rgb(28, 146, 219);
}
.checkout_step.step_done .checkout_step_header[aria-expanded="false"] .checkout_step_edit {
    display: block;
}
.checkout_step_chevron {
    flex-shrink: 0;
    font-size: 18px;
    color: rgb(28, 146, 219);
    transition: transform .15s;
}
.checkout_step_header[aria-expanded="true"] .checkout_step_chevron {
    transform: rotate(180deg);
}
.checkout_step_body {
    padding: 0 20px 20px;
}
.checkout_step_body.collapse:not(.in) {
    display: none;
}
.checkout_step_body_inner {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.checkout_step_next {
    display: flex;
    justify-content: flex-end;
    padding-top: 4px;
}

/* -- address options, shared by the Entrega + Facturación step bodies -- */
.checkout_addr_picker {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}
.checkout_addr_picker label {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 600;
    font-size: 13px;
    color: #1d1e20;
}
/* Plain site-standard <select> (global.css's own base rule) instead of the
   custom-styled one this had — and margin-bottom above, now that the step
   body's own gap is 0, to keep this visually separate from the address card
   that follows it. */
.checkout_addr_card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 16px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #f5f9fd;
    font-size: 14px;
    line-height: 1.5;
    color: #3f4247;
}
/* #address_invoice stays empty (and visually hidden here) when "usar la
   misma dirección" is checked — the JS that would normally mirror the
   delivery address's content into it targets a stale `ul#address_invoice`
   selector left over from an old PrestaShop 1.4 template structure, so it
   never actually runs against this div-based markup; nothing to fix there,
   just don't show the empty box. */
.checkout_addr_card:empty {
    display: none;
}
/* "Añadir nueva dirección de facturación" makes no sense while "usar la
   misma dirección" is checked (you're saying "reuse" and "add new" at the
   same time) — hide it until the checkbox is unchecked, same as
   #address_invoice_form already does via its own inline style. */
p.addressesAreEquals:has(#addressesAreEquals:checked) ~ .address_add {
    display: none;
}
.checkout_addr_card .address_title,
.checkout_addr_card .address_company { display: none; }
.checkout_addr_card .update_link {
    display: inline-block;
    margin-top: 4px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 600;
    font-size: 13px;
    color: rgb(28, 146, 219);
}
.checkout_addr_add {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    border-radius: 12px;
    border: 1px dashed #b9cde4;
    background: #fff;
    font-weight: 600;
    font-size: 14px;
    color: rgb(28, 146, 219);
}
.checkout_addr_add:hover { background: #f5f9fd; }
.checkout_same_billing {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #1d1e20;
    cursor: pointer;
}
.checkout_same_billing input {
    width: 18px;
    height: 18px;
    accent-color: rgb(28, 146, 219);
}

/* Neutralizes the legacy padded/tinted box (line ~116) that .order_carrier_content
   (step 3's content) and #payment_block (step 4's wrapper) used to need as their
   own card chrome — now that both sit inside a .checkout_step card, that inner
   box just doubles the padding/background. */
.checkout_step .order_carrier_content,
#payment_block {
    padding: 0;
    background: none;
    border-radius: 0;
}

/* -- carrier option rows — base rules moved here from global.css's old
   combined "#order ..., #order-opc ..." selectors (that file still has the
   #order half, for the non-opc /order.php flow which doesn't load this
   stylesheet) -- */
#order-opc .delivery_option_radio {
    float: left;
    margin: 21px 12px;
    display: none;
}
#order-opc .delivery_option label {
    display: block;
    padding-bottom: 5px;
    padding-top: 5px;
}
#order-opc .delivery_option.item {
    background: #fff;
}
#order-opc .delivery_option.alternate_item {
    border-top: 1px solid #cecece;
    background: #fff;
    border-bottom: 1px solid #cecece;
}
#order-opc .delivery_options_address .delivery_option_logo img { width: 90px; }
#order-opc .delivery_option_carrier .first_item {
    padding: 3px 5px 3px 12px;
    background: url(../img/arrow_right_2.png) no-repeat 3px 7px;
}

/* -- light polish on the existing carrier option rows, within the new card -- */
.checkout_step .delivery_option {
    border-radius: 12px;
    overflow: hidden;
}
.checkout_step .delivery_option label {
    border: 1px solid #e4eaf1;
    border-radius: 12px;
    display: block;
}
.checkout_step .delivery_option_radio:checked + label {
    background: #f5f9fd;
}
/* The carrier's own admin-configured logo image (a dentalcost-branded van
   PNG) is swapped for a plain shipping icon here — a generic icon reads
   more consistently against the rest of this card-based redesign than a
   per-carrier image asset would. */
.checkout_carrier_icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin: 5px;
    border-radius: 9999px;
    background: #e9f2fb;
    color: rgb(28, 146, 219);
    font-size: 24px;
}

/* The legacy #carrier_area{margin-bottom:20px} rule (line ~168) was sized for
   when carrier was its own standalone block — now it's one of 4 steps in
   .checkout_steps_col's own `gap`, so that extra margin stacked an uneven
   20px+14px gap before the Pago step while every other gap was just 14px. */
#carrier_area {
    margin-bottom: 0;
}

/* Guest gate replacing the address/carrier/payment accordion (order-opc.tpl)
   when not logged in — reuses .checkout_step for the same card chrome as the
   real steps, just centered single-message content instead of a form. */
.checkout_guest_gate {
    padding: 32px 24px;
    text-align: center;
}
.checkout_guest_gate p {
    margin: 0 0 16px;
    color: #565656;
    font-size: 15px;
}
.checkout_guest_gate .cart_cta_btn {
    max-width: 320px;
    margin: 0 auto;
}

/* -- order summary aside -- */
.checkout_layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 32px;
    align-items: start;
    margin-top: 14px;
}
#checkout_summary_aside {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 24px;
    border: 1px solid #e4eaf1;
    border-radius: 16px;
    background: #fff;
    position: sticky;
    top: 96px;
}
.checkout_summary_head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
/* #checkout_summary_aside prefix (not just .checkout_summary_head), so this
   beats the legacy "#order-opc h2 {margin:30px; margin-bottom:20px; ...}"
   rule above (classic non-opc page's section headings) — same specificity
   family (an ID + one more selector), and an ID always outranks a class no
   matter how many of the latter you stack, so a plain .checkout_summary_head
   h2 rule silently lost this margin override while matching display fine. */
#checkout_summary_aside .checkout_summary_head h2 {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: #1d1e20;
    margin: 0;
}
/* White pill button, same look as .checkout_addr_card .update_link's
   "Editar" links elsewhere in the checkout. */
#checkout_edit_cart {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    padding: 7px 14px;
    border: 1px solid #d6d6d6;
    border-radius: 9999px;
    background: #fff;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 600;
    font-size: 13px;
    color: rgb(28, 146, 219);
}
.checkout_summary_lines {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 14px;
    color: #3f4247;
}
.checkout_summary_row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}
.checkout_summary_row.secound {
    padding-top: 10px;
    border-top: 1px solid #eef1f5;
}
.checkout_summary_row.cart_grand_total {
    padding-top: 12px;
    border-top: 1px solid #e4eaf1;
    align-items: baseline;
}
.checkout_summary_row.cart_grand_total span:first-child {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #1d1e20;
}
.checkout_summary_row.cart_grand_total small {
    font-weight: 400;
    font-size: 12px;
    color: #6b7280;
}
#checkout_summary_total {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 400;
    font-size: 28px;
    letter-spacing: -.02em;
    color: #1d1e20;
}
#checkout_pay_btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 48px;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 16px;
    box-sizing: border-box;
}
.checkout_pay_hint {
    font-size: 12px;
    line-height: 1.4;
    color: #6b7280;
    text-align: center;
    margin-top: -8px;
}
@media (max-width: 1000px) {
    .checkout_layout {
        grid-template-columns: minmax(0, 1fr);
    }
    /* "en el móvil el resumen debe ir arriba del todo" — same grid, just
       reordered; a grid item's `order` works exactly like flex's. */
    #checkout_summary_aside {
        position: static;
        order: -1;
    }
}

/* -- Entrega/Facturación address card: tighter, buttons instead of stacked
   text links. buildAddressBlock() in order-address.tpl renders "Editar" and
   "Set as default" (or the static "this is your default" line) as two <a>
   separated by a literal <br> inside one .address_update div — hide the
   <br> and lay the links out as a button row instead. -- */
.checkout_addr_card {
    gap: 2px;
}
.checkout_addr_card .address_update {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}
.checkout_addr_card .address_update br {
    display: none;
}
.checkout_addr_card .update_link {
    display: inline-flex;
    align-items: center;
    margin-top: 0;
    padding: 7px 14px;
    border: 1px solid #d6d6d6;
    border-radius: 9999px;
    background: #fff;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 600;
    font-size: 13px;
}
.checkout_addr_card .update_link:not(.default_address) {
    color: rgb(28, 146, 219);
}
.checkout_addr_card .update_link:not(.default_address):hover {
    background: #f5f9fd;
}
.checkout_addr_card .update_link.default_address {
    color: #6b7280;
    border-color: #e4eaf1;
    cursor: default;
}
/* Same visual treatment as the "Mis direcciones" cards: name line
   emphasized, NIF/CIF + phone grouped onto one de-emphasized gray row
   (appendAddressList() in order-address.tpl wraps them in one
   .address_meta_row div so they share a line — dni/phone aren't adjacent in
   a country's normal field order, so plain sibling divs never would). */
.checkout_addr_card .address_firstname {
    font-weight: 500;
    color: #1d1e20;
}
.checkout_addr_card .address_meta_row {
    display: flex;
    gap: 6px 16px;
    flex-wrap: wrap;
    margin-top: 6px;
    color: #6b7280;
    font-size: 13px;
}

/* -- less dead air around the TOS checkbox / warning alert in Pago (and any
   other stray <p>/.alert inside a step body) — p{padding-bottom:10px} and
   .alert{margin-bottom:20px} (both legacy, global) stack on top of the
   12px flex gap .checkout_step_body_inner already provides. -- */
.checkout_step_body_inner > p,
.checkout_step_body_inner > .alert {
    padding-bottom: 0;
    margin-bottom: 0;
}

/* -- bigger, flex-laid-out checkboxes for the TOS/professional-use/gift/
   recyclable checkboxes, matching .checkout_same_billing's 18px elsewhere
   on this same page. The legacy `p.checkbox` positions its <input> with
   float+negative margin relying on the <p>'s own padding-left:20px to
   reserve space — doesn't scale to a bigger box, so switch to a normal flex
   row instead, same fix as global.css's own label.checkbox. -- */
.checkout_step_body_inner p.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding-left: 0;
    min-height: 0;
}
.checkout_step_body_inner p.checkbox input[type="checkbox"] {
    position: static;
    float: none;
    flex-shrink: 0;
    margin: 2px 0 0;
    width: 18px;
    height: 18px;
    accent-color: rgb(28, 146, 219);
}

/* -- rounded corners on payment module rows (.payment_module is the shared
   wrapper class every payment module renders its own markup into) -- */
#opc_payment_methods .payment_module {
    border-radius: 12px;
    overflow: hidden;
}

/* TOS/professional-use re-fetch spinner — order-payment.tpl now renders a
   plain <div class="loading"> (was an old animated ajax-loader gif); jQuery's
   .show()/.hide() in updatePaymentMethodsDisplay() just toggle its inline
   display, this is purely the resting + animated look. */
.paiement_block .loading {
    width: 26px;
    height: 26px;
    margin: 4px auto;
    border-radius: 9999px;
    border: 3px solid #e4eaf1;
    border-top-color: rgb(28, 146, 219);
    animation: checkout_spin .7s linear infinite;
}
@keyframes checkout_spin {
    to { transform: rotate(360deg); }
}

/* Payment methods are now visible before accepting the TOS (the override's
   _getPaymentMethods() no longer hides them), but picking one is still
   gated: a full-size overlay sits on top of #HOOK_PAYMENT, dimmed, until
   #cgv is checked — a click on it just nudges the user to the checkbox
   instead of letting the click through to whatever module markup is
   underneath (each payment module renders its own <a>/<form>/onclick, so
   blocking the click generically — rather than trying to intercept every
   possible module's own interaction — is the only approach that reliably
   covers all of them). */
#opc_payment_methods-content {
    position: relative;
}
.checkout_payment_gate {
    display: none;
}
#opc_payment_methods.tos_pending .checkout_payment_gate {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 5;
    cursor: pointer;
}
#opc_payment_methods.tos_pending #HOOK_PAYMENT {
    opacity: .5;
    pointer-events: none;
}
@keyframes checkout_shake {
    10%, 90% { transform: translateX(-2px); }
    20%, 80% { transform: translateX(4px); }
    30%, 50%, 70% { transform: translateX(-6px); }
    40%, 60% { transform: translateX(6px); }
}
.checkout_shake {
    animation: checkout_shake .4s;
}
.checkout_tos_nudge {
    max-height: 0;
    margin-top: 0;
    padding: 0 14px;
    overflow: hidden;
    opacity: 0;
    border-radius: 10px;
    background: #fdecea;
    color: #b23a22;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 600;
    font-size: 13px;
    line-height: 1.4;
    transition: max-height .2s ease, opacity .2s ease, padding .2s ease, margin-top .2s ease;
}
.checkout_tos_nudge.show {
    max-height: 60px;
    margin-top: 10px;
    padding: 10px 14px;
    opacity: 1;
}