/*
 * Custom code goes here.
 * A template should always ship with an empty custom.css
 */
.it_SFWULQNQQKCW{
    display:none;
}

#js-product-list-header{
    display: none;
}

body:not(#index) #wrapper .content-wrapper{
    padding-top: 0;
}

.h3 products-section-title{
    color:#333;
}
.jxfeatured-posts .post-meta, .jxfeatured-posts .post-meta .post-author a, .jxfeatured-posts .products-section-title{
    color:#333;
}
.jxfeatured-posts .bp-name{
    color:#333;
}

.it_ILGPSREGMFYM{
    display:none;
}

@media (min-width: 1200px){
    .mt-xl-5, .my-xl-5 {
        margin-top:0;
    } 
}

#store-6 .store-picture, #store-6 address, #store-6 .divide-left{
    display:none !important;
}

#store-6 .store-description{
    flex:none;
    max-width:100%;
    width:100%;
}

#payment-option-4-container img{
    width:32px;
}

.artist-sponsor .jxml-html-title{
    display:none;
}

.artist-sponsor .jxml-html-description h3 a{
    font-size:3.35714rem;
}

.jxfeatured-posts .products-section-title{
    display:none;
}

.bp-thumbnail{
    max-width:370px;
}

.blog-posts .bp-info{
    display:none;
}

#wrapper .newsletter-home .block-newsletter, .row, main .products{
    margin-right:0;
}

.aviso-sin-iva .jxml-html-title{
    display:none;
}

.aviso-sin-iva{
    text-align:center;
}

#content-hook_order_confirmation h2.mb-6{
    font-size:2.6em;
}

#content-hook_order_confirmation h2.mb-6 small{
    display:block;
}

.page-stores h1{
    font-size:1.8em;
}

.contact-rich .col-sm-6{
    flex: 0 0 100%;
    max-width: 100%;
}


.contact-rich p,.contact-rich p.number{
    font-size: 1.3rem;
    color: #333;
}

.contact-rich p.h3{
    font-size:1.7rem;
}

#dir-contacto{
    display:none;
}

.post-meta{
    display:none;
}

.breadcrumb{
    display:none !important;
}

/**********************************
    LUIS CAMBRA EXTRA STYLES
**********************************/

/**********************************
        GENERAL STYLES
**********************************/
/**********************************
        END GENERAL STYLES
**********************************/

/**********************************
        HEADER STYLES
**********************************/
.ps_shoppingcart .dropdown-menu {
    padding: 1.5rem;
}
.ps_shoppingcart .block-cart-body .cart-summary-header {
    line-height: 1;
    margin-bottom: 20px;
    font-size: 2.143rem;
    font-weight: 600;
    position: relative;
    top: -5px;
}
.ps_shoppingcart .block-cart-body .product-title {
    font-size: 14px;
}
#cart-summary-product-list .cart-summary-product-item .cart-product-quantity {
    height: 2.571rem;
    width: 3.214rem;
    line-height: 2.571rem;
}
.ps_shoppingcart .block-cart-body #cart-summary-product-list {
    overflow-y: auto;
    max-height: 370px;
}
.cart-footer {
    display: flex;
    flex-direction: column;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
}
.cart-footer .btn-link {
    order: 2;
    text-align: center;
    margin-top: 10px;
    border: 1px solid;
    -ms-border-radius: 26px;
    -moz-border-radius: 26px;
    -webkit-border-radius: 26px;
    border-radius: 26px;
    padding: 5px 5px 5px 15px;
    font-size: 18px;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.cart-footer > span.link {
    display: inline-block;
    line-height: 22px;
}
.cart-footer > span.link::before {
    content: '\E314';
    font-family: "Material Icons";
    font-size: 18px;
    vertical-align: middle;
}
/**********************************
        END HEADER STYLES
**********************************/

/**********************************
        FOOTER STYLES
**********************************/
/**********************************
        END FOOTER STYLES
**********************************/

/**********************************
        HOME PAGE STYLES
**********************************/
/**********************************
        END HOME PAGE STYLES
**********************************/

/**********************************
        CATEGORY PAGE STYLES
**********************************/
/**********************************
        END CATEGORY PAGE STYLES
**********************************/

/**********************************
        PRODUCT LIST STYLES
**********************************/
/**********************************
        END PRODUCT LIST STYLES
**********************************/

/**********************************
        PRODUCT PAGE STYLES
**********************************/
#product .product-ean13 {
    padding: 0 0 5px;
    font-weight: bold;
    color: #212121;
    position: relative;
    top: -10px;
}
#product .product-ean13 span {
    border: 1px solid;
    padding: 4px 8px;
}
#product .product-ean13:before {
    content: 'EAN-13:';
    padding-right: 5px;
}
#product .social-sharing .fa-twitter:before {
    content: '';
    background-image: url('/themes/PROD-24101/assets/css/twitter_new.svg');
    width: 15px;
    height: 15px;
    display: inline-block;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    top: 3px;
}
/**********************************
        END PRODUCT PAGE STYLES
**********************************/

/**********************************
        CART PAGE STYLES
**********************************/
#cart #loyalty {
    border: 2px solid #00abf1;
    color: #282828;
    padding: 15px 25px;
    text-align: left;
    font-size: 16px;
    -ms-border-radius: 10px;
    -moz-border-radius: 10px;
    -webkit-border-radius: 10px;
    border-radius: 10px;
}
#cart #loyalty br {
    margin-top: 10px;
    display: block;
}

@media (max-width: 767px){
    #cart #loyalty {
        padding: 10px 15px;
        text-align: left;
        font-size: 12px;
        line-height: 1.3;
    }
}

/**********************************
        END CART PAGE STYLES
**********************************/

/**********************************
        CHECKOUT PAGE STYLES
**********************************/
/**********************************
        END CHECKOUT PAGE STYLES
**********************************/

/**********************************
    END LUIS CAMBRA EXTRA STYLES
**********************************/


/**********************************
  PROTON CUSTOMER NATIVE SKIN V1
  Diseño visual sobre estructura nativa PrestaShop.
  No cambia lógica, enlaces ni plantillas.
**********************************/

/* Base área cliente */
body#history #wrapper,
body#order-detail #wrapper,
body#my-account #wrapper,
body#addresses #wrapper,
body#identity #wrapper,
body#order-slip #wrapper {
  background: #f6f9fc;
}

body#history #main,
body#order-detail #main,
body#my-account #main,
body#addresses #main,
body#identity #main,
body#order-slip #main {
  max-width: 1180px;
  margin: 0 auto 60px;
  padding: 0 18px;
}

body#history .page-header h1,
body#order-detail .page-header h1,
body#my-account .page-header h1,
body#addresses .page-header h1,
body#identity .page-header h1,
body#order-slip .page-header h1,
body#history h1,
body#order-detail h1 {
  font-size: 42px;
  line-height: 1.1;
  font-weight: 700;
  color: #0f172a;
  margin: 38px 0 26px;
  letter-spacing: -0.03em;
}

/* Intro historial */
body#history .page-content > h6 {
  background: linear-gradient(135deg, #031122 0%, #07314b 55%, #00a9e9 100%);
  color: #fff;
  border-radius: 22px;
  padding: 24px 28px;
  margin: 0 0 22px;
  box-shadow: 0 18px 42px rgba(0, 40, 70, .18);
  font-size: 15px;
  font-weight: 500;
}

/* Tablas generales del área cliente */
body#history table.table,
body#order-detail table.table {
  width: 100%;
  background: transparent;
  border-collapse: separate;
  border-spacing: 0 10px;
  margin-bottom: 24px;
}

body#history table.table thead th,
body#order-detail table.table thead th {
  background: #031122;
  color: #fff;
  border: none !important;
  padding: 15px 16px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 800;
}

body#history table.table thead th:first-child,
body#order-detail table.table thead th:first-child {
  border-radius: 16px 0 0 16px;
}

body#history table.table thead th:last-child,
body#order-detail table.table thead th:last-child {
  border-radius: 0 16px 16px 0;
}

body#history table.table tbody tr,
body#order-detail table.table tbody tr {
  box-shadow: 0 12px 32px rgba(15, 23, 42, .045);
}

body#history table.table tbody td,
body#history table.table tbody th,
body#order-detail table.table tbody td,
body#order-detail table.table tbody th {
  background: #fff !important;
  border: none !important;
  border-top: 1px solid #e7eef5 !important;
  border-bottom: 1px solid #e7eef5 !important;
  padding: 16px;
  color: #334155;
  vertical-align: middle;
  font-size: 14px;
}

body#history table.table tbody tr td:first-child,
body#history table.table tbody tr th:first-child,
body#order-detail table.table tbody tr td:first-child,
body#order-detail table.table tbody tr th:first-child {
  border-left: 1px solid #e7eef5 !important;
  border-radius: 16px 0 0 16px;
}

body#history table.table tbody tr td:last-child,
body#history table.table tbody tr th:last-child,
body#order-detail table.table tbody tr td:last-child,
body#order-detail table.table tbody tr th:last-child {
  border-right: 1px solid #e7eef5 !important;
  border-radius: 0 16px 16px 0;
}

body#history table.table tbody tr:hover td,
body#history table.table tbody tr:hover th,
body#order-detail table.table tbody tr:hover td,
body#order-detail table.table tbody tr:hover th {
  background: #f8fcff !important;
}

/* Referencia de pedido */
body#history table.table tbody th[scope="row"] {
  color: #0f172a;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .03em;
}

/* Estados */
body#history .label.label-pill,
body#order-detail .label.label-pill {
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  line-height: 1;
  box-shadow: 0 7px 16px rgba(0,0,0,.08);
}

/* Acciones historial */
body#history .order-actions {
  white-space: nowrap;
}

body#history .order-actions a,
body#history td a[href*="order-detail"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 9px 15px;
  border-radius: 999px;
  background: #00a9e9;
  color: #fff !important;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none !important;
  box-shadow: 0 10px 22px rgba(0,169,233,.22);
}

body#history .order-actions a:hover,
body#history td a[href*="order-detail"]:hover {
  background: #008fc7;
}

/* Icono factura como botón */
body#history td a[href*="pdf-invoice"],
body#history td a[href*="controller=pdf-invoice"],
body#history td a[href*="invoice"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #f0f8fc;
  border: 1px solid #d6edf8;
  color: #031122 !important;
  text-decoration: none !important;
}

/* Cajas detalle pedido */
body#order-detail #order-infos > .bg-light,
body#order-detail #order-history,
body#order-detail #order-detail,
body#order-detail .addresses,
body#order-detail .box,
body#order-detail .order-message-form,
body#order-detail div.bg-light.p-3.mb-3 {
  background: #fff !important;
  border: 1px solid #e6eef5;
  border-radius: 22px;
  box-shadow: 0 14px 36px rgba(15, 23, 42, .055);
  padding: 24px !important;
  margin-bottom: 24px !important;
}

/* Primera tarjeta del detalle */
body#order-detail #order-infos > .bg-light:first-child {
  background: linear-gradient(135deg, #031122 0%, #07314b 55%, #00a9e9 100%) !important;
  color: #fff;
}

body#order-detail #order-infos > .bg-light:first-child strong {
  color: #fff;
  font-size: 18px;
}

/* Datos de transportista/pago */
body#order-detail #order-infos ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

body#order-detail #order-infos li {
  background: #f8fbfd;
  border: 1px solid #edf4f8;
  border-radius: 14px;
  padding: 12px 14px;
  color: #334155;
}

body#order-detail #order-infos li a {
  color: #00a9e9;
  font-weight: 800;
  text-decoration: none;
}

/* Timeline pedido */
body#order-detail #order-history h3 {
  font-size: 19px;
  color: #0f172a;
  font-weight: 800;
  margin-bottom: 18px;
}

/* Direcciones en tarjetas */
body#order-detail .addresses {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

body#order-detail .addresses .col-lg-6,
body#order-detail .addresses .col-md-6,
body#order-detail .addresses .col-sm-6 {
  width: auto;
  max-width: none;
  padding: 0;
}

body#order-detail .addresses article.box {
  height: 100%;
  margin: 0 !important;
  box-shadow: none;
}

body#order-detail .addresses h4 {
  color: #0f172a;
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 14px;
}

body#order-detail address {
  color: #475569;
  line-height: 1.7;
}

/* Productos */
body#order-detail #order-products {
  margin-bottom: 0;
}

body#order-detail #order-products strong a,
body#order-detail .order-items .name {
  color: #0f172a;
  font-weight: 800;
  text-decoration: none;
}

/* Totales */
body#order-detail #order-products tfoot td {
  background: #f8fbfd !important;
  font-weight: 700;
}

body#order-detail #order-products tfoot tr:last-child td {
  color: #0f172a;
  font-size: 16px;
  font-weight: 900;
}

/* Mensajes */
body#order-detail .order-message-form h3,
body#order-detail .messages h3 {
  color: #0f172a;
  font-size: 19px;
  font-weight: 800;
}

body#order-detail .order-message-form .form-control,
body#order-detail .order-message-form .custom-select {
  border-radius: 14px;
  border: 1px solid #dbe8f0;
  background: #f8fbfd;
  min-height: 46px;
}

body#order-detail .order-message-form textarea.form-control {
  min-height: 120px;
}

/* Botones */
body#order-detail .btn.btn-primary,
body#order-detail .form-control-submit,
body#order-detail .button-primary,
body#history .btn.btn-primary {
  background: #00a9e9 !important;
  border-color: #00a9e9 !important;
  color: #fff !important;
  border-radius: 999px !important;
  padding: 12px 24px !important;
  font-weight: 800 !important;
  letter-spacing: .03em;
  box-shadow: 0 10px 22px rgba(0,169,233,.22);
}

body#order-detail .btn.btn-primary:hover,
body#order-detail .form-control-submit:hover,
body#order-detail .button-primary:hover {
  background: #008fc7 !important;
  border-color: #008fc7 !important;
}

/* Enlaces volver */
body#order-detail .account-link,
body#history .account-link {
  color: #0f172a;
  font-weight: 700;
  text-decoration: none;
}

/* Responsive */
@media (max-width: 767px) {
  body#history #main,
  body#order-detail #main {
    padding: 0 14px;
  }

  body#history h1,
  body#order-detail h1 {
    font-size: 32px;
  }

  body#history .orders .order,
  body#order-detail .order-items,
  body#order-detail .order-totals,
  body#order-detail .shipping-lines {
    background: #fff;
    border: 1px solid #e6eef5;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .055);
    padding: 18px;
    margin-bottom: 14px;
  }

  body#history .orders .order h3 {
    font-size: 20px;
    color: #0f172a;
  }

  body#order-detail .addresses {
    grid-template-columns: 1fr;
  }

  body#order-detail #order-infos > .bg-light,
  body#order-detail #order-history,
  body#order-detail .box,
  body#order-detail .order-message-form {
    padding: 18px !important;
    border-radius: 18px;
  }
}

/**********************************
  END PROTON CUSTOMER NATIVE SKIN V1
**********************************/





/**********************************
  PROTON CUSTOMER HISTORY CLEAN FIX
**********************************/

body#history table.table {
  table-layout: fixed;
}

body#history table.table thead th:nth-child(1),
body#history table.table tbody th:nth-child(1) {
  width: 17%;
}

body#history table.table thead th:nth-child(2),
body#history table.table tbody td:nth-child(2) {
  width: 12%;
}

body#history table.table thead th:nth-child(3),
body#history table.table tbody td:nth-child(3) {
  width: 11%;
}

body#history table.table thead th:nth-child(4),
body#history table.table tbody td:nth-child(4) {
  width: 25%;
}

body#history table.table thead th:nth-child(5),
body#history table.table tbody td:nth-child(5) {
  width: 14%;
}

body#history table.table thead th:nth-child(6),
body#history table.table tbody td:nth-child(6) {
  width: 9%;
  text-align: center !important;
}

body#history table.table thead th:nth-child(7),
body#history table.table tbody td:nth-child(7) {
  width: 12%;
  text-align: center !important;
}

/* Evitar rectángulos/fondos raros entre factura y botón */
body#history table.table tbody td:nth-child(6),
body#history table.table tbody td:nth-child(7) {
  background: #fff !important;
  box-shadow: none !important;
  overflow: hidden;
}

/* Icono factura limpio */
body#history table.table tbody td:nth-child(6) a {
  display: inline-flex !important;
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  padding: 0 !important;
  border-radius: 12px !important;
  align-items: center !important;
  justify-content: center !important;
  background: #f0f8fc !important;
  border: 1px solid #d6edf8 !important;
  box-shadow: none !important;
  color: #031122 !important;
  text-decoration: none !important;
}

body#history table.table tbody td:nth-child(6) a i {
  font-size: 17px !important;
  line-height: 1 !important;
}

/* Botón Datos más limpio */
body#history .order-actions a[data-link-action="view-order-details"] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 82px !important;
  height: 38px !important;
  padding: 0 15px !important;
  border-radius: 999px !important;
  background: #00a9e9 !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  box-shadow: 0 8px 18px rgba(0, 169, 233, .22) !important;
}

body#history .order-actions a[data-link-action="view-order-details"]:hover {
  background: #008fc7 !important;
}

/* Desactivar cualquier resto de documentos en historial */
body#history .proton-customer-docs-mini,
body#history .proton-customer-doc,
body#history .proton-doc-mini {
  display: none !important;
}

/**********************************
  END PROTON CUSTOMER HISTORY CLEAN FIX
**********************************/

/**********************************
  PROTON ORDER DETAIL DUPLICATE FIX
  Oculta bloques móviles nativos en escritorio.
**********************************/

/* En escritorio, ocultar bloques móviles duplicados */
@media (min-width: 768px) {
  body#order-detail .order-items.hidden-md-up,
  body#order-detail .order-totals.hidden-md-up,
  body#order-detail .shipping-lines.hidden-md-up,
  body#order-detail .history-lines.d-md-none,
  body#order-detail .hidden-md-up {
    display: none !important;
  }

  body#order-detail #order-products.hidden-sm-down,
  body#order-detail table.hidden-sm-down,
  body#order-detail table.d-none.d-md-block {
    display: table !important;
  }

  body#order-detail .box.hidden-sm-down {
    display: block !important;
  }
}

/* En móvil, ocultar tablas de escritorio cuando corresponda */
@media (max-width: 767px) {
  body#order-detail .hidden-sm-down,
  body#order-detail table.hidden-sm-down,
  body#order-detail table.d-none.d-md-block,
  body#order-detail .box.hidden-sm-down {
    display: none !important;
  }

  body#order-detail .order-items.hidden-md-up,
  body#order-detail .order-totals.hidden-md-up,
  body#order-detail .shipping-lines.hidden-md-up {
    display: block !important;
  }
}

/* Limpiar separación de tarjetas después de ocultar duplicados */
body#order-detail .order-totals.hidden-md-up + .bg-light,
body#order-detail .order-items.hidden-md-up + .order-totals.hidden-md-up {
  margin-top: 0 !important;
}

/**********************************
  END PROTON ORDER DETAIL DUPLICATE FIX
**********************************/

/**********************************
  PROTON HISTORY DOC ICONS EXACT
**********************************/

body#history .tp-history-actions-inner {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  flex-wrap: nowrap !important;
}

body#history .tp-history-doc-icons {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  flex-wrap: nowrap !important;
}

body#history .tp-doc-icon {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  border-radius: 12px !important;
  border: 1px solid #d6edf8 !important;
  background: #f0f8fc !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  box-shadow: none !important;
}

body#history .tp-doc-icon span {
  font-size: 9px !important;
  font-weight: 950 !important;
  letter-spacing: .04em !important;
  line-height: 1 !important;
  color: #031122 !important;
}

body#history .tp-doc-icon-delivery {
  background: #eaf9ff !important;
  border-color: #aeeaff !important;
}

body#history .tp-doc-icon-delivery span {
  color: #008fc7 !important;
}

body#history .tp-doc-icon-credit {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
}

body#history .tp-doc-icon-proforma {
  background: #f4efff !important;
  border-color: #d8c7ff !important;
}

body#history .tp-doc-icon-proforma span {
  color: #7c3aed !important;
}

body#history .tp-history-access {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 86px !important;
  height: 38px !important;
  padding: 0 15px !important;
  border-radius: 999px !important;
  background: #00a9e9 !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
  letter-spacing: .03em !important;
  text-decoration: none !important;
  box-shadow: 0 8px 18px rgba(0,169,233,.22) !important;
}

body#history .tp-history-access:hover {
  background: #008fc7 !important;
}

body#history .tp-history-reorder {
  font-size: 11px !important;
  color: #64748b !important;
  text-decoration: none !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
}

@media (max-width: 767px) {
  body#history .tp-history-actions-inner {
    justify-content: flex-start !important;
    flex-wrap: wrap !important;
  }
}
/**********************************
  END PROTON HISTORY DOC ICONS EXACT
**********************************/

/**********************************
  TPV5 CUSTOMER DOCS FINAL CLEAN
**********************************/

body#history .tpv5-history-table {
  table-layout: fixed !important;
}

body#history .tpv5-history-table th:nth-child(1),
body#history .tpv5-history-table td:nth-child(1) { width: 14% !important; }

body#history .tpv5-history-table th:nth-child(2),
body#history .tpv5-history-table td:nth-child(2) { width: 10% !important; }

body#history .tpv5-history-table th:nth-child(3),
body#history .tpv5-history-table td:nth-child(3) { width: 10% !important; }

body#history .tpv5-history-table th:nth-child(4),
body#history .tpv5-history-table td:nth-child(4) { width: 19% !important; }

body#history .tpv5-history-table th:nth-child(5),
body#history .tpv5-history-table td:nth-child(5) { width: 13% !important; }

body#history .tpv5-history-table th:nth-child(6),
body#history .tpv5-history-table td:nth-child(6) { width: 11% !important; }

body#history .tpv5-history-table th:nth-child(7),
body#history .tpv5-history-table td:nth-child(7) { width: 21% !important; }

body#history .tpv5-history-table th:nth-child(8),
body#history .tpv5-history-table td:nth-child(8) { width: 12% !important; }

body#history .tpv5-history-invoice,
body#history .tpv5-history-documents,
body#history .tpv5-history-action {
  text-align: center !important;
  vertical-align: middle !important;
}

body#history .tpv5-docs-list {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 7px !important;
  flex-wrap: nowrap !important;
}

body#history .tpv5-doc-btn {
  min-width: 70px !important;
  height: 44px !important;
  padding: 5px 8px !important;
  border-radius: 14px !important;
  border: 1px solid #d6edf8 !important;
  background: #f0f8fc !important;
  display: inline-flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  box-shadow: none !important;
  color: #0f172a !important;
  overflow: visible !important;
}

body#history .tpv5-doc-btn span {
  display: block !important;
  color: #031122 !important;
  font-size: 10px !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  letter-spacing: .04em !important;
  text-transform: uppercase !important;
  opacity: 1 !important;
  visibility: visible !important;
}

body#history .tpv5-doc-btn small {
  display: block !important;
  margin-top: 4px !important;
  color: #64748b !important;
  font-size: 9px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  opacity: 1 !important;
  visibility: visible !important;
}

body#history .tpv5-doc-delivery {
  background: #eaf9ff !important;
  border-color: #aeeaff !important;
}

body#history .tpv5-doc-delivery span {
  color: #008fc7 !important;
}

body#history .tpv5-doc-credit {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
}

body#history .tpv5-doc-proforma {
  background: #f4efff !important;
  border-color: #d8c7ff !important;
}

body#history .tpv5-doc-proforma span {
  color: #7c3aed !important;
}

body#history .tpv5-access {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 96px !important;
  height: 42px !important;
  padding: 0 16px !important;
  border-radius: 999px !important;
  background: #00a9e9 !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 950 !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  box-shadow: 0 8px 18px rgba(0,169,233,.22) !important;
}

body#history .tpv5-access:hover {
  background: #008fc7 !important;
}

body#history .tpv5-reorder {
  display: block !important;
  margin-top: 5px !important;
  font-size: 11px !important;
  color: #64748b !important;
  text-decoration: none !important;
}

body#history .tpv5-empty {
  color: #94a3b8 !important;
  font-weight: 900 !important;
}

/* Panel documentos dentro del pedido */
body#order-detail .tpv5-order-documents-panel {
  background: #fff !important;
  border: 1px solid #e6eef5 !important;
  border-radius: 22px !important;
  box-shadow: 0 14px 36px rgba(15, 23, 42, .055) !important;
  padding: 24px !important;
  margin: 0 0 24px !important;
}

body#order-detail .tpv5-order-documents-heading h3 {
  margin: 0 0 5px !important;
  color: #0f172a !important;
  font-size: 22px !important;
  font-weight: 950 !important;
  line-height: 1.15 !important;
}

body#order-detail .tpv5-order-documents-heading p {
  margin: 0 0 18px !important;
  color: #64748b !important;
  font-size: 14px !important;
}

body#order-detail .tpv5-order-documents-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

body#order-detail .tpv5-order-doc-card {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  min-height: 82px !important;
  padding: 15px !important;
  border-radius: 18px !important;
  border: 1px solid #dcecf4 !important;
  background: #f8fbfd !important;
  color: #0f172a !important;
  text-decoration: none !important;
}

body#order-detail .tpv5-order-doc-card:hover {
  background: #ecf9ff !important;
  border-color: #aeeaff !important;
  box-shadow: 0 12px 30px rgba(0,169,233,.12) !important;
}

body#order-detail .tpv5-order-doc-code {
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  border-radius: 14px !important;
  background: #031122 !important;
  color: #fff !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 11px !important;
  font-weight: 950 !important;
  letter-spacing: .04em !important;
  text-transform: uppercase !important;
}

body#order-detail .tpv5-order-doc-delivery .tpv5-order-doc-code {
  background: #00a9e9 !important;
}

body#order-detail .tpv5-order-doc-credit .tpv5-order-doc-code {
  background: #111827 !important;
}

body#order-detail .tpv5-order-doc-proforma .tpv5-order-doc-code {
  background: #7c3aed !important;
}

body#order-detail .tpv5-order-doc-text strong,
body#order-detail .tpv5-order-doc-text small {
  display: block !important;
}

body#order-detail .tpv5-order-doc-text strong {
  color: #0f172a !important;
  font-size: 14px !important;
  font-weight: 950 !important;
}

body#order-detail .tpv5-order-doc-text small {
  margin-top: 4px !important;
  color: #64748b !important;
  font-size: 12px !important;
  font-weight: 800 !important;
}

@media (max-width: 1199px) {
  body#order-detail .tpv5-order-documents-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body#history .tpv5-doc-btn {
    min-width: 52px !important;
  }

  body#history .tpv5-doc-btn small {
    display: none !important;
  }
}

@media (max-width: 767px) {
  body#order-detail .tpv5-order-documents-grid {
    grid-template-columns: 1fr !important;
  }

  body#history .tpv5-history-table {
    display: none !important;
  }

  body#history .tpv5-history-mobile-card {
    background: #fff !important;
    border: 1px solid #e6eef5 !important;
    border-radius: 18px !important;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .055) !important;
    padding: 18px !important;
    margin-bottom: 14px !important;
  }

  body#history .tpv5-history-mobile-head {
    display: flex !important;
    justify-content: space-between !important;
    gap: 12px !important;
    align-items: flex-start !important;
    margin-bottom: 14px !important;
  }

  body#history .tpv5-history-mobile-head h3 {
    margin: 0 !important;
    color: #0f172a !important;
    font-size: 20px !important;
    font-weight: 900 !important;
  }

  body#history .tpv5-history-mobile-meta {
    display: grid !important;
    gap: 10px !important;
    margin-bottom: 14px !important;
  }

  body#history .tpv5-history-mobile-meta div {
    display: flex !important;
    justify-content: space-between !important;
    gap: 12px !important;
    border-top: 1px solid #edf4f8 !important;
    padding-top: 8px !important;
  }

  body#history .tpv5-history-mobile-docs,
  body#history .tpv5-docs-list {
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
  }
}

/**********************************
  END TPV5 CUSTOMER DOCS FINAL CLEAN
**********************************/

/**********************************
  TPV6 CUSTOMER AREA DOCUMENTS ONE COLUMN
**********************************/

body#history .tpv6-history-table {
  table-layout: fixed !important;
  width: 100% !important;
}

body#history .tpv6-history-table th:nth-child(1),
body#history .tpv6-history-table td:nth-child(1) { width: 15% !important; }

body#history .tpv6-history-table th:nth-child(2),
body#history .tpv6-history-table td:nth-child(2) { width: 10% !important; }

body#history .tpv6-history-table th:nth-child(3),
body#history .tpv6-history-table td:nth-child(3) { width: 10% !important; }

body#history .tpv6-history-table th:nth-child(4),
body#history .tpv6-history-table td:nth-child(4) { width: 20% !important; }

body#history .tpv6-history-table th:nth-child(5),
body#history .tpv6-history-table td:nth-child(5) { width: 13% !important; }

body#history .tpv6-history-table th:nth-child(6),
body#history .tpv6-history-table td:nth-child(6) { width: 22% !important; }

body#history .tpv6-history-table th:nth-child(7),
body#history .tpv6-history-table td:nth-child(7) { width: 10% !important; }

body#history .tpv6-history-documents,
body#history .tpv6-history-action {
  text-align: center !important;
  vertical-align: middle !important;
}

body#history .tpv6-docs-list {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
  gap: 7px !important;
}

body#history .tpv6-doc-btn {
  min-width: 62px !important;
  height: 42px !important;
  padding: 5px 8px !important;
  border-radius: 14px !important;
  border: 1px solid #d6edf8 !important;
  background: #f0f8fc !important;
  display: inline-flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  color: #0f172a !important;
  line-height: 1 !important;
}

body#history .tpv6-doc-btn span {
  display: block !important;
  color: #031122 !important;
  font-size: 10px !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  letter-spacing: .04em !important;
  text-transform: uppercase !important;
}

body#history .tpv6-doc-btn small {
  display: block !important;
  margin-top: 4px !important;
  color: #64748b !important;
  font-size: 9px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

body#history .tpv6-doc-delivery {
  background: #eaf9ff !important;
  border-color: #aeeaff !important;
}

body#history .tpv6-doc-delivery span {
  color: #008fc7 !important;
}

body#history .tpv6-doc-credit {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
}

body#history .tpv6-doc-proforma {
  background: #f4efff !important;
  border-color: #d8c7ff !important;
}

body#history .tpv6-doc-proforma span {
  color: #7c3aed !important;
}

body#history .tpv6-access {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 92px !important;
  height: 42px !important;
  padding: 0 14px !important;
  border-radius: 999px !important;
  background: #00a9e9 !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 950 !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  box-shadow: 0 8px 18px rgba(0,169,233,.22) !important;
}

body#history .tpv6-access:hover {
  background: #008fc7 !important;
}

body#history .tpv6-reorder {
  display: block !important;
  margin-top: 5px !important;
  font-size: 11px !important;
  color: #64748b !important;
  text-decoration: none !important;
}

body#history .tpv6-empty {
  color: #94a3b8 !important;
  font-weight: 900 !important;
}

/* Ocultar bloque superior redundante dentro del detalle: transportista/pago/factura */
body#order-detail #order-infos > .bg-light:nth-of-type(2) {
  display: none !important;
}

/* Panel documentos detalle */
body#order-detail .tpv6-order-documents-panel {
  background: #fff !important;
  border: 1px solid #e6eef5 !important;
  border-radius: 22px !important;
  box-shadow: 0 14px 36px rgba(15, 23, 42, .055) !important;
  padding: 24px !important;
  margin: 0 0 24px !important;
}

body#order-detail .tpv6-order-documents-heading h3 {
  margin: 0 0 5px !important;
  color: #0f172a !important;
  font-size: 22px !important;
  font-weight: 950 !important;
  line-height: 1.15 !important;
  text-transform: uppercase;
}

body#order-detail .tpv6-order-documents-heading p {
  margin: 0 0 18px !important;
  color: #64748b !important;
  font-size: 14px !important;
}

body#order-detail .tpv6-order-documents-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

body#order-detail .tpv6-order-doc-card {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  min-height: 82px !important;
  padding: 15px !important;
  border-radius: 18px !important;
  border: 1px solid #dcecf4 !important;
  background: #f8fbfd !important;
  color: #0f172a !important;
  text-decoration: none !important;
}

body#order-detail .tpv6-order-doc-card:hover {
  background: #ecf9ff !important;
  border-color: #aeeaff !important;
  box-shadow: 0 12px 30px rgba(0,169,233,.12) !important;
}

body#order-detail .tpv6-order-doc-code {
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  border-radius: 14px !important;
  background: #031122 !important;
  color: #fff !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 11px !important;
  font-weight: 950 !important;
  letter-spacing: .04em !important;
  text-transform: uppercase !important;
}

body#order-detail .tpv6-order-doc-delivery .tpv6-order-doc-code {
  background: #00a9e9 !important;
}

body#order-detail .tpv6-order-doc-credit .tpv6-order-doc-code {
  background: #111827 !important;
}

body#order-detail .tpv6-order-doc-proforma .tpv6-order-doc-code {
  background: #7c3aed !important;
}

body#order-detail .tpv6-order-doc-text strong,
body#order-detail .tpv6-order-doc-text small {
  display: block !important;
}

body#order-detail .tpv6-order-doc-text strong {
  color: #0f172a !important;
  font-size: 14px !important;
  font-weight: 950 !important;
}

body#order-detail .tpv6-order-doc-text small {
  margin-top: 4px !important;
  color: #64748b !important;
  font-size: 12px !important;
  font-weight: 800 !important;
}

/* Mensajes del pedido: mejorar sin tocar lógica */
body#order-detail .box.messages,
body#order-detail .order-message-form {
  background: #fff !important;
  border: 1px solid #e6eef5 !important;
  border-radius: 22px !important;
  box-shadow: 0 14px 36px rgba(15, 23, 42, .055) !important;
  padding: 24px !important;
  margin-bottom: 24px !important;
}

body#order-detail .box.messages h3,
body#order-detail .order-message-form h3 {
  color: #0f172a !important;
  font-size: 22px !important;
  font-weight: 950 !important;
  text-transform: uppercase;
}

body#order-detail .box.messages .message {
  border-top: 1px solid #edf4f8;
  padding: 14px 0;
}

body#order-detail .order-message-form textarea,
body#order-detail .order-message-form select {
  border: 1px solid #dcecf4 !important;
  border-radius: 14px !important;
  background: #f8fbfd !important;
  padding: 12px 14px !important;
}

@media (max-width: 1199px) {
  body#order-detail .tpv6-order-documents-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body#history .tpv6-doc-btn {
    min-width: 54px !important;
  }

  body#history .tpv6-doc-btn small {
    display: none !important;
  }
}

@media (max-width: 767px) {
  body#order-detail .tpv6-order-documents-grid {
    grid-template-columns: 1fr !important;
  }

  body#history .tpv6-history-table {
    display: none !important;
  }

  body#history .tpv6-history-mobile-card {
    background: #fff !important;
    border: 1px solid #e6eef5 !important;
    border-radius: 18px !important;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .055) !important;
    padding: 18px !important;
    margin-bottom: 14px !important;
  }

  body#history .tpv6-history-mobile-head {
    display: flex !important;
    justify-content: space-between !important;
    gap: 12px !important;
    align-items: flex-start !important;
    margin-bottom: 14px !important;
  }

  body#history .tpv6-history-mobile-head h3 {
    margin: 0 !important;
    color: #0f172a !important;
    font-size: 20px !important;
    font-weight: 900 !important;
  }

  body#history .tpv6-history-mobile-meta {
    display: grid !important;
    gap: 10px !important;
    margin-bottom: 14px !important;
  }

  body#history .tpv6-history-mobile-meta div {
    display: flex !important;
    justify-content: space-between !important;
    gap: 12px !important;
    border-top: 1px solid #edf4f8 !important;
    padding-top: 8px !important;
  }

  body#history .tpv6-docs-list {
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
  }
}

/**********************************
  END TPV6 CUSTOMER AREA DOCUMENTS ONE COLUMN
**********************************/

/**********************************
  TPV7 HISTORY DOCUMENT ICONS CLEAN
**********************************/

body#history .tpv6-history-table th:nth-child(6),
body#history .tpv6-history-table td:nth-child(6) {
  width: 22% !important;
}

body#history .tpv6-history-table th:nth-child(7),
body#history .tpv6-history-table td:nth-child(7) {
  width: 10% !important;
}

body#history .tpv6-docs-list {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-wrap: nowrap !important;
  gap: 8px !important;
  min-width: 0 !important;
}

body#history .tpv6-doc-btn {
  width: 42px !important;
  min-width: 42px !important;
  max-width: 42px !important;
  height: 42px !important;
  padding: 0 !important;
  border-radius: 14px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  overflow: hidden !important;
  text-decoration: none !important;
}

body#history .tpv6-doc-btn span {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 12px !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  letter-spacing: .02em !important;
  text-transform: uppercase !important;
  width: 100% !important;
  height: 100% !important;
}

body#history .tpv6-doc-btn small {
  display: none !important;
}

/* Símbolos internos más claros */
body#history .tpv6-doc-invoice span {
  font-size: 11px !important;
}

body#history .tpv6-doc-delivery span {
  font-size: 11px !important;
}

body#history .tpv6-doc-credit span {
  font-size: 13px !important;
}

body#history .tpv6-doc-proforma span {
  font-size: 11px !important;
}

/* Colores por documento */
body#history .tpv6-doc-invoice {
  background: #f1f5f9 !important;
  border-color: #dbe7f0 !important;
}

body#history .tpv6-doc-delivery {
  background: #eaf9ff !important;
  border-color: #aeeaff !important;
}

body#history .tpv6-doc-credit {
  background: #eef2f7 !important;
  border-color: #cbd5e1 !important;
}

body#history .tpv6-doc-proforma {
  background: #f4efff !important;
  border-color: #d8c7ff !important;
}

body#history .tpv6-doc-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(15, 23, 42, .12) !important;
}

body#history .tpv6-access {
  min-width: 86px !important;
  max-width: 92px !important;
  padding: 0 12px !important;
  white-space: nowrap !important;
}

/* Evitar que el botón acceder se vaya fuera */
body#history .tpv6-history-action {
  overflow: visible !important;
}

body#history .tpv6-history-table td {
  vertical-align: middle !important;
}

/**********************************
  END TPV7 HISTORY DOCUMENT ICONS CLEAN
**********************************/

/**********************************
  TPV7 ORDER SUPPORT FORM FINAL
**********************************/

body#order-detail .tpv7-order-messages-thread,
body#order-detail .tpv7-order-support-box {
  background: #fff !important;
  border: 1px solid #e6eef5 !important;
  border-radius: 22px !important;
  box-shadow: 0 14px 36px rgba(15, 23, 42, .055) !important;
  padding: 26px !important;
  margin-bottom: 24px !important;
}

body#order-detail .tpv7-order-messages-thread h3,
body#order-detail .tpv7-order-support-box h3 {
  color: #0f172a !important;
  font-size: 22px !important;
  font-weight: 950 !important;
  line-height: 1.15 !important;
  text-transform: uppercase !important;
  margin: 0 0 14px !important;
}

body#order-detail .tpv7-support-header p {
  color: #64748b !important;
  font-size: 14px !important;
  margin: 0 0 22px !important;
}

body#order-detail .tpv7-order-message-line {
  border-top: 1px solid #edf4f8 !important;
  padding: 16px 0 !important;
  margin: 0 !important;
}

body#order-detail .tpv7-order-message-meta strong {
  color: #0f172a !important;
  font-weight: 900 !important;
}

body#order-detail .tpv7-order-message-meta span {
  color: #94a3b8 !important;
  font-size: 12px !important;
}

body#order-detail .tpv7-order-message-body {
  color: #334155 !important;
  font-size: 14px !important;
}

body#order-detail .tpv7-support-fields label {
  color: #0f172a !important;
  font-weight: 800 !important;
}

body#order-detail .tpv7-order-support-box textarea,
body#order-detail .tpv7-order-support-box select {
  border: 1px solid #dcecf4 !important;
  border-radius: 14px !important;
  background: #f8fbfd !important;
  padding: 12px 14px !important;
  box-shadow: none !important;
}

body#order-detail .tpv7-order-support-box textarea {
  min-height: 120px !important;
}

body#order-detail .tpv7-order-support-box button[name="submitMessage"] {
  border: 0 !important;
  border-radius: 999px !important;
  background: #00a9e9 !important;
  color: #fff !important;
  padding: 13px 28px !important;
  font-size: 13px !important;
  font-weight: 950 !important;
  text-transform: uppercase !important;
  box-shadow: 0 10px 25px rgba(0,169,233,.22) !important;
}

body#order-detail .tpv7-order-support-box button[name="submitMessage"]:hover {
  background: #008fc7 !important;
}

/**********************************
  END TPV7 ORDER SUPPORT FORM FINAL
**********************************/

/**********************************
  TPV9 FORCE SUPPORT CENTER NO PRODUCT
**********************************/

/* Oculta el selector de producto aunque el template antiguo siga cargando */
body#order-detail .order-message-form .form-fields .form-group:has(select[name="id_product"]) {
  display: none !important;
}

/* Centrar todo el bloque */
body#order-detail .order-message-form {
  text-align: center !important;
  padding: 38px 28px !important;
}

body#order-detail .order-message-form header {
  max-width: 720px !important;
  margin: 0 auto 24px auto !important;
  text-align: center !important;
}

body#order-detail .order-message-form header h3 {
  max-width: 680px !important;
  margin: 0 auto 12px auto !important;
  text-align: center !important;
  color: #0f172a !important;
  font-size: 25px !important;
  line-height: 1.15 !important;
  font-weight: 950 !important;
  text-transform: uppercase !important;
}

body#order-detail .order-message-form header p {
  max-width: 650px !important;
  margin: 0 auto !important;
  text-align: center !important;
  color: #64748b !important;
  font-size: 15px !important;
  line-height: 1.55 !important;
}

/* Convertir la fila antigua en bloque centrado */
body#order-detail .order-message-form .form-fields {
  max-width: 680px !important;
  margin: 0 auto !important;
}

body#order-detail .order-message-form .form-fields .form-group {
  display: block !important;
  margin: 0 auto 22px auto !important;
  text-align: left !important;
}

body#order-detail .order-message-form .form-fields .form-group label {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  flex: none !important;
  padding: 0 !important;
  margin: 0 0 8px 0 !important;
  color: #0f172a !important;
  font-weight: 900 !important;
  font-size: 13px !important;
  text-transform: uppercase !important;
  letter-spacing: .04em !important;
}

body#order-detail .order-message-form .form-fields .form-group > div {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  flex: none !important;
  padding: 0 !important;
  margin: 0 auto !important;
}

body#order-detail .order-message-form textarea[name="msgText"] {
  display: block !important;
  width: 100% !important;
  max-width: 680px !important;
  min-height: 165px !important;
  margin: 0 auto !important;
  border: 1px solid #dcecf4 !important;
  border-radius: 18px !important;
  background: #f8fbfd !important;
  padding: 16px 18px !important;
  color: #0f172a !important;
  font-size: 15px !important;
  line-height: 1.5 !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7) !important;
}

body#order-detail .order-message-form textarea[name="msgText"]:focus {
  outline: none !important;
  border-color: #00a9e9 !important;
  box-shadow: 0 0 0 4px rgba(0,169,233,.12) !important;
}

body#order-detail .order-message-form .form-footer {
  text-align: center !important;
}

body#order-detail .order-message-form button[name="submitMessage"] {
  margin: 0 auto !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #00a9e9 !important;
  color: #fff !important;
  padding: 14px 34px !important;
  font-size: 13px !important;
  font-weight: 950 !important;
  letter-spacing: .04em !important;
  text-transform: uppercase !important;
  box-shadow: 0 12px 28px rgba(0,169,233,.25) !important;
}

body#order-detail .order-message-form button[name="submitMessage"]:hover {
  background: #008fc7 !important;
  transform: translateY(-1px) !important;
}

/**********************************
  END TPV9 FORCE SUPPORT CENTER NO PRODUCT
**********************************/

/**********************************
  TPV10 SUPPORT BLUE CENTERED FINAL
**********************************/

/* Caja exterior más limpia y centrada */
body#order-detail .order-message-form,
body#order-detail .tpv8-order-support-box,
body#order-detail .tpv7-order-support-box {
  background: linear-gradient(135deg, #f2fbff 0%, #ffffff 62%, #eef9ff 100%) !important;
  border: 1px solid #b9e8fb !important;
  border-radius: 28px !important;
  box-shadow: 0 18px 45px rgba(0, 169, 233, .10), 0 12px 36px rgba(15, 23, 42, .06) !important;
  padding: 34px 38px !important;
  margin-bottom: 30px !important;
  text-align: center !important;
}

/* Contenido realmente centrado y ancho */
body#order-detail .order-message-form form,
body#order-detail .tpv8-support-inner,
body#order-detail .tpv7-support-inner {
  width: 100% !important;
  max-width: 900px !important;
  margin: 0 auto !important;
  text-align: center !important;
}

/* Encabezado con pastilla azulada */
body#order-detail .order-message-form header,
body#order-detail .tpv8-support-header,
body#order-detail .tpv7-support-header {
  max-width: 900px !important;
  margin: 0 auto 24px auto !important;
  padding: 22px 26px !important;
  border-radius: 22px !important;
  background: linear-gradient(135deg, #031122 0%, #06314a 52%, #00a9e9 100%) !important;
  box-shadow: 0 14px 34px rgba(0,169,233,.16) !important;
  text-align: center !important;
}

/* Título en una línea en escritorio */
body#order-detail .order-message-form header h3,
body#order-detail .tpv8-support-header h3,
body#order-detail .tpv7-support-header h3 {
  color: #ffffff !important;
  font-size: clamp(18px, 1.55vw, 24px) !important;
  line-height: 1.15 !important;
  font-weight: 950 !important;
  text-transform: uppercase !important;
  letter-spacing: .02em !important;
  margin: 0 auto 10px auto !important;
  max-width: none !important;
  white-space: nowrap !important;
  text-align: center !important;
}

body#order-detail .order-message-form header p,
body#order-detail .tpv8-support-header p,
body#order-detail .tpv7-support-header p {
  color: #d8f3ff !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
  margin: 0 auto !important;
  max-width: 760px !important;
  text-align: center !important;
}

/* Ocultar selector de producto aunque el template antiguo siga cargando */
body#order-detail .order-message-form .form-fields .form-group:has(select[name="id_product"]) {
  display: none !important;
}

/* Formulario centrado */
body#order-detail .order-message-form .form-fields,
body#order-detail .tpv8-support-fields,
body#order-detail .tpv7-support-fields {
  max-width: 760px !important;
  margin: 0 auto !important;
}

body#order-detail .order-message-form .form-group {
  display: block !important;
  margin: 0 auto 20px auto !important;
  text-align: left !important;
}

body#order-detail .order-message-form .form-group label {
  display: block !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 0 8px 0 !important;
  color: #0f172a !important;
  font-weight: 950 !important;
  font-size: 13px !important;
  text-transform: uppercase !important;
  letter-spacing: .04em !important;
}

body#order-detail .order-message-form .form-group > div {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 auto !important;
  display: block !important;
}

body#order-detail .order-message-form textarea[name="msgText"] {
  width: 100% !important;
  max-width: 760px !important;
  min-height: 170px !important;
  margin: 0 auto !important;
  border: 1px solid #b9e8fb !important;
  border-radius: 20px !important;
  background: #ffffff !important;
  padding: 18px 20px !important;
  color: #0f172a !important;
  font-size: 15px !important;
  line-height: 1.5 !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 8px 24px rgba(15,23,42,.035) !important;
}

body#order-detail .order-message-form textarea[name="msgText"]:focus {
  outline: none !important;
  border-color: #00a9e9 !important;
  box-shadow: 0 0 0 4px rgba(0,169,233,.14), 0 8px 24px rgba(15,23,42,.04) !important;
}

body#order-detail .order-message-form .form-footer {
  text-align: center !important;
}

body#order-detail .order-message-form button[name="submitMessage"] {
  margin: 0 auto !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #00a9e9 !important;
  color: #fff !important;
  padding: 15px 38px !important;
  font-size: 13px !important;
  font-weight: 950 !important;
  letter-spacing: .04em !important;
  text-transform: uppercase !important;
  box-shadow: 0 13px 30px rgba(0,169,233,.28) !important;
}

body#order-detail .order-message-form button[name="submitMessage"]:hover {
  background: #008fc7 !important;
  transform: translateY(-1px) !important;
}

/* Si en móvil no cabe, permitimos salto */
@media (max-width: 991px) {
  body#order-detail .order-message-form header h3,
  body#order-detail .tpv8-support-header h3,
  body#order-detail .tpv7-support-header h3 {
    white-space: normal !important;
    font-size: 20px !important;
  }

  body#order-detail .order-message-form,
  body#order-detail .tpv8-order-support-box,
  body#order-detail .tpv7-order-support-box {
    padding: 24px 16px !important;
  }
}

/**********************************
  END TPV10 SUPPORT BLUE CENTERED FINAL
**********************************/

/**********************************
  TPV11 CUSTOMER AREA GRADIENT UNIFIED
**********************************/

body#history,
body#order-detail {
  background: #f5f8fc !important;
}

/* Degradado Proton reutilizable en cabeceras principales */
body#history .tpv6-history-intro,
body#history .tpv5-history-intro,
body#history .customer-area-intro,
body#order-detail #order-infos > .bg-light:first-child,
body#order-detail .tpv5-order-reference,
body#order-detail .tpv6-order-reference {
  background: linear-gradient(135deg, #031122 0%, #06314a 52%, #00a9e9 100%) !important;
  color: #ffffff !important;
  border: 0 !important;
  border-radius: 20px !important;
  box-shadow: 0 14px 34px rgba(0,169,233,.16) !important;
}

/* Cabecera de tablas: productos, estados, envío, historial */
body#history .tpv6-history-table thead,
body#history .tpv6-history-table thead tr,
body#history .tpv5-history-table thead,
body#history .tpv5-history-table thead tr,
body#order-detail table#order-products thead,
body#order-detail table#order-products thead tr,
body#order-detail #order-history table thead,
body#order-detail #order-history table thead tr,
body#order-detail table.table thead,
body#order-detail table.table thead tr {
  background: linear-gradient(135deg, #031122 0%, #041b31 58%, #00a9e9 140%) !important;
}

body#history .tpv6-history-table thead th,
body#history .tpv5-history-table thead th,
body#order-detail table#order-products thead th,
body#order-detail #order-history table thead th,
body#order-detail table.table thead th {
  background: transparent !important;
  color: #ffffff !important;
  border: 0 !important;
  font-weight: 950 !important;
  letter-spacing: .07em !important;
  text-transform: uppercase !important;
}

/* Redondeo visual de cabeceras de tabla */
body#history .tpv6-history-table thead th:first-child,
body#history .tpv5-history-table thead th:first-child,
body#order-detail table#order-products thead th:first-child,
body#order-detail #order-history table thead th:first-child,
body#order-detail table.table thead th:first-child {
  border-top-left-radius: 16px !important;
  border-bottom-left-radius: 16px !important;
}

body#history .tpv6-history-table thead th:last-child,
body#history .tpv5-history-table thead th:last-child,
body#order-detail table#order-products thead th:last-child,
body#order-detail #order-history table thead th:last-child,
body#order-detail table.table thead th:last-child {
  border-top-right-radius: 16px !important;
  border-bottom-right-radius: 16px !important;
}

/* Títulos de bloques: documentos, timeline, mensajes */
body#order-detail .tpv5-order-documents-panel > h3,
body#order-detail .tpv6-order-documents-panel > h3,
body#order-detail .tpv7-order-documents-panel > h3,
body#order-detail [class*="documents"] > h3,
body#order-detail #order-history > h3,
body#order-detail .messages > h3,
body#order-detail .tpv8-order-messages-thread > h3,
body#order-detail .tpv7-order-messages-thread > h3 {
  display: block !important;
  width: 100% !important;
  margin: 0 0 18px 0 !important;
  padding: 16px 20px !important;
  border-radius: 18px !important;
  background: linear-gradient(135deg, #031122 0%, #06314a 60%, #00a9e9 125%) !important;
  color: #ffffff !important;
  font-size: 18px !important;
  font-weight: 950 !important;
  line-height: 1.2 !important;
  letter-spacing: .045em !important;
  text-transform: uppercase !important;
  box-shadow: 0 12px 28px rgba(0,169,233,.14) !important;
}

/* Texto descriptivo bajo documentos */
body#order-detail [class*="documents"] > p {
  color: #64748b !important;
  font-size: 14px !important;
  margin: -6px 0 20px 0 !important;
}

/* Bloques blancos unificados */
body#order-detail .bg-light,
body#order-detail .box,
body#order-detail #order-history,
body#order-detail .messages,
body#order-detail .order-message-form,
body#order-detail [class*="documents-panel"],
body#history .tpv6-history-table,
body#history .tpv5-history-table {
  border: 1px solid #e6eef5 !important;
  border-radius: 24px !important;
  box-shadow: 0 16px 40px rgba(15, 23, 42, .055) !important;
}

/* Tarjetas de documentos: un poco más Proton */
body#order-detail [class*="doc-card"],
body#order-detail [class*="document-card"],
body#order-detail [class*="doc-btn"] {
  border-color: #d5eaf5 !important;
  box-shadow: 0 8px 22px rgba(15,23,42,.035) !important;
}

body#order-detail [class*="doc-card"]:hover,
body#order-detail [class*="document-card"]:hover,
body#order-detail [class*="doc-btn"]:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 14px 30px rgba(0,169,233,.12) !important;
}

/* Historial: cabecera documentos alineada */
body#history .tpv6-history-table th,
body#history .tpv6-history-table td {
  vertical-align: middle !important;
}

/* En móvil evitamos cabeceras demasiado agresivas */
@media (max-width: 767px) {
  body#order-detail .tpv5-order-documents-panel > h3,
  body#order-detail .tpv6-order-documents-panel > h3,
  body#order-detail .tpv7-order-documents-panel > h3,
  body#order-detail [class*="documents"] > h3,
  body#order-detail #order-history > h3,
  body#order-detail .messages > h3,
  body#order-detail .tpv8-order-messages-thread > h3,
  body#order-detail .tpv7-order-messages-thread > h3 {
    font-size: 15px !important;
    padding: 14px 16px !important;
  }
}

/**********************************
  END TPV11 CUSTOMER AREA GRADIENT UNIFIED
**********************************/

/**********************************
  TPV12 ORDER MESSAGE THREAD FIX
**********************************/

/* Bloque general de mensajes enviados */
body#order-detail .messages,
body#order-detail .tpv8-order-messages-thread,
body#order-detail .tpv7-order-messages-thread {
  background: #ffffff !important;
  border: 1px solid #e6eef5 !important;
  border-radius: 26px !important;
  box-shadow: 0 16px 40px rgba(15, 23, 42, .055) !important;
  padding: 24px !important;
  margin-bottom: 28px !important;
  overflow: hidden !important;
}

/* Cabecera del bloque: arregla texto negro sobre degradado */
body#order-detail .messages > h3,
body#order-detail .tpv8-order-messages-thread > h3,
body#order-detail .tpv7-order-messages-thread > h3 {
  display: block !important;
  width: 100% !important;
  margin: 0 0 22px 0 !important;
  padding: 17px 22px !important;
  border-radius: 18px !important;
  background: linear-gradient(135deg, #031122 0%, #06314a 58%, #00a9e9 125%) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  text-shadow: 0 1px 0 rgba(0,0,0,.18) !important;
  opacity: 1 !important;
  font-size: 18px !important;
  font-weight: 950 !important;
  line-height: 1.2 !important;
  letter-spacing: .045em !important;
  text-transform: uppercase !important;
  box-shadow: 0 12px 28px rgba(0,169,233,.14) !important;
}

/* Cada mensaje como tarjeta/burbuja */
body#order-detail .messages .message,
body#order-detail .tpv8-order-message-line,
body#order-detail .tpv7-order-message-line {
  display: grid !important;
  grid-template-columns: minmax(190px, 260px) 1fr !important;
  gap: 18px !important;
  align-items: stretch !important;
  margin: 0 0 14px 0 !important;
  padding: 0 !important;
  border: 1px solid #dcecf4 !important;
  border-radius: 20px !important;
  background: linear-gradient(135deg, #f8fbfd 0%, #ffffff 100%) !important;
  box-shadow: 0 8px 22px rgba(15,23,42,.035) !important;
  overflow: hidden !important;
}

/* Columna de cliente/fecha */
body#order-detail .messages .message > div:first-child,
body#order-detail .tpv8-order-message-meta,
body#order-detail .tpv7-order-message-meta {
  width: auto !important;
  max-width: none !important;
  flex: none !important;
  padding: 18px 20px !important;
  background: #f2fbff !important;
  border-right: 1px solid #dcecf4 !important;
  color: #0f172a !important;
}

body#order-detail .messages .message > div:first-child strong,
body#order-detail .tpv8-order-message-meta strong,
body#order-detail .tpv7-order-message-meta strong {
  display: block !important;
  color: #0f172a !important;
  font-size: 14px !important;
  font-weight: 950 !important;
  line-height: 1.25 !important;
  margin-bottom: 5px !important;
}

body#order-detail .messages .message > div:first-child,
body#order-detail .tpv8-order-message-meta,
body#order-detail .tpv7-order-message-meta,
body#order-detail .messages .message > div:first-child span,
body#order-detail .tpv8-order-message-meta span,
body#order-detail .tpv7-order-message-meta span {
  color: #64748b !important;
  font-size: 12px !important;
  line-height: 1.4 !important;
}

/* Cuerpo del mensaje */
body#order-detail .messages .message > div:last-child,
body#order-detail .tpv8-order-message-body,
body#order-detail .tpv7-order-message-body {
  width: auto !important;
  max-width: none !important;
  flex: none !important;
  padding: 18px 22px !important;
  color: #0f172a !important;
  font-size: 15px !important;
  line-height: 1.55 !important;
  background: #ffffff !important;
  display: flex !important;
  align-items: center !important;
}

/* Si hay mensajes muy cortos, que no parezca vacío */
body#order-detail .messages .message > div:last-child:before,
body#order-detail .tpv8-order-message-body:before,
body#order-detail .tpv7-order-message-body:before {
  content: "✉";
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  margin-right: 12px !important;
  border-radius: 10px !important;
  background: #eaf8ff !important;
  color: #00a9e9 !important;
  font-size: 15px !important;
  font-weight: 900 !important;
}

/* Responsive */
@media (max-width: 767px) {
  body#order-detail .messages,
  body#order-detail .tpv8-order-messages-thread,
  body#order-detail .tpv7-order-messages-thread {
    padding: 16px !important;
  }

  body#order-detail .messages > h3,
  body#order-detail .tpv8-order-messages-thread > h3,
  body#order-detail .tpv7-order-messages-thread > h3 {
    font-size: 15px !important;
    padding: 14px 16px !important;
  }

  body#order-detail .messages .message,
  body#order-detail .tpv8-order-message-line,
  body#order-detail .tpv7-order-message-line {
    grid-template-columns: 1fr !important;
  }

  body#order-detail .messages .message > div:first-child,
  body#order-detail .tpv8-order-message-meta,
  body#order-detail .tpv7-order-message-meta {
    border-right: 0 !important;
    border-bottom: 1px solid #dcecf4 !important;
  }
}

/**********************************
  END TPV12 ORDER MESSAGE THREAD FIX
**********************************/
/**********************************
  TPV13 PREPICKPACKING CUSTOMER VIEW
**********************************/

body#order-detail .tp-picking-view {
  background: #ffffff !important;
  border: 1px solid #e6eef5 !important;
  border-radius: 26px !important;
  box-shadow: 0 16px 40px rgba(15, 23, 42, .055) !important;
  padding: 24px !important;
  margin: 0 0 28px 0 !important;
  overflow: hidden !important;
}

body#order-detail .tp-picking-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 18px !important;
  padding: 20px 22px !important;
  border-radius: 20px !important;
  background: linear-gradient(135deg, #031122 0%, #06314a 58%, #00a9e9 125%) !important;
  color: #ffffff !important;
  box-shadow: 0 12px 28px rgba(0,169,233,.14) !important;
  margin-bottom: 22px !important;
}

body#order-detail .tp-picking-head h3 {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-size: 22px !important;
  font-weight: 950 !important;
  text-transform: uppercase !important;
  letter-spacing: .045em !important;
  line-height: 1.15 !important;
  margin: 0 0 6px 0 !important;
}

body#order-detail .tp-picking-head p {
  color: #d8f3ff !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
  margin: 0 !important;
}

body#order-detail .tp-picking-stage {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
  padding: 10px 16px !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,.16) !important;
  color: #ffffff !important;
  font-size: 12px !important;
  font-weight: 950 !important;
  text-transform: uppercase !important;
  letter-spacing: .04em !important;
}

body#order-detail .tp-picking-summary {
  display: grid !important;
  grid-template-columns: minmax(260px, 1fr) minmax(280px, 1.35fr) !important;
  gap: 18px !important;
  margin-bottom: 22px !important;
}

body#order-detail .tp-picking-progress-card,
body#order-detail .tp-picking-docs-card {
  border: 1px solid #dcecf4 !important;
  border-radius: 20px !important;
  background: linear-gradient(135deg, #f8fbfd 0%, #ffffff 100%) !important;
  padding: 18px !important;
  box-shadow: 0 8px 22px rgba(15,23,42,.035) !important;
}

body#order-detail .tp-progress-top {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 12px !important;
  margin-bottom: 12px !important;
}

body#order-detail .tp-progress-top strong,
body#order-detail .tp-picking-docs-card > strong {
  color: #0f172a !important;
  font-size: 14px !important;
  font-weight: 950 !important;
  text-transform: uppercase !important;
  letter-spacing: .04em !important;
}

body#order-detail .tp-progress-top span {
  color: #00a9e9 !important;
  font-weight: 950 !important;
}

body#order-detail .tp-progress-bar {
  height: 12px !important;
  border-radius: 999px !important;
  background: #e6f4fb !important;
  overflow: hidden !important;
}

body#order-detail .tp-progress-bar span {
  display: block !important;
  height: 100% !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, #00a9e9, #13c7ff) !important;
}

body#order-detail .tp-progress-meta {
  display: flex !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin-top: 12px !important;
  color: #64748b !important;
  font-size: 13px !important;
}

body#order-detail .tp-picking-docs {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  margin-top: 14px !important;
}

body#order-detail .tp-doc-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-height: 46px !important;
  padding: 8px 12px !important;
  border-radius: 16px !important;
  border: 1px solid #d5eaf5 !important;
  background: #ffffff !important;
  text-decoration: none !important;
  box-shadow: 0 8px 18px rgba(15,23,42,.035) !important;
}

body#order-detail .tp-doc-pill:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 14px 30px rgba(0,169,233,.12) !important;
}

body#order-detail .tp-doc-pill span {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  border-radius: 12px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #031122 !important;
  color: #ffffff !important;
  font-size: 10px !important;
  font-weight: 950 !important;
}

body#order-detail .tp-doc-label span,
body#order-detail .tp-doc-packing span {
  background: #00a9e9 !important;
}

body#order-detail .tp-doc-tracking span {
  background: #7c3aed !important;
}

body#order-detail .tp-doc-pill em {
  display: flex !important;
  flex-direction: column !important;
  color: #0f172a !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  font-style: normal !important;
  line-height: 1.2 !important;
}

body#order-detail .tp-doc-pill small {
  color: #64748b !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  margin-top: 3px !important;
}

body#order-detail .tp-picking-products,
body#order-detail .tp-evidence-group {
  margin-top: 22px !important;
}

body#order-detail .tp-picking-products h4,
body#order-detail .tp-evidence-group h4 {
  margin: 0 0 14px 0 !important;
  padding: 14px 18px !important;
  border-radius: 16px !important;
  background: linear-gradient(135deg, #031122 0%, #06314a 60%, #00a9e9 125%) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-size: 16px !important;
  font-weight: 950 !important;
  text-transform: uppercase !important;
  letter-spacing: .04em !important;
}

body#order-detail .tp-picking-products-table {
  border: 1px solid #dcecf4 !important;
  border-radius: 18px !important;
  overflow: hidden !important;
}

body#order-detail .tp-prod-head,
body#order-detail .tp-prod-row {
  display: grid !important;
  grid-template-columns: 1fr 120px 120px !important;
  gap: 12px !important;
  align-items: center !important;
}

body#order-detail .tp-prod-head {
  background: #031122 !important;
  color: #ffffff !important;
  padding: 14px 16px !important;
  font-size: 12px !important;
  font-weight: 950 !important;
  text-transform: uppercase !important;
  letter-spacing: .04em !important;
}

body#order-detail .tp-prod-row {
  background: #ffffff !important;
  padding: 14px 16px !important;
  border-top: 1px solid #edf4f8 !important;
}

body#order-detail .tp-prod-row strong {
  color: #0f172a !important;
  font-weight: 900 !important;
}

body#order-detail .tp-prod-row small {
  display: block !important;
  color: #64748b !important;
  margin-top: 4px !important;
}

body#order-detail .tp-prepared,
body#order-detail .tp-pending {
  display: inline-flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 42px !important;
  height: 30px !important;
  border-radius: 999px !important;
  font-weight: 950 !important;
}

body#order-detail .tp-prepared {
  background: #dcfce7 !important;
  color: #15803d !important;
}

body#order-detail .tp-pending {
  background: #fff7ed !important;
  color: #c2410c !important;
}

body#order-detail .tp-evidence-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 22px !important;
}

body#order-detail .tp-evidence-item {
  border: 1px solid #dcecf4 !important;
  border-radius: 20px !important;
  background: #ffffff !important;
  padding: 16px !important;
  margin-bottom: 14px !important;
}

body#order-detail .tp-evidence-item-head {
  display: flex !important;
  justify-content: space-between !important;
  gap: 12px !important;
  align-items: center !important;
  margin-bottom: 12px !important;
}

body#order-detail .tp-evidence-item-head strong {
  color: #0f172a !important;
  font-weight: 950 !important;
}

body#order-detail .tp-evidence-item-head span {
  color: #64748b !important;
  font-size: 13px !important;
}

body#order-detail .tp-photo-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)) !important;
  gap: 10px !important;
}

body#order-detail .tp-photo {
  display: block !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  border: 1px solid #dcecf4 !important;
  background: #f8fbfd !important;
}

body#order-detail .tp-photo img {
  display: block !important;
  width: 100% !important;
  height: 120px !important;
  object-fit: cover !important;
}

body#order-detail .tp-no-photos,
body#order-detail .tp-empty-docs {
  color: #64748b !important;
  font-size: 13px !important;
}

@media (max-width: 767px) {
  body#order-detail .tp-picking-head {
    display: block !important;
  }

  body#order-detail .tp-picking-stage {
    margin-top: 14px !important;
  }

  body#order-detail .tp-picking-summary {
    grid-template-columns: 1fr !important;
  }

  body#order-detail .tp-prod-head,
  body#order-detail .tp-prod-row {
    grid-template-columns: 1fr 70px 70px !important;
  }
}

/**********************************
  END TPV13 PREPICKPACKING CUSTOMER VIEW
**********************************/

/**********************************
  TPV14 PICKING COMPACT FINAL
**********************************/

body#order-detail .tp-picking-compact .tp-picking-products,
body#order-detail .tp-picking-compact .tp-evidence-grid {
  display: none !important;
}

body#order-detail .tp-picking-actions {
  margin-top: 18px !important;
  text-align: center !important;
}

body#order-detail .tp-picking-full-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 999px !important;
  padding: 14px 26px !important;
  background: #00a9e9 !important;
  color: #ffffff !important;
  text-decoration: none !important;
  font-size: 13px !important;
  font-weight: 950 !important;
  text-transform: uppercase !important;
  letter-spacing: .04em !important;
  box-shadow: 0 12px 28px rgba(0,169,233,.25) !important;
}

body#order-detail .tp-picking-full-link:hover {
  background: #008fc7 !important;
  transform: translateY(-1px) !important;
}

body#order-detail .tp-picking-compact .tp-picking-head h3 {
  font-size: 20px !important;
}

body#order-detail .tp-picking-compact .tp-picking-summary {
  margin-bottom: 0 !important;
}

/* Devolución nativa: dejarla menos fea mientras decidimos si la mandamos a otra página */
body#order-detail #order-return-form > .box:last-child {
  max-width: 760px !important;
  margin: 28px auto !important;
  border: 1px solid #dcecf4 !important;
  border-radius: 24px !important;
  box-shadow: 0 16px 40px rgba(15,23,42,.055) !important;
  padding: 26px !important;
  background: #ffffff !important;
}

body#order-detail #order-return-form > .box:last-child h3 {
  margin: 0 0 14px 0 !important;
  padding: 16px 20px !important;
  border-radius: 18px !important;
  background: linear-gradient(135deg, #031122 0%, #06314a 58%, #00a9e9 125%) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-size: 18px !important;
  font-weight: 950 !important;
  text-transform: uppercase !important;
}

body#order-detail #order-return-form > .box:last-child textarea {
  border: 1px solid #dcecf4 !important;
  border-radius: 18px !important;
  background: #f8fbfd !important;
  min-height: 130px !important;
}

body#order-detail #order-return-form > .box:last-child button {
  border: 0 !important;
  border-radius: 999px !important;
  background: #00a9e9 !important;
  color: #ffffff !important;
  padding: 14px 28px !important;
  font-size: 13px !important;
  font-weight: 950 !important;
  text-transform: uppercase !important;
  box-shadow: 0 12px 28px rgba(0,169,233,.25) !important;
}

/**********************************
  END TPV14 PICKING COMPACT FINAL
**********************************/

/**********************************
  TPV15 PICKING INLINE ACCORDION + RETURN CLEAN
**********************************/

body#order-detail .tp-picking-accordion {
  margin-top: 18px !important;
  border: 1px solid #d6edf8 !important;
  border-radius: 20px !important;
  background: #ffffff !important;
  overflow: hidden !important;
}

body#order-detail .tp-picking-accordion > summary {
  cursor: pointer !important;
  list-style: none !important;
  padding: 16px 22px !important;
  background: linear-gradient(135deg, #031122 0%, #06314a 58%, #00a9e9 125%) !important;
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 950 !important;
  text-transform: uppercase !important;
  letter-spacing: .045em !important;
  border-radius: 18px !important;
  box-shadow: 0 12px 28px rgba(0,169,233,.14) !important;
}

body#order-detail .tp-picking-accordion > summary::-webkit-details-marker {
  display: none !important;
}

body#order-detail .tp-picking-accordion > summary:after {
  content: " +" !important;
  float: right !important;
  font-weight: 950 !important;
}

body#order-detail .tp-picking-accordion[open] > summary:after {
  content: " −" !important;
}

body#order-detail .tp-picking-accordion-body {
  padding: 20px 0 0 0 !important;
}

body#order-detail .tp-tracking-note {
  display: block !important;
  width: 100% !important;
  color: #64748b !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
  margin-top: 6px !important;
}

/* Devolución como acordeón limpio */
body#order-detail .tp-return-accordion {
  max-width: 860px !important;
  margin: 28px auto !important;
  border: 1px solid #d6edf8 !important;
  border-radius: 24px !important;
  background: #ffffff !important;
  box-shadow: 0 16px 40px rgba(15,23,42,.055) !important;
  overflow: hidden !important;
}

body#order-detail .tp-return-accordion > summary {
  cursor: pointer !important;
  list-style: none !important;
  padding: 18px 22px !important;
  background: linear-gradient(135deg, #031122 0%, #06314a 58%, #00a9e9 125%) !important;
  color: #ffffff !important;
}

body#order-detail .tp-return-accordion > summary::-webkit-details-marker {
  display: none !important;
}

body#order-detail .tp-return-accordion > summary span {
  display: block !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-size: 18px !important;
  font-weight: 950 !important;
  text-transform: uppercase !important;
  letter-spacing: .045em !important;
  line-height: 1.2 !important;
}

body#order-detail .tp-return-accordion > summary small {
  display: block !important;
  color: #d8f3ff !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
  margin-top: 6px !important;
}

body#order-detail .tp-return-accordion > summary:after {
  content: "+" !important;
  float: right !important;
  margin-top: -34px !important;
  color: #ffffff !important;
  font-size: 22px !important;
  font-weight: 950 !important;
}

body#order-detail .tp-return-accordion[open] > summary:after {
  content: "−" !important;
}

body#order-detail .tp-return-accordion-body {
  padding: 24px !important;
  background: linear-gradient(135deg, #f3fbff 0%, #ffffff 100%) !important;
}

body#order-detail .tp-return-accordion-body h3 {
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
  font-size: 18px !important;
  font-weight: 950 !important;
  text-transform: uppercase !important;
  margin-bottom: 10px !important;
}

body#order-detail .tp-return-accordion-body p {
  color: #64748b !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
}

body#order-detail .tp-return-accordion textarea {
  width: 100% !important;
  border: 1px solid #dcecf4 !important;
  border-radius: 18px !important;
  background: #ffffff !important;
  min-height: 130px !important;
}

body#order-detail .tp-return-accordion button {
  border: 0 !important;
  border-radius: 999px !important;
  background: #00a9e9 !important;
  color: #ffffff !important;
  padding: 14px 28px !important;
  font-size: 13px !important;
  font-weight: 950 !important;
  text-transform: uppercase !important;
  box-shadow: 0 12px 28px rgba(0,169,233,.25) !important;
}

/* Ya no usamos la página externa antigua */
body#order-detail .tp-picking-full-link {
  display: none !important;
}

/**********************************
  END TPV15 PICKING INLINE ACCORDION + RETURN CLEAN
**********************************/

/**********************************
  TPV16 FINAL ACCORDIONS FIX
**********************************/

/* El detalle de preparación estaba oculto por reglas anteriores */
body#order-detail .tp-picking-accordion[open] .tp-picking-products {
  display: block !important;
}

body#order-detail .tp-picking-accordion[open] .tp-evidence-grid {
  display: grid !important;
}

body#order-detail .tp-picking-accordion[open] .tp-picking-products-table {
  display: block !important;
}

body#order-detail .tp-picking-accordion[open] .tp-prod-head,
body#order-detail .tp-picking-accordion[open] .tp-prod-row {
  display: grid !important;
}

/* Devolución: todo el flujo centrado, no solo el textarea */
body#order-detail .tp-return-accordion {
  width: 100% !important;
  max-width: 100% !important;
  margin: 28px 0 !important;
  border: 1px solid #d6edf8 !important;
  border-radius: 24px !important;
  background: #ffffff !important;
  box-shadow: 0 16px 40px rgba(15,23,42,.055) !important;
  overflow: hidden !important;
}

body#order-detail .tp-return-accordion > summary {
  cursor: pointer !important;
  list-style: none !important;
  padding: 18px 22px !important;
  background: linear-gradient(135deg, #031122 0%, #06314a 58%, #00a9e9 125%) !important;
  color: #ffffff !important;
  border-radius: 20px !important;
}

body#order-detail .tp-return-accordion > summary::-webkit-details-marker {
  display: none !important;
}

body#order-detail .tp-return-accordion > summary span {
  display: block !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-size: 18px !important;
  font-weight: 950 !important;
  text-transform: uppercase !important;
  letter-spacing: .045em !important;
  line-height: 1.2 !important;
}

body#order-detail .tp-return-accordion > summary small {
  display: block !important;
  color: #d8f3ff !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
  margin-top: 6px !important;
}

body#order-detail .tp-return-accordion > summary:after {
  content: "+" !important;
  float: right !important;
  margin-top: -34px !important;
  color: #ffffff !important;
  font-size: 22px !important;
  font-weight: 950 !important;
}

body#order-detail .tp-return-accordion[open] > summary:after {
  content: "−" !important;
}

body#order-detail .tp-return-accordion-body {
  padding: 24px !important;
  background: linear-gradient(135deg, #f3fbff 0%, #ffffff 100%) !important;
}

body#order-detail .tp-return-intro h3 {
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
  font-size: 18px !important;
  font-weight: 950 !important;
  text-transform: uppercase !important;
  margin: 0 0 10px 0 !important;
}

body#order-detail .tp-return-intro p {
  color: #64748b !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
  margin-bottom: 18px !important;
}

body#order-detail .tp-return-products-box {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 0 22px 0 !important;
  padding: 0 !important;
  border: 1px solid #dcecf4 !important;
  border-radius: 20px !important;
  overflow: hidden !important;
  background: #ffffff !important;
}

body#order-detail .tp-return-products-table {
  width: 100% !important;
  margin: 0 !important;
  table-layout: auto !important;
}

body#order-detail .tp-return-products-table thead th {
  background: linear-gradient(135deg, #031122 0%, #06314a 65%, #00a9e9 140%) !important;
  color: #ffffff !important;
  font-size: 12px !important;
  font-weight: 950 !important;
  text-transform: uppercase !important;
  letter-spacing: .045em !important;
  border: 0 !important;
  padding: 14px 12px !important;
}

body#order-detail .tp-return-products-table td {
  border-color: #edf4f8 !important;
  padding: 14px 12px !important;
  vertical-align: middle !important;
  color: #334155 !important;
}

body#order-detail .tp-return-products-table td strong {
  color: #0f172a !important;
  font-weight: 900 !important;
}

body#order-detail .tp-return-products-table select {
  border: 1px solid #dcecf4 !important;
  border-radius: 12px !important;
  background: #f8fbfd !important;
  height: 38px !important;
}

body#order-detail .tp-return-message {
  max-width: 760px !important;
  margin: 22px auto 0 auto !important;
}

body#order-detail .tp-return-message label {
  display: block !important;
  color: #0f172a !important;
  font-size: 13px !important;
  font-weight: 950 !important;
  text-transform: uppercase !important;
  letter-spacing: .04em !important;
  margin-bottom: 10px !important;
}

body#order-detail .tp-return-message textarea {
  width: 100% !important;
  border: 1px solid #dcecf4 !important;
  border-radius: 18px !important;
  background: #ffffff !important;
  min-height: 130px !important;
  padding: 16px !important;
}

body#order-detail .tp-return-footer {
  text-align: center !important;
  margin-top: 18px !important;
}

body#order-detail .tp-return-footer button {
  border: 0 !important;
  border-radius: 999px !important;
  background: #00a9e9 !important;
  color: #ffffff !important;
  padding: 14px 28px !important;
  font-size: 13px !important;
  font-weight: 950 !important;
  text-transform: uppercase !important;
  box-shadow: 0 12px 28px rgba(0,169,233,.25) !important;
}

/* Mobile */
@media (max-width: 767px) {
  body#order-detail .tp-return-accordion-body {
    padding: 16px !important;
  }

  body#order-detail .tp-return-mobile-products,
  body#order-detail .tp-return-mobile-totals {
    border: 1px solid #dcecf4 !important;
    border-radius: 18px !important;
    background: #ffffff !important;
    padding: 14px !important;
    margin-bottom: 14px !important;
  }
}

/**********************************
  END TPV16 FINAL ACCORDIONS FIX
**********************************/

/**********************************
  TPV17 RETURN FULL WIDTH HARD FIX
**********************************/

body#order-detail #order-return-form {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 28px 0 !important;
  padding: 0 !important;
  clear: both !important;
}

body#order-detail #order-return-form .tp-return-accordion {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

body#order-detail #order-return-form .tp-return-accordion-body {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

body#order-detail #order-return-form .tp-return-products-box {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch !important;
}

body#order-detail #order-return-form .tp-return-products-table {
  width: 100% !important;
  min-width: 980px !important;
  max-width: none !important;
}

body#order-detail #order-return-form .tp-return-products-table th,
body#order-detail #order-return-form .tp-return-products-table td {
  white-space: normal !important;
}

body#order-detail #order-return-form .tp-return-products-table td:nth-child(2) {
  min-width: 330px !important;
}

body#order-detail #order-return-form .tp-return-products-table td:nth-child(1),
body#order-detail #order-return-form .tp-return-products-table th:nth-child(1) {
  width: 44px !important;
  min-width: 44px !important;
  text-align: center !important;
}

body#order-detail #order-return-form .tp-return-products-table td:nth-child(3),
body#order-detail #order-return-form .tp-return-products-table td:nth-child(4),
body#order-detail #order-return-form .tp-return-products-table td:nth-child(5),
body#order-detail #order-return-form .tp-return-products-table td:nth-child(6) {
  min-width: 115px !important;
  text-align: center !important;
}

body#order-detail #order-return-form .tp-return-message {
  width: 100% !important;
  max-width: 760px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body#order-detail #order-return-form .tp-return-message textarea {
  max-width: 100% !important;
}

/* Anula reglas antiguas que estrechaban la devolución */
body#order-detail #order-return-form > .box:last-child {
  max-width: none !important;
  width: auto !important;
}

/**********************************
  END TPV17 RETURN FULL WIDTH HARD FIX
**********************************/

/**********************************
  TPV18 RETURN WIDTH + LANG FINAL
**********************************/

body#order-detail #order-return-form,
body#order-detail form#order-return-form {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 100% !important;
  flex: 0 0 100% !important;
  clear: both !important;
  margin: 30px 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

body#order-detail #order-return-form .tp-return-accordion {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 100% !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

body#order-detail #order-return-form .tp-return-accordion-body {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

body#order-detail #order-return-form .tp-return-products-box {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  box-sizing: border-box !important;
}

body#order-detail #order-return-form .tp-return-products-table {
  width: 100% !important;
  min-width: 1040px !important;
  table-layout: auto !important;
}

body#order-detail #order-return-form .tp-return-products-table td:nth-child(2) {
  min-width: 360px !important;
}

body#order-detail #order-return-form .tp-return-message {
  width: 100% !important;
  max-width: 820px !important;
  margin: 24px auto 0 auto !important;
}

body#order-detail #order-return-form .tp-return-message textarea {
  width: 100% !important;
  max-width: 100% !important;
}

body#order-detail #order-return-form .tp-return-footer {
  width: 100% !important;
  text-align: center !important;
}

/**********************************
  END TPV18 RETURN WIDTH + LANG FINAL
**********************************/
/**********************************
  TPV19 RETURN REAL FULL WIDTH PHP ONLY
**********************************/

#order-return-form,
form#order-return-form,
#order-return-form .tp-return-accordion,
.tp-return-accordion {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  clear: both !important;
  box-sizing: border-box !important;
}

#order-return-form {
  margin: 30px 0 !important;
  padding: 0 !important;
}

#order-return-form .tp-return-accordion {
  margin: 0 !important;
}

#order-return-form .tp-return-accordion-body,
.tp-return-accordion-body {
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box !important;
}

#order-return-form .tp-return-products-box,
.tp-return-products-box {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch !important;
}

#order-return-form .tp-return-products-table,
.tp-return-products-table {
  width: 100% !important;
  min-width: 1040px !important;
  max-width: none !important;
  table-layout: auto !important;
}

#order-return-form .tp-return-products-table th,
#order-return-form .tp-return-products-table td {
  white-space: normal !important;
}

#order-return-form .tp-return-products-table td:nth-child(2) {
  min-width: 360px !important;
}

#order-return-form .tp-return-message {
  width: 100% !important;
  max-width: 820px !important;
  margin: 24px auto 0 auto !important;
}

#order-return-form .tp-return-message textarea {
  width: 100% !important;
  max-width: 100% !important;
}

#order-return-form .tp-return-footer {
  width: 100% !important;
  text-align: center !important;
}

/**********************************
  END TPV19 RETURN REAL FULL WIDTH PHP ONLY
**********************************/
/**********************************
  TPV20 ORDER DETAIL WIDTH + ADDRESS CLEAN
**********************************/

/* Ancho maestro común para todos los bloques del detalle del pedido */
body#order-detail #content,
body#order-detail .page-content {
  max-width: 1180px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Todos los bloques visuales principales deben respirar igual */
body#order-detail #order-infos,
body#order-detail .addresses,
body#order-detail .proton-customer-docs-panel,
body#order-detail #order-history,
body#order-detail .tp-picking-view,
body#order-detail #order-return-form,
body#order-detail .order-message-form,
body#order-detail .messages,
body#order-detail #order-products,
body#order-detail .shipping-lines,
body#order-detail .order-items,
body#order-detail .order-totals {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* Cajas principales con el mismo ancho y estética */
body#order-detail #order-infos > .bg-light,
body#order-detail #order-history,
body#order-detail .addresses,
body#order-detail .proton-customer-docs-panel,
body#order-detail .tp-picking-view,
body#order-detail #order-return-form .tp-return-accordion,
body#order-detail .order-message-form,
body#order-detail .messages,
body#order-detail #order-products,
body#order-detail .box {
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* Direcciones: dos tarjetas equilibradas */
body#order-detail .addresses {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 24px !important;
  padding: 24px !important;
  background: #ffffff !important;
  border: 1px solid #e5eef5 !important;
  border-radius: 24px !important;
  box-shadow: 0 16px 40px rgba(15,23,42,.055) !important;
  margin: 26px 0 !important;
}

body#order-detail .addresses > div {
  flex: 1 1 0 !important;
  min-width: 280px !important;
  max-width: none !important;
  padding: 0 !important;
}

body#order-detail .addresses article.box {
  height: 100% !important;
  margin: 0 !important;
  padding: 26px !important;
  border: 1px solid #dcecf4 !important;
  border-radius: 22px !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

body#order-detail .addresses article.box h4 {
  margin: 0 0 16px 0 !important;
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
  font-size: 20px !important;
  line-height: 1.2 !important;
  font-weight: 950 !important;
  text-transform: none !important;
}

body#order-detail .addresses address {
  color: #475569 !important;
  font-size: 14px !important;
  line-height: 1.55 !important;
  margin: 0 !important;
}

/* Las tablas no deben salirse del contenedor general */
body#order-detail table {
  max-width: 100% !important;
}

/* El bloque de devolución debe alinearse como los demás */
body#order-detail #order-return-form {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* En móvil, todo a una columna */
@media (max-width: 767px) {
  body#order-detail .addresses {
    display: block !important;
    padding: 16px !important;
  }

  body#order-detail .addresses > div {
    width: 100% !important;
    margin-bottom: 16px !important;
  }

  body#order-detail .addresses article.box {
    padding: 18px !important;
  }
}

/**********************************
  END TPV20 ORDER DETAIL WIDTH + ADDRESS CLEAN
**********************************/
/**********************************
  TPV21 CLEAN ORDER DETAIL UNIFIED WIDTH
**********************************/

body#order-detail #content,
body#order-detail .page-content {
  max-width: 1180px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Todos los bloques del detalle con la misma anchura visual */
body#order-detail #order-infos,
body#order-detail #order-history,
body#order-detail .addresses,
body#order-detail .proton-customer-docs-panel,
body#order-detail .tp-picking-view,
body#order-detail #order-return-form,
body#order-detail .order-message-form,
body#order-detail .messages,
body#order-detail .box,
body#order-detail section.bg-light,
body#order-detail div.bg-light {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* Direcciones: dos cuadros grandes, no estrechos */
body#order-detail .addresses {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: 24px !important;
  padding: 26px !important;
  background: #ffffff !important;
  border: 1px solid #e5eef5 !important;
  border-radius: 24px !important;
  box-shadow: 0 16px 40px rgba(15,23,42,.055) !important;
  margin: 28px 0 !important;
}

body#order-detail .addresses > div,
body#order-detail .addresses > [class*="col-"] {
  width: 100% !important;
  max-width: none !important;
  flex: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

body#order-detail .addresses .clearfix {
  display: none !important;
}

body#order-detail .addresses article.box {
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 28px !important;
  border: 1px solid #dcecf4 !important;
  border-radius: 22px !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

body#order-detail .addresses article.box h4 {
  margin: 0 0 16px 0 !important;
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
  font-size: 21px !important;
  line-height: 1.2 !important;
  font-weight: 950 !important;
  text-transform: none !important;
}

body#order-detail .addresses address {
  color: #475569 !important;
  font-size: 14px !important;
  line-height: 1.55 !important;
  margin: 0 !important;
}

/* Bloque de transportista arriba, con formato uniforme */
body#order-detail .TPV21_SHIPPING_TOP,
body#order-detail #order-history + .bg-light {
  width: 100% !important;
}

body#order-detail table.table {
  width: 100% !important;
}

/* La devolución no debe encoger */
body#order-detail #order-return-form,
body#order-detail #order-return-form .tp-return-accordion {
  width: 100% !important;
  max-width: 100% !important;
}

@media (max-width: 767px) {
  body#order-detail .addresses {
    grid-template-columns: 1fr !important;
    padding: 16px !important;
  }

  body#order-detail .addresses article.box {
    padding: 20px !important;
  }
}

/**********************************
  END TPV21 CLEAN ORDER DETAIL UNIFIED WIDTH
**********************************/
/**********************************
  TPV22 SAFE ORDER DETAIL ALIGNMENT
**********************************/

body#order-detail #content,
body#order-detail .page-content {
  max-width: 1180px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body#order-detail #order-infos,
body#order-detail .addresses,
body#order-detail .proton-customer-docs-panel,
body#order-detail #order-history,
body#order-detail .tp-picking-view,
body#order-detail #order-return-form,
body#order-detail .order-message-form,
body#order-detail .messages,
body#order-detail div.bg-light,
body#order-detail section.bg-light {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

body#order-detail .addresses {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 24px !important;
  padding: 26px !important;
  margin: 28px 0 !important;
  background: #ffffff !important;
  border: 1px solid #e5eef5 !important;
  border-radius: 24px !important;
  box-shadow: 0 16px 40px rgba(15,23,42,.055) !important;
}

body#order-detail .addresses > div,
body#order-detail .addresses > [class*="col-"] {
  width: 100% !important;
  max-width: none !important;
  flex: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

body#order-detail .addresses .clearfix {
  display: none !important;
}

body#order-detail #delivery-address,
body#order-detail #invoice-address {
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 28px !important;
  border: 1px solid #dcecf4 !important;
  border-radius: 22px !important;
  background: #ffffff !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
}

body#order-detail #delivery-address h4,
body#order-detail #invoice-address h4 {
  margin: 0 0 16px 0 !important;
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
  font-size: 21px !important;
  line-height: 1.2 !important;
  font-weight: 950 !important;
  text-transform: none !important;
}

body#order-detail #delivery-address address,
body#order-detail #invoice-address address {
  color: #475569 !important;
  font-size: 14px !important;
  line-height: 1.55 !important;
  margin: 0 !important;
}

body#order-detail table.table {
  width: 100% !important;
  max-width: 100% !important;
}

body#order-detail #order-return-form,
body#order-detail #order-return-form .tp-return-accordion {
  width: 100% !important;
  max-width: 100% !important;
}

@media (max-width: 767px) {
  body#order-detail .addresses {
    grid-template-columns: 1fr !important;
    padding: 16px !important;
  }

  body#order-detail #delivery-address,
  body#order-detail #invoice-address {
    padding: 20px !important;
  }
}

/**********************************
  END TPV22 SAFE ORDER DETAIL ALIGNMENT
**********************************/
