/* Portal 2026 revision 13: componentes modernizados, sin modificar el monolito. */
:root{--p26-r13-accent:#ff7f00;--p26-r13-navy:#10264c;--p26-r13-border:#dce5f0;--p26-r13-muted:#657691}
/* Cesta: conservar columnas y AJAX originales, presentar metadatos bajo el nombre. */
body.portal26-cart .cuerpo_cesta_descripcion .p26-cart-format,body.portal26-cart .cuerpo_cesta_descripcion .p26-cart-ref,body.portal26-cart .cuerpo_cesta_descripcion .p26-cart-unit-price{display:block!important;font-size:11px!important;line-height:1.45!important;font-weight:400!important;color:#60738e!important;margin-top:3px!important}
body.portal26-cart .p26-cart-main .cuerpo_cesta_descripcion p{margin-bottom:4px!important}
/* Guardar cesta como lista: modal de dos destinos. */
body:has(.p26-save-list){font-family:Arial,sans-serif!important;background:#fff!important}
.p26-save-list{padding:19px 22px;color:#10264c;font:14px/1.5 Arial,sans-serif}
.p26-save-list p{color:#52647d;margin:0 0 18px;font-size:13px;line-height:1.5}
.p26-save-list label{font-weight:650;display:block;margin:8px 0 5px}
.p26-save-list .p26-save-option{display:flex;align-items:center;gap:9px;margin:15px 0 8px;color:#10264c;font-size:14px}
.p26-save-list .p26-save-option input{accent-color:#ff7f00;width:17px;height:17px;flex:none}
.p26-save-list input[type=text],.p26-save-list select{display:block;width:100%;height:39px;border:1px solid #cdd8e7;background:white;border-radius:5px;padding:8px 11px;color:#10264c;font-size:14px;box-sizing:border-box}
.p26-save-list input:disabled,.p26-save-list select:disabled{opacity:.55;background:#f4f6f9}
.p26-save-list .p26-save-actions{text-align:right;margin-top:20px}
.p26-save-list #btn_guardar_lista{background:#ff7f00!important;color:#fff!important;border:0!important;border-radius:5px!important;padding:11px 21px!important;font-weight:750!important;cursor:pointer!important}
body:has(.p26-save-list) .cabecera-dark{background:#fff!important;color:#10264c!important;border-bottom:1px solid #dce5f0!important;padding:15px 22px!important;font-size:19px!important;font-weight:800!important;height:auto!important;text-align:left!important}
body:has(.p26-save-list) .cabecera-dark>div{background:none!important;color:inherit!important;text-align:left!important;font-size:19px!important}
/* Mis listas: todas las acciones visibles en la misma fila, sin iframe horizontal. */
body.portal26-account .p26-lists-page,body.portal26-account .p26-lists-page #form_listas,body.portal26-account .p26-lists-page #form_listas #cuerpo,body.portal26-account .p26-lists-page #listado_listas{max-width:100%!important;min-width:0!important;overflow-x:visible!important}
body.portal26-account .p26-list-wrapper{padding:0!important;width:100%!important;min-width:0!important;max-width:100%!important}
body.portal26-account .p26-list-wrapper #listado_listas{padding:0!important;margin:0!important;max-width:100%!important}
body.portal26-account .p26-list-row{display:flex!important;align-items:center;justify-content:space-between;gap:18px;min-height:75px;padding:15px 12px;border-bottom:1px solid #e1e7ef;box-sizing:border-box;min-width:0}
body.portal26-account .p26-list-row:last-child{border-bottom:0}
body.portal26-account .p26-list-name{display:flex;align-items:center;gap:10px;flex:1 1 auto;min-width:0;flex-wrap:wrap}
body.portal26-account .p26-list-symbol{color:#60738d;font-size:23px;line-height:1}
body.portal26-account .p26-list-row input.input-lista{font-size:14px!important;font-weight:750!important;background:transparent!important;border:1px solid transparent!important;padding:8px 5px!important;color:#10264c!important;width:clamp(110px,35%,340px)!important;min-width:0!important;flex:1 1 170px!important;box-shadow:none!important}
body.portal26-account .p26-list-row input.input-lista:focus,body.portal26-account .p26-list-row input.input-lista:not([readonly]){background:white!important;border-color:#ff7f00!important;outline:0!important}
body.portal26-account .p26-list-count{font-size:12px;color:#687791;white-space:nowrap}
body.portal26-account .p26-list-actions{display:flex;align-items:center;justify-content:flex-end;gap:9px;flex:0 0 auto}
body.portal26-account .p26-list-icon-button{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border:1px solid #dce5ef!important;background:#fff!important;border-radius:5px!important;color:#10264c!important;padding:7px!important;text-decoration:none!important;cursor:pointer!important}
body.portal26-account .p26-list-icon-button:hover{border-color:#ff7f00!important;color:#ff7f00!important}
body.portal26-account .p26-list-icon-button svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8}
body.portal26-account .p26-list-delete{color:#e44444!important}
body.portal26-account .p26-list-view{height:36px;border:0!important;border-radius:5px!important;background:#ff7f00!important;color:#fff!important;padding:0 15px!important;font-weight:750!important;cursor:pointer!important;white-space:nowrap}
body.portal26-account #form_listas #pie{padding:12px 0!important}
body.portal26-account #form_listas #pie>div{display:inline-flex;align-items:center;gap:8px;color:#ff7f00;font-weight:700;cursor:pointer;padding:10px 0}
/* Tramitación: presentación limpia de los bloques de proveedor. No intervenir en cálculos. */
body.portal26-checkout{background:#fff!important;font-family:Arial,sans-serif;color:#10264c}
body.portal26-checkout #content.p26-checkout-page{margin:25px auto 55px!important;max-width:1360px!important;width:calc(100% - 48px)!important;min-height:0!important;padding:0!important}
body.portal26-checkout .cesta_tramitar{background:transparent!important;padding:0!important;border:0!important;margin:0!important}
body.portal26-checkout .cesta_tramitar #contenido,body.portal26-checkout .cesta_tramitar form{max-width:100%!important}
body.portal26-checkout .cesta_tramitar .detalle{border:0!important;margin:0!important;padding:0!important;background:transparent!important}
body.portal26-checkout .cesta_tramitar .framework{background:#fff!important;border:1px solid #dce5f0!important;border-radius:7px!important;padding:19px 23px!important;margin:0 0 20px!important;box-shadow:0 2px 10px rgba(21,39,69,.035)!important;max-width:100%!important;overflow-x:auto!important}
body.portal26-checkout .cesta_tramitar .framework h3,body.portal26-checkout .cesta_tramitar .nombre_proveedor{font-size:19px!important;color:#10264c!important;font-weight:800!important}
body.portal26-checkout .cesta_tramitar .titulo_observaciones{color:#455a77!important;font-size:13px!important;font-weight:700!important;padding:5px 0 8px!important}
body.portal26-checkout .cesta_tramitar textarea{width:100%!important;max-width:100%!important;min-height:79px!important;border:1px solid #cbd8e7!important;border-radius:5px!important;box-sizing:border-box!important;padding:11px!important;background:white!important;color:#10264c!important}
body.portal26-checkout .cesta_tramitar table.listado_cesta{width:100%!important;max-width:100%!important;min-width:640px!important;border-collapse:collapse!important;background:#fff!important;margin-top:12px!important;box-shadow:none!important}
body.portal26-checkout .cesta_tramitar table.listado_cesta th{font-size:12px!important;font-weight:750!important;background:#f4f6f9!important;color:#10264c!important;text-transform:none!important;white-space:normal!important;border-bottom:1px solid #dce5ef!important;padding:12px!important}
body.portal26-checkout .cesta_tramitar table.listado_cesta td{font-size:13px!important;color:#10264c!important;background:#fff!important;padding:12px 10px!important;border-bottom:1px solid #e9edf3!important;vertical-align:middle!important;height:auto!important}
body.portal26-checkout .cesta_tramitar table.listado_cesta td.cuerpo_cesta_descripcion{min-width:190px!important;line-height:1.5!important;font-weight:650!important}
body.portal26-checkout .cesta_tramitar table.listado_cesta tr.totales td,body.portal26-checkout .cesta_tramitar table.listado_cesta tr.listado_cesta_total td{background:#f6f8fb!important;font-weight:750!important}
body.portal26-checkout .cesta_tramitar input.input-cesta-unidades{font-size:15px!important;text-align:center!important;width:47px!important;height:37px!important;border:1px solid #d2dce9!important;border-radius:0!important;padding:4px!important;display:inline-block!important}
body.portal26-checkout .p26-checkout-qty{display:inline-flex!important;align-items:center!important;vertical-align:middle!important;border:1px solid #dce5ef!important;border-radius:5px!important;overflow:hidden!important;white-space:nowrap!important}
body.portal26-checkout .p26-checkout-qty button{width:30px!important;height:37px!important;background:#f2f5f9!important;color:#10264c!important;border:0!important;font-size:19px!important;cursor:pointer!important}
body.portal26-checkout .cesta_tramitar .cuerpo_cesta_eliminar img{width:19px!important;height:19px!important;object-fit:contain!important}
body.portal26-checkout #btn_confirmar_pedido{background:#ff7f00!important;border:0!important;border-radius:5px!important;color:white!important;font-weight:800!important;padding:12px 23px!important;min-height:43px!important}
body.portal26-checkout .cesta_tramitar .framework:last-child{margin-bottom:0!important}
/* Ficha: dos columnas principales y secciones inferiores sin introducir funcionalidades. */
body.portal26-product-detail{background:#fff!important;color:#10264c!important}
body.portal26-product-detail #content.p26-detail-page{max-width:1360px!important;width:calc(100% - 48px)!important;margin:22px auto 70px!important;padding:0!important;min-height:0!important}
body.portal26-product-detail #content .ficha-tabla{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:30px!important;align-items:start!important;margin:15px 0 35px!important;width:100%!important}
body.portal26-product-detail #content .ficha-tabla>.col-lg-4{float:none!important;width:100%!important;max-width:none!important;min-width:0!important;flex:none!important;padding:0!important}
body.portal26-product-detail #content .ficha-tabla>#btn-ampliar{grid-column:1;grid-row:1;min-height:320px!important;border:1px solid #e0e7f0!important;border-radius:7px!important;padding:22px!important;text-align:center!important}
body.portal26-product-detail #content .ficha-tabla>#btn-ampliar .imagen-ficha{min-height:275px!important;display:flex;align-items:center;justify-content:center}
body.portal26-product-detail #content .ficha-tabla>#btn-ampliar img{max-width:100%!important;max-height:440px!important;object-fit:contain!important}
body.portal26-product-detail #content .ficha-tabla>.ficha-col-3{grid-column:2;grid-row:1;border:1px solid #e0e7f0;border-radius:7px;padding:22px!important;background:#fff}
body.portal26-product-detail #content .ficha-tabla>.ficha-col-4{grid-column:1/-1;grid-row:auto;max-width:100%!important;padding:17px 22px!important;background:#fff!important;border:1px solid #e0e7f0!important;border-radius:7px!important}
body.portal26-product-detail .titulo-ficha,body.portal26-product-detail .titulo-ficha p{color:#10264c!important;font-size:26px!important;line-height:1.2!important;font-weight:800!important;text-transform:none!important;margin:6px 0 8px!important}
body.portal26-product-detail .ref-ficha{color:#72809a!important;font-size:12px!important;margin-bottom:10px!important}
body.portal26-product-detail .precio_producto{display:block!important;float:none!important;min-height:0!important;margin:13px 0!important;color:#10264c!important;font-size:27px!important;font-weight:850!important}
body.portal26-product-detail .precio_producto_txt{font-size:13px!important;color:#61738d!important;margin:0 0 14px!important}
body.portal26-product-detail .btn-add-cesta{max-width:100%!important;margin:12px 0!important;float:none!important}
body.portal26-product-detail .btn-add-cesta .btn-add-cesta-controls-btn{background:#ff7f00!important;color:#fff!important;border-radius:5px!important;cursor:pointer!important}
body.portal26-product-detail .btn-add-cesta .btn-add-cesta-controls-btn a,body.portal26-product-detail .btn-add-cesta .btn-add-cesta-controls-btn i{color:#fff!important}
body.portal26-product-detail .datosProveedor{font-size:13px!important;color:#4b5e79!important;line-height:1.65!important}
body.portal26-product-detail .productos-relacionados{background:#fff!important;border-bottom:1px solid #dce5ef!important;color:#10264c!important;font-size:20px!important;font-weight:800!important;padding:14px 0!important;margin:25px 0 15px!important;text-transform:none!important}
body.portal26-product-detail .productos-relacionados>div{color:#10264c!important}
body.portal26-product-detail #contenedor-resultados{max-width:100%!important}
body.portal26-product-detail #contenedor-resultados .caja-container{border-color:#dce5ef!important;border-radius:6px!important}
@media(max-width:850px){body.portal26-product-detail #content .ficha-tabla{grid-template-columns:1fr!important;gap:14px!important}body.portal26-product-detail #content .ficha-tabla>#btn-ampliar,body.portal26-product-detail #content .ficha-tabla>.ficha-col-3,body.portal26-product-detail #content .ficha-tabla>.ficha-col-4{grid-column:1!important;grid-row:auto!important}body.portal26-product-detail .titulo-ficha,body.portal26-product-detail .titulo-ficha p{font-size:23px!important}}
@media(max-width:650px){body.portal26-account .p26-list-row{align-items:flex-start!important;flex-direction:column!important;gap:9px!important}body.portal26-account .p26-list-actions{width:100%!important;justify-content:flex-end!important}body.portal26-checkout #content.p26-checkout-page,body.portal26-product-detail #content.p26-detail-page{width:calc(100% - 24px)!important}}
