/*
 * Custom code goes here.
 * A template should always ship with an empty custom.css
 */


 .login-form .form-group{
    display: flex;
    flex-direction: column;
    align-content: flex-start;
 }

 .login-form .form-group .col-form-label,.login-form .form-group .col-md-8.js-input-column{
    width: 100%;
     text-align: left;
}

.product-prices .product-stock-info,
#main-product-wrapper .product-stock-info {
  display: block !important;
  margin: 12px 0 0px !important;
  padding: 10px 0px 10px 0px !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
}

.product-availability-date{
      font-size: 14px !important;
    line-height: 1.4 !important;
}

.product-prices .product-stock-info--available,
#main-product-wrapper .product-stock-info--available {
  color: black !important;
}

.product-prices .product-stock-info--empty,
#main-product-wrapper .product-stock-info--empty {
  color: #8a3a3a !important;
}

.product-prices .product-stock-contact,
#main-product-wrapper .product-stock-contact {
  display: inline-block !important;
  margin-left: 4px !important;
  font-weight: 600 !important;
  text-decoration: underline !important;
}

@media (max-width: 991.98px) {
  #mobile_language_selector {
    position: relative;
  }

  #mobile_language_selector .dropdown-menu {
    inset: auto !important;
    top: 100% !important;
    right: auto !important;
    bottom: auto !important;
    left: 0 !important;
  }
}

/* categorias home */
/*
.home-categories-grid .elementor-inner-column > .elementor-column-wrap {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  min-height: 90px;
  padding: 22px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.home-categories-grid .elementor-inner-column:hover > .elementor-column-wrap {
  background: #222222;
  border-color: #222222;
  transform: translateY(-2px);
}

.home-categories-grid .elementor-heading-title,
.home-categories-grid .elementor-heading-title a {
  color: #222222 !important;
  text-decoration: none !important;
  transition: color 0.25s ease;
}

.home-categories-grid .elementor-inner-column:hover .elementor-heading-title,
.home-categories-grid .elementor-inner-column:hover .elementor-heading-title a {
  color: rgb(244, 150, 48) !important;
}

*/


/* =========================================================
   CATEGORÍAS HOME
   ========================================================= */

.home-categories-grid .elementor-inner-column > .elementor-column-wrap {
  background: transparent;
  border: 0;
  min-height: 0;
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  transition: transform .25s ease;
}

.home-categories-grid .elementor-widget-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.home-categories-grid .elementor-widget-image {
  margin-bottom: 0 !important;
}

/* Círculo de fondo */
.home-categories-grid .elementor-widget-image .elementor-widget-container {
  width: 180px;
  height: 180px;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 50%;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color .25s ease;
}

/* Centrar la imagen y su enlace */
.home-categories-grid .elementor-widget-image .elementor-image,
.home-categories-grid .elementor-widget-image .elementor-image a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

/* Títulos */
.home-categories-grid .elementor-widget-heading {
  margin: 12px 0 0 !important;
  text-align: center;
}

.home-categories-grid .elementor-heading-title,
.home-categories-grid .elementor-heading-title a {
  color: #3a3a3a !important;
  text-decoration: none !important;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 500;
  transition: color .25s ease;
}

/* Hover */
.home-categories-grid .elementor-inner-column:hover > .elementor-column-wrap {
  transform: translateY(-3px);
}

.home-categories-grid .elementor-inner-column:hover .elementor-widget-image .elementor-widget-container {
  background: #efefef;
}

.home-categories-grid .elementor-inner-column:hover .elementor-heading-title,
.home-categories-grid .elementor-inner-column:hover .elementor-heading-title a {
  color: #f49630 !important;
}

/* =========================================================
   MÓVIL · DOS COLUMNAS
   ========================================================= */

@media (max-width: 767px) {

  .home-categories-grid > .elementor-container > .elementor-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 12px;
  }

  .home-categories-grid .elementor-inner-column {
    width: 100% !important;
    max-width: none !important;
    min-width: 0;
  }

  .home-categories-grid .elementor-inner-column > .elementor-column-wrap {
    padding: 6px 4px;
  }

  .home-categories-grid .elementor-widget-image .elementor-widget-container {
    width: min(160px, 100%);
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .home-categories-grid .elementor-widget-heading {
    margin-top: 10px !important;
  }

  .home-categories-grid .elementor-heading-title,
  .home-categories-grid .elementor-heading-title a {
    font-size: 13px;
  }

}

/* Unificar tipografía de la descripción de producto */
#main .product-description-section .rte-content,
#main .product-description-section .rte-content div,
#main .product-description-section .rte-content p,
#main .product-description-section .rte-content span,
#main .product-description-section .rte-content li,
#main .product-description-section .rte-content strong,
#main .product-description-section .rte-content em {
  font-family: inherit !important;
  font-size: 15px !important;
  line-height: 1.65 !important;
  color: inherit !important;
  background: transparent !important;
}

#main .product-description-section .rte-content h2,
#main .product-description-section .rte-content h3,
#main .product-description-section .rte-content h4 {
  font-family: inherit !important;
  font-size: 18px !important;
  line-height: 1.35 !important;
  font-weight: 600 !important;
  color: inherit !important;
  background: transparent !important;
  margin: 1.4rem 0 0.75rem !important;
}

#main .product-description-section .rte-content p {
  margin-bottom: 1rem !important;
}

#main .product-description-section .rte-content ul,
#main .product-description-section .rte-content ol {
  margin: 0 0 1.2rem 1.25rem !important;
  padding-left: 1rem !important;
}

#main .product-description-section .rte-content li {
  margin-bottom: 0.45rem !important;
}

#main .product-description-section .rte-content br:last-child {
  display: none;
}




/* Ficha de producto - columna de imagen sticky */
@media (min-width: 992px) {

  /* Evitar que algún contenedor corte el sticky */
  body#product #wrapper,
  body#product #inner-wrapper,
  body#product #content-wrapper,
  body#product #main,
  body#product #main-product-wrapper,
  body#product .product-container,
  body#product .product-info-row,
  body#product .col-product-image,
  body#product .col-product-info,
  body#product .images-container,
  body#product .product-cover {
    overflow: visible !important;
  }

  /* Layout de ficha */
  body#product .product-info-row {
    display: flex !important;
    align-items: flex-start !important;
  }

  /* Más espacio para la descripción */
  body#product .col-product-image {
    flex: 0 0 45% !important;
    max-width: 45% !important;
    position: sticky !important;
    top: 110px;
    align-self: flex-start !important;
    z-index: 5;
    height: fit-content;
  }

  body#product .col-product-info {
    flex: 0 0 55% !important;
    max-width: 55% !important;
  }

  /* Imagen ocupando bien su espacio */
  body#product .product-images-large,
  body#product .product-images-large .swiper-wrapper,
  body#product .product-images-large .swiper-slide,
  body#product .product-images-large picture {
    width: 100% !important;
    max-width: 100% !important;
  }

  body#product .product-cover img,
  body#product .product-images-large img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
  }
}

/* Breadcrumb sin margen inferior */
#wrapper .breadcrumb {
  margin-bottom: 0 !important;
}

#imax-salesperson-link .link-item{
  display:flex;
}


/* =========================================================
   SONNE B2B · FOOTER
   ========================================================= */

#footer-container-main.footer-style-3 {
  background: #191d22;
  color: #aeb5be;
  border-top: 0;
  padding: 64px 0 68px;
}

/* Contenedor */
#footer-container-main.footer-style-3 > .container {
  max-width: 1140px;
  padding-left: 30px;
  padding-right: 30px;
}

/* Dos columnas equilibradas */
#footer-container-main.footer-style-3 > .container > .row:first-child {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 80px;
  align-items: start;
  margin: 0;
}

#footer-container-main.footer-style-3 > .container > .row:first-child > .block {
  width: 100%;
  max-width: none;
  min-width: 0;
  flex: none;
  margin: 0;
  padding: 0;
}

/* Títulos */
#footer-container-main.footer-style-3 .block-title {
  margin: 0 0 26px;
  padding: 0 0 17px;
  border: 0;
  position: relative;
  background: transparent;
}

#footer-container-main.footer-style-3 .block-title span {
  color: #ffffff;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0;
}

/* Pequeño acento de marca */
#footer-container-main.footer-style-3 .block-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 34px;
  height: 2px;
  background: #f49630;
}

/* Contenido */
#footer-container-main.footer-style-3 .block-content {
  color: #aeb5be;
  font-size: 14px;
  line-height: 1.7;
}

/* Enlaces legales */
#footer-container-main.footer-style-3 .block-links ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

#footer-container-main.footer-style-3 .block-links li {
  margin: 0 0 11px;
  padding: 0;
  list-style: none;
}

/* Quitar las flechas decorativas del tema */
#footer-container-main.footer-style-3 .block-links li::before,
#footer-container-main.footer-style-3 .block-links li > a::before {
  display: none !important;
  content: none !important;
}

#footer-container-main.footer-style-3 .block-links li > a {
  display: inline-block;
  padding: 0 !important;
  background: none !important;
  color: #aeb5be !important;
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 400;
  transition: color .2s ease, transform .2s ease;
}

#footer-container-main.footer-style-3 .block-links li > a:hover {
  color: #f49630 !important;
  transform: translateX(3px);
}

/* Nombre de empresa */
#footer-container-main.footer-style-3 .contact-rich strong {
  display: block;
  margin-bottom: 22px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
}

/* Separadores de contacto */
#footer-container-main.footer-style-3 .contact-rich hr {
  display: none;
}

/* Teléfono y correo */
#footer-container-main.footer-style-3 .contact-rich .part {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 16px;
}

/* Iconos */
#footer-container-main.footer-style-3 .contact-rich .part .icon {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #292e35;
  color: #f49630;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

/* Datos */
#footer-container-main.footer-style-3 .contact-rich .part .data {
  min-width: 0;
  color: #aeb5be;
}

#footer-container-main.footer-style-3 .contact-rich .part .data a {
  color: #c5cbd2 !important;
  text-decoration: none !important;
  font-size: 14px;
  transition: color .2s ease;
  overflow-wrap: anywhere;
}

#footer-container-main.footer-style-3 .contact-rich .part .data a:hover {
  color: #f49630 !important;
}

/* Responsive */
@media (max-width: 767px) {
  #footer-container-main.footer-style-3 {
    padding: 42px 0 46px;
  }

  #footer-container-main.footer-style-3 > .container {
    padding-left: 24px;
    padding-right: 24px;
  }

  #footer-container-main.footer-style-3 > .container > .row:first-child {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  #footer-container-main.footer-style-3 .block-title {
    margin-bottom: 20px;
  }
}

/* Quitar línea superior del footer */
#footer-container-main.footer-style-3 > .container > .row:first-child {
  border-top: 0 !important;
}

#footer-container-main.footer-style-3 > .container::before,
#footer-container-main.footer-style-3 > .container > .row:first-child::before {
  display: none !important;
}

/* Logo footer Sonne */
#footer-container-main .sonne-footer-logo {
  display: inline-block;
  max-width: 200px;
}

#footer-container-main .sonne-footer-logo img {
  display: block;
  width: 100%;
  height: auto;
}

/* =========================================================
   SONNE B2B · FOOTER
   ========================================================= */

#footer-container-main.footer-style-3 {
  background: #1c2025;
  color: #aeb5be;
  border: 0;
  padding: 64px 0;
}

/* Contenedor y eliminación de la línea superior */
#footer-container-main.footer-style-3 > .container {
  max-width: 1140px;
  padding-left: 30px;
  padding-right: 30px;
  border: 0;
}

#footer-container-main.footer-style-3 > .container > .row:first-child {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 60px;
  align-items: start;
  margin: 0;
  border: 0 !important;
}

#footer-container-main.footer-style-3 > .container::before,
#footer-container-main.footer-style-3 > .container > .row:first-child::before {
  display: none !important;
  content: none !important;
}

/* Anular las anchuras de Bootstrap de los tres bloques */
#footer-container-main.footer-style-3 > .container > .row:first-child > .block {
  width: 100%;
  max-width: none;
  min-width: 0;
  flex: none;
  margin: 0;
  padding: 0;
}

/* =========================================================
   LOGO
   ========================================================= */

/* Ocultar únicamente el título administrativo del bloque */
#footer-container-main #iqithtmlandbanners-block-4 .block-title {
  display: none !important;
}

/* Evitar márgenes añadidos por el editor HTML */
#footer-container-main #iqithtmlandbanners-block-4 .block-content,
#footer-container-main #iqithtmlandbanners-block-4 p {
  margin: 0 !important;
  padding: 0 !important;
}

#footer-container-main .sonne-footer-logo {
  display: inline-block;
  max-width: 200px;
}

#footer-container-main .sonne-footer-logo img {
  display: block;
  width: 100%;
  height: auto;
}

/* =========================================================
   TÍTULOS
   ========================================================= */

#footer-container-main.footer-style-3 .block-title {
  position: relative;
  margin: 0 0 26px;
  padding: 0 0 17px;
  border: 0;
  background: transparent;
}

#footer-container-main.footer-style-3 .block-title span {
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
}

#footer-container-main.footer-style-3 .block-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 34px;
  height: 2px;
  background: #f49630;
}

/* =========================================================
   LEGALES
   ========================================================= */

#footer-container-main.footer-style-3 .block-content {
  color: #aeb5be;
  font-size: 14px;
  line-height: 1.7;
}

#footer-container-main.footer-style-3 .block-links ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

#footer-container-main.footer-style-3 .block-links li {
  margin: 0 0 11px;
  padding: 0;
  list-style: none;
}

#footer-container-main.footer-style-3 .block-links li::before,
#footer-container-main.footer-style-3 .block-links li > a::before {
  display: none !important;
  content: none !important;
}

#footer-container-main.footer-style-3 .block-links li > a {
  display: inline-block;
  padding: 0 !important;
  background: none !important;
  color: #aeb5be !important;
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 400;
  transition: color .2s ease;
}

#footer-container-main.footer-style-3 .block-links li > a:hover {
  color: #f49630 !important;
}

/* =========================================================
   CONTACTO
   ========================================================= */

/* Nombre principal de la empresa */
#footer-container-main.footer-style-3 .contact-rich > strong {
  display: block;
  margin-bottom: 22px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}

/* Nombre del área dentro de los datos de contacto */
#footer-container-main.footer-style-3 .contact-rich .part .data strong {
  display: block;
  margin: 0 0 4px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

/* Evitar el salto extra después del nombre del área */
#footer-container-main.footer-style-3 .contact-rich .part .data br {
  display: none;
}

#footer-container-main.footer-style-3 .contact-rich hr {
  display: none;
}

#footer-container-main.footer-style-3 .contact-rich .part {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 16px;
}

#footer-container-main.footer-style-3 .contact-rich .part .icon {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #292e35;
  color: #f49630;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

#footer-container-main.footer-style-3 .contact-rich .part .data {
  min-width: 0;
}

#footer-container-main.footer-style-3 .contact-rich .part .data a {
  color: #c5cbd2 !important;
  text-decoration: none !important;
  font-size: 14px;
  overflow-wrap: anywhere;
  transition: color .2s ease;
}

#footer-container-main.footer-style-3 .contact-rich .part .data a:hover {
  color: #f49630 !important;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 991px) {
  #footer-container-main.footer-style-3 > .container > .row:first-child {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  #footer-container-main #iqithtmlandbanners-block-4 {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  #footer-container-main.footer-style-3 {
    padding: 42px 0;
  }

  #footer-container-main.footer-style-3 > .container {
    padding-left: 24px;
    padding-right: 24px;
  }

  #footer-container-main.footer-style-3 > .container > .row:first-child {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  #footer-container-main #iqithtmlandbanners-block-4 {
    grid-column: auto;
  }

  #footer-container-main #iqithtmlandbanners-block-4 .block-content {
    display: block !important;
  }

  #footer-container-main.footer-style-3 .block-title {
    margin-bottom: 20px;
  }
}

/* =========================================================
   SONNE B2B · DATOS PERSONALES
   Solo afecta al formulario de Mi cuenta
   ========================================================= */

/* Tratamiento */
.my-account-page-content #customer-form
.form-group:has(input[name="id_gender"]),

/* Apellidos */
.my-account-page-content #customer-form
.form-group:has(#field-lastname),

/* Empresa */
.my-account-page-content #customer-form
.form-group:has(#field-company),

/* Identificación fiscal */
.my-account-page-content #customer-form
.form-group:has(#field-siret),

/* Ofertas de socios */
.my-account-page-content #customer-form
.form-group:has(#ff_optin) {
  display: none !important;
}

/* =========================================================
   SONNE B2B · ÁRBOL DE CATEGORÍAS
   ========================================================= */

/* Panel principal */
#left-column .block-categories {
  background: #fff;
  border: 1px solid #e7e9ec;
  border-radius: 12px;
  padding: 22px 18px;
  margin-bottom: 28px;
}

/* Cabecera */
#left-column .block-categories .block-title {
  margin: 0 0 16px;
  padding: 0 0 16px;
  border: 0;
  border-bottom: 1px solid #eceef0;
  background: transparent;
}

#left-column .block-categories .block-title span,
#left-column .block-categories .block-title a {
  color: #202429 !important;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none !important;
}

/* Quitar decoraciones antiguas del tema */
#left-column .block-categories .category-sub-menu {
  margin: 0;
  padding: 0;
  list-style: none;
}

#left-column .block-categories .category-sub-menu li {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

#left-column .block-categories .category-sub-menu li::before,
#left-column .block-categories .category-sub-menu li > a::before {
  content: none !important;
  display: none !important;
}

/* =========================================================
   CATEGORÍAS PRINCIPALES
   ========================================================= */

#left-column .block-categories
.category-top-menu > .category-sub-menu > li {
  border-bottom: 1px solid #f0f1f3;
}

#left-column .block-categories
.category-top-menu > .category-sub-menu > li:last-child {
  border-bottom: 0;
}

#left-column .block-categories
.category-top-menu > .category-sub-menu > li > a {
  display: block;
  padding: 13px 42px 13px 12px;
  border-radius: 6px;
  color: #343a40 !important;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none !important;
  transition: background-color .2s ease, color .2s ease;
}

#left-column .block-categories
.category-top-menu > .category-sub-menu > li > a:hover {
  background: #fff5ec;
  color: #d9771f !important;
}

/* Categoría activa, cuando el tema la identifica */
#left-column .block-categories
.category-sub-menu a[aria-current="page"] {
  color: #d9771f !important;
  font-weight: 700;
}

/* =========================================================
   FLECHAS DE DESPLIEGUE
   ========================================================= */

#left-column .block-categories
.category-top-menu > .category-sub-menu > li > .collapse-icons {
  position: absolute;
  top: 4px;
  right: 0;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #777f88;
  transition: background-color .2s ease, color .2s ease;
}

#left-column .block-categories
.category-top-menu > .category-sub-menu > li > .collapse-icons:hover {
  background: #fff0e2;
  color: #d9771f;
}

/* Chevron único para evitar las flechas dobles del tema */
#left-column .block-categories .collapse-icons > i {
  display: none !important;
}

#left-column .block-categories .collapse-icons::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform .2s ease;
}

#left-column .block-categories
.collapse-icons[aria-expanded="true"]::after {
  transform: rotate(225deg);
}

/* =========================================================
   SUBCATEGORÍAS
   ========================================================= */

/* No tocamos display para conservar el Collapse de Bootstrap */
#left-column .block-categories
.category-top-menu > .category-sub-menu > li > .collapse {
  margin: 0 4px 10px 12px;
}

/* Fondo del submenú */
/*
#left-column .block-categories
.category-top-menu > .category-sub-menu > li > .collapse > .category-sub-menu {
  padding: 8px 10px;
  background: #f7f8fa;
  border-left: 2px solid #e6e9ed;
  border-radius: 0 6px 6px 0;
}
  */

/* Enlaces secundarios */
#left-column .block-categories
.category-sub-menu .category-sub-menu li > a {
  display: block;
  padding: 9px 10px;
  border-radius: 5px;
  color: #626a73 !important;
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.5;
  text-decoration: none !important;
  transition: background-color .2s ease, color .2s ease;
}

#left-column .block-categories
.category-sub-menu .category-sub-menu li > a:hover {
  background: #fff;
  color: #d9771f !important;
}

/* Espaciado de niveles más profundos */
#left-column .block-categories
.category-sub-menu .category-sub-menu .category-sub-menu {
  margin-left: 10px;
  padding-left: 10px;
  border-left: 1px solid #e4e7eb;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 767px) {
  #left-column .block-categories {
    padding: 18px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
  }

  #left-column .block-categories
  .category-top-menu > .category-sub-menu > li > a {
    padding-top: 12px;
    padding-bottom: 12px;
  }
}

/* =========================================================
   SONNE B2B · LISTADOS DE DOCUMENTOS
   ========================================================= */

body.sonne-documents-page {
  --sd-ink: #202429;
  --sd-muted: #6f7782;
  --sd-line: #e7eaee;
  --sd-soft: #f6f7f9;
  --sd-orange: #ed8728;
  --sd-orange-dark: #d97318;
}

/* ---------------------------------------------------------
   CONTENEDOR Y DISTRIBUCIÓN
   --------------------------------------------------------- */

body.sonne-documents-page #inner-wrapper {
  max-width: 1480px;
  width: 100%;
  padding: 32px 24px 64px;
}

/* Evitar el título genérico "Su cuenta" encima del listado */
body.sonne-documents-page #main > .page-header {
  display: none;
}

body.sonne-documents-page #content.my-account-page-content-wrapper {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

body.sonne-documents-page .my-account-page-content-wrapper > .row {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 24px;
  margin: 0;
}

/* Menú lateral de Mi cuenta */
body.sonne-documents-page .my-account-side-links {
  flex: 0 0 240px;
  width: 240px;
  max-width: 240px;
  margin: 0;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--sd-line);
  border-radius: 12px;
}

body.sonne-documents-page .my-account-side-links > a {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  text-decoration: none !important;
}

body.sonne-documents-page .my-account-side-links .link-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  border-radius: 7px;
  color: #4c5560;
  font-size: 13px;
  line-height: 1.45;
  transition: background-color .2s ease, color .2s ease;
}

body.sonne-documents-page .my-account-side-links .link-item i {
  flex: 0 0 18px;
  width: 18px;
  text-align: center;
  font-size: 14px;
}

body.sonne-documents-page .my-account-side-links .link-item i::before {
  color: inherit !important;
}

body.sonne-documents-page .my-account-side-links > a:hover .link-item,
body.sonne-documents-page .my-account-side-links > a.sonne-doc-current .link-item {
  background: #fff3e8;
  color: var(--sd-orange-dark);
}

/* Panel principal */
body.sonne-documents-page .my-account-page-content {
  flex: 1 1 0;
  width: auto;
  max-width: none;
  min-width: 0;
  margin: 0;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--sd-line);
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(20, 30, 40, .035);
}

body.sonne-documents-page .my-account-page-content > h2[hidden] {
  display: none !important;
}

body.sonne-documents-page .my-account-page-content > h1 {
  margin: 0 0 26px;
  padding: 0 0 18px;
  border-bottom: 1px solid var(--sd-line);
  color: var(--sd-ink);
  font-size: 27px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -.025em;
}

/* ---------------------------------------------------------
   PESTAÑAS DOCUMENTOS / PRODUCTOS / VENTAS
   --------------------------------------------------------- */

body.sonne-documents-page #controlesFiltroTabla {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 24px;
  padding: 5px;
  background: var(--sd-soft);
  border: 1px solid var(--sd-line);
  border-radius: 10px;
}

body.sonne-documents-page #controlesFiltroTabla p {
  position: relative;
  margin: 0;
  padding: 0;
}

body.sonne-documents-page #controlesFiltroTabla input[type="radio"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

body.sonne-documents-page #controlesFiltroTabla label {
  display: block;
  margin: 0;
  padding: 9px 16px;
  border-radius: 7px;
  color: var(--sd-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}

body.sonne-documents-page #controlesFiltroTabla input:checked + label {
  background: #fff;
  color: var(--sd-orange-dark);
  box-shadow: 0 1px 5px rgba(0,0,0,.06);
}

body.sonne-documents-page #controlesFiltroTabla input:focus-visible + label {
  outline: 2px solid var(--sd-orange);
  outline-offset: 2px;
}

/* ---------------------------------------------------------
   FILTROS DE FECHA
   --------------------------------------------------------- */

body.sonne-documents-page .controlesFecha {
  display: grid;
  grid-template-columns: auto minmax(130px, 180px) auto minmax(130px, 180px);
  align-items: center;
  justify-content: start;
  gap: 10px 14px;
  margin: 0 0 22px;
  padding: 18px;
  background: #fafbfc;
  border: 1px solid var(--sd-line);
  border-radius: 10px;
}

body.sonne-documents-page .controlesFecha .saltoFecha {
  display: none;
}

body.sonne-documents-page .controlesFecha label {
  margin: 0;
  color: #56606b;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

body.sonne-documents-page .controlesFecha input[type="text"],
body.sonne-documents-page .dataTables_filter input,
body.sonne-documents-page .dataTables_length select,
body.sonne-documents-page .selectorPagina input {
  height: 40px;
  border: 1px solid #dfe3e8;
  border-radius: 7px;
  background: #fff;
  color: var(--sd-ink);
  font-size: 13px;
  box-shadow: none;
}

body.sonne-documents-page .controlesFecha input[type="text"] {
  width: 100%;
  min-width: 0;
  padding: 8px 12px;
}

body.sonne-documents-page .controlesFecha input:focus,
body.sonne-documents-page .dataTables_filter input:focus,
body.sonne-documents-page .dataTables_length select:focus,
body.sonne-documents-page .selectorPagina input:focus {
  outline: none;
  border-color: var(--sd-orange);
  box-shadow: 0 0 0 3px rgba(237,135,40,.12);
}

/* ---------------------------------------------------------
   DATATABLES · CONTROLES Y TABLA
   --------------------------------------------------------- */

body.sonne-documents-page .dataTables_wrapper {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 16px 20px;
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
}

body.sonne-documents-page .dataTables_wrapper > .dataTables_length,
body.sonne-documents-page .dataTables_wrapper > .dataTables_filter,
body.sonne-documents-page .dataTables_wrapper > .dataTables_info,
body.sonne-documents-page .dataTables_wrapper > .dataTables_paginate {
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.sonne-documents-page .dataTables_wrapper > .dataTables_length {
  grid-column: 1 / 2;
}

body.sonne-documents-page .dataTables_wrapper > .dataTables_filter {
  grid-column: 2 / -1;
  justify-self: end;
}

body.sonne-documents-page .dataTables_length label,
body.sonne-documents-page .dataTables_filter label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--sd-muted);
  font-size: 13px;
  font-weight: 400;
}

body.sonne-documents-page .dataTables_length select {
  min-width: 72px;
  padding: 7px 10px;
}

body.sonne-documents-page .dataTables_filter input {
  width: 230px;
  max-width: 100%;
  margin: 0 !important;
  padding: 8px 12px;
}

/* Tabla */
body.sonne-documents-page .dataTables_wrapper > table {
  grid-column: 1 / -1;
  width: 100% !important;
  margin: 0 !important;
  border: 1px solid var(--sd-line) !important;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 9px;
}

/* Cabeceras */
body.sonne-documents-page .dataTables_wrapper table.dataTable thead th {
  padding: 14px 12px;
  background: #f3f5f7;
  border: 0;
  border-bottom: 1px solid #e1e5e9;
  color: #56606b;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .01em;
  vertical-align: middle;
}

/* Celdas */
body.sonne-documents-page .dataTables_wrapper table.dataTable tbody td {
  padding: 14px 12px;
  border: 0;
  border-bottom: 1px solid #edf0f2;
  background: #fff;
  color: #343c45;
  font-size: 13px;
  line-height: 1.5;
  vertical-align: middle;
}

body.sonne-documents-page .dataTables_wrapper table.dataTable tbody tr:last-child td {
  border-bottom: 0;
}

body.sonne-documents-page .dataTables_wrapper table.dataTable tbody tr:hover td {
  background: #fafbfc;
}

/* Referencias e importes */
body.sonne-documents-page #listadoDocumentos tbody td:nth-child(2) {
  font-weight: 600;
  color: var(--sd-ink);
}

body.sonne-documents-page #listadoDocumentos tbody td:nth-child(5),
body.sonne-documents-page #listadoDocumentos tbody td:nth-child(6) {
  white-space: nowrap;
}

body.sonne-documents-page #listadoDocumentos tbody td:nth-child(6) {
  font-weight: 700;
  color: var(--sd-ink);
}

/* ---------------------------------------------------------
   ESTADOS
   --------------------------------------------------------- */

body.sonne-documents-page #listadoDocumentos .label.label-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 11.5px;
  line-height: 1.35;
  font-weight: 600;
  white-space: nowrap;
  border: 0;
}

/* Mantener el significado de los estados existentes */
body.sonne-documents-page #listadoDocumentos .label[style*="#999999"] {
  background: #eef0f2 !important;
  color: #626b75 !important;
}

body.sonne-documents-page #listadoDocumentos .label[style*="#f0ad4e"] {
  background: #fff0d9 !important;
  color: #a96508 !important;
}

body.sonne-documents-page #listadoDocumentos .label[style*="#4cae4c"] {
  background: #e6f5e9 !important;
  color: #287a3c !important;
}

/* ---------------------------------------------------------
   ACCIONES
   --------------------------------------------------------- */

body.sonne-documents-page #listadoDocumentos tbody td:last-child > p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

body.sonne-documents-page #listadoDocumentos tbody td:last-child > p:empty {
  display: none;
}

body.sonne-documents-page #listadoDocumentos tbody td:last-child a.btn-primary,
body.sonne-documents-page .selectorPagina .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid var(--sd-orange);
  border-radius: 7px;
  background: var(--sd-orange);
  color: #fff !important;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none !important;
  box-shadow: none;
  transition: background-color .2s ease, border-color .2s ease;
}

body.sonne-documents-page #listadoDocumentos tbody td:last-child a.btn-primary:hover,
body.sonne-documents-page .selectorPagina .btn-primary:hover {
  background: var(--sd-orange-dark);
  border-color: var(--sd-orange-dark);
}

body.sonne-documents-page #listadoDocumentos tbody td:last-child a:not(.btn) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 34px;
  padding: 5px;
 /* border: 1px solid var(--sd-line);
  border-radius: 7px;
  background: #fff;*/
  transition: background-color .2s ease;
}

body.sonne-documents-page #listadoDocumentos tbody td:last-child a:not(.btn):hover {
  background: var(--sd-soft);
}

body.sonne-documents-page #listadoDocumentos .imgPdf,
body.sonne-documents-page #listadoDocumentos .imgTruck {
  display: block;
  width: 22px;
  height: 22px;
  object-fit: contain;
}

/* ---------------------------------------------------------
   TABLAS DE PRODUCTOS Y VENTAS
   --------------------------------------------------------- */

body.sonne-documents-page #listadoProductos td a,
body.sonne-documents-page #listadoProductosVentas td a {
  color: var(--sd-ink);
  text-decoration: none;
}

body.sonne-documents-page #listadoProductos td a:hover,
body.sonne-documents-page #listadoProductosVentas td a:hover {
  color: var(--sd-orange-dark);
}

body.sonne-documents-page #listadoProductos td strong,
body.sonne-documents-page #listadoProductosVentas td strong {
  font-weight: 600;
}

body.sonne-documents-page #listadoProductos td .col-10,
body.sonne-documents-page #listadoProductosVentas td .col-10 {
  width: auto;
  max-width: 100%;
  padding: 0;
  margin-bottom: 8px;
}

body.sonne-documents-page #listadoProductos td img.img-fluid,
body.sonne-documents-page #listadoProductosVentas td img.img-fluid {
  max-width: 64px;
  max-height: 64px;
  object-fit: contain;
}

/* ---------------------------------------------------------
   PAGINACIÓN
   --------------------------------------------------------- */

body.sonne-documents-page .dataTables_wrapper > .dataTables_info {
  grid-column: 1 / 2;
  color: #858d96;
  font-size: 12px;
  line-height: 1.5;
}

body.sonne-documents-page .dataTables_wrapper > .dataTables_paginate {
  grid-column: 2 / 3;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

body.sonne-documents-page .dataTables_paginate .paginate_button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  margin: 0 !important;
  padding: 6px 10px !important;
  border: 1px solid var(--sd-line) !important;
  border-radius: 7px !important;
  background: #fff !important;
  color: #59636e !important;
  font-size: 12px;
}

body.sonne-documents-page .dataTables_paginate .paginate_button:hover {
  background: var(--sd-soft) !important;
  color: var(--sd-ink) !important;
}

body.sonne-documents-page .dataTables_paginate .paginate_button.current {
  border-color: var(--sd-orange) !important;
  background: #fff3e8 !important;
  color: var(--sd-orange-dark) !important;
}

body.sonne-documents-page .dataTables_paginate .paginate_button.disabled {
  opacity: .4;
}

/* Ir a página */
body.sonne-documents-page .selectorPagina {
  grid-column: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin: 0;
}

body.sonne-documents-page .selectorPagina label {
  margin: 0;
  color: var(--sd-muted);
  font-size: 12px;
}

body.sonne-documents-page .selectorPagina input {
  width: 54px;
  padding: 7px 8px;
  text-align: center;
}

body.sonne-documents-page .selectorPagina .btn-primary {
  min-height: 34px;
  padding: 7px 12px;
}

/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */

@media (max-width: 1199px) {
  body.sonne-documents-page .dataTables_wrapper {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  body.sonne-documents-page .dataTables_wrapper > .dataTables_info {
    grid-column: 1 / -1;
  }

  body.sonne-documents-page .dataTables_wrapper > .dataTables_paginate {
    grid-column: 1 / 2;
  }

  body.sonne-documents-page .selectorPagina {
    grid-column: 2 / 3;
  }

  body.sonne-documents-page .controlesFecha {
    grid-template-columns: auto minmax(130px, 1fr);
  }
}

@media (max-width: 991px) {
  body.sonne-documents-page .my-account-page-content-wrapper > .row {
    flex-direction: column;
  }

  body.sonne-documents-page .my-account-side-links,
  body.sonne-documents-page .my-account-page-content {
    width: 100%;
    max-width: none;
    flex: 0 0 auto;
  }
}

@media (max-width: 767px) {
  body.sonne-documents-page #inner-wrapper {
    padding: 20px 16px 40px;
  }

  body.sonne-documents-page .my-account-page-content {
    padding: 20px 16px;
  }

  body.sonne-documents-page .my-account-page-content > h1 {
    font-size: 23px;
  }

  body.sonne-documents-page #controlesFiltroTabla {
    width: 100%;
  }

  body.sonne-documents-page #controlesFiltroTabla p {
    flex: 1 1 auto;
  }

  body.sonne-documents-page #controlesFiltroTabla label {
    text-align: center;
    padding: 9px 10px;
  }

  body.sonne-documents-page .controlesFecha {
    padding: 14px;
  }

  body.sonne-documents-page .dataTables_wrapper {
    grid-template-columns: minmax(0, 1fr);
  }

  body.sonne-documents-page .dataTables_wrapper > .dataTables_length,
  body.sonne-documents-page .dataTables_wrapper > .dataTables_filter,
  body.sonne-documents-page .dataTables_wrapper > .dataTables_info,
  body.sonne-documents-page .dataTables_wrapper > .dataTables_paginate,
  body.sonne-documents-page .selectorPagina {
    grid-column: 1 / -1;
    justify-self: start;
  }

  body.sonne-documents-page .dataTables_filter label {
    width: 100%;
  }

  body.sonne-documents-page .dataTables_filter input {
    flex: 1;
    min-width: 0;
  }

  body.sonne-documents-page .dataTables_wrapper > table {
    min-width: 760px;
  }
}

#module-historicoventas-listado #content{
    box-shadow: none !important; 
    background: none !important; 
    padding: 0rem !important;
}

/* =========================================================
   SONNE · CORRECCIÓN FLECHAS DATATABLES
   ========================================================= */

/* Eliminar los iconos antiguos del tema */
body.sonne-documents-page
.dataTables_wrapper table.dataTable thead th {
  background-image: none !important;
}

/* Reservar espacio para una sola flecha */
body.sonne-documents-page
.dataTables_wrapper table.dataTable thead
th:is(.sorting, .sorting_asc, .sorting_desc) {
  position: relative;
  padding-right: 28px !important;
}

/* Quitar el primer icono */
body.sonne-documents-page
.dataTables_wrapper table.dataTable thead
th:is(.sorting, .sorting_asc, .sorting_desc)::before {
  content: none !important;
  display: none !important;
}

/* Chevron único */
body.sonne-documents-page
.dataTables_wrapper table.dataTable thead
th:is(.sorting, .sorting_asc, .sorting_desc)::after {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  right: 12px !important;
  top: 50% !important;

  width: 7px !important;
  height: 7px !important;
  margin-top: -5px !important;
  padding: 0 !important;

  border: 0 !important;
  border-right: 1.5px solid #9aa3ad !important;
  border-bottom: 1.5px solid #9aa3ad !important;

  background: none !important;
  box-shadow: none !important;
  transform: rotate(45deg);
  opacity: .55;
  pointer-events: none;
}

/* Orden ascendente */
body.sonne-documents-page
.dataTables_wrapper table.dataTable thead th.sorting_asc::after {
  transform: rotate(225deg);
  border-color: #d97318 !important;
  opacity: 1;
}

/* Orden descendente */
body.sonne-documents-page
.dataTables_wrapper table.dataTable thead th.sorting_desc::after {
  transform: rotate(45deg);
  border-color: #d97318 !important;
  opacity: 1;
}

/* =========================================================
   SONNE · FILTROS DE FECHA
   ========================================================= */

body.sonne-documents-page .controlesFecha {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 220px));
  grid-template-areas:
    "inicio-label fin-label"
    "inicio-input fin-input";
  gap: 7px 16px;
  align-items: start;
  justify-content: start;

  margin: 0 0 22px;
  padding: 18px;
  background: #fafbfc;
  border: 1px solid #e7eaee;
  border-radius: 10px;
}

/* Posición de cada elemento */
body.sonne-documents-page
.controlesFecha > label:first-of-type {
  grid-area: inicio-label;
}

body.sonne-documents-page
.controlesFecha > input[name="fechaInicio"] {
  grid-area: inicio-input;
}

body.sonne-documents-page
.controlesFecha > label:nth-of-type(2) {
  grid-area: fin-label;
}

body.sonne-documents-page
.controlesFecha > input[name="fechaFin"] {
  grid-area: fin-input;
}

/* Etiquetas */
body.sonne-documents-page .controlesFecha > label {
  display: block;
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #56606b;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  text-align: left !important;
}

/* Inputs */
body.sonne-documents-page
.controlesFecha > input[type="text"] {
  display: block;
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  height: 40px;
  margin: 0 !important;
  padding: 8px 12px;
  box-sizing: border-box;

  border: 1px solid #dfe3e8;
  border-radius: 7px;
  background-color: #fff;
  color: #202429;
  font-size: 13px;
}

/* El salto antiguo ya no es necesario */
body.sonne-documents-page .controlesFecha .saltoFecha {
  display: none !important;
}

/* Móvil */
@media (max-width: 575px) {
  body.sonne-documents-page .controlesFecha {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "inicio-label"
      "inicio-input"
      "fin-label"
      "fin-input";
    row-gap: 8px;
  }

  body.sonne-documents-page
  .controlesFecha > label:nth-of-type(2) {
    margin-top: 8px !important;
  }
}

#module-historicoventas-listado .controlesFecha {
    padding: 20px !important;
    padding-bottom: 20px !important;
}

/* =========================================================
   SONNE B2B · DATOS EMPRESA
   ========================================================= */

/* Contenedor general */
#content .my-account-page-content:has(#customer-form) {
  background: #fff;
  border: 1px solid #e7eaee;
  border-radius: 12px;
  padding: 28px 32px 32px;
  box-shadow: 0 4px 24px rgba(20, 30, 40, .035);
}

/* Título */
#content .my-account-page-content:has(#customer-form) > h2 {
  margin: 0 0 26px;
  padding: 0 0 18px;
  border-bottom: 1px solid #e7eaee;
  color: #202429;
  font-size: 27px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -.025em;
}

/* =========================================================
   CAMPOS QUE NO QUEREMOS MOSTRAR
   ========================================================= */

/* Tratamiento */
#customer-form .form-group:has(#field-id_gender),

/* Apellidos */
#customer-form .form-group:has(#field-lastname),

/* Empresa */
#customer-form .form-group:has(#field-company),

/* NIF */
#customer-form .form-group:has(#field-siret),

/* Newsletter / ofertas */
#customer-form .form-group:has(#ff_optin) {
  display: none !important;
}

/* =========================================================
   FORMULARIO
   ========================================================= */

#customer-form {
  max-width: 720px;
}

#customer-form .form-group {
  display: block;
  margin: 0 0 22px;
}

/* Anular columnas Bootstrap */
#customer-form .form-group > .col-form-label,
#customer-form .form-group > .js-input-column,
#customer-form .form-group > .form-control-comment {
  width: 100%;
  max-width: none;
  flex: none;
  padding-left: 0;
  padding-right: 0;
}

/* Labels */
#customer-form .col-form-label {
  display: block;
  margin: 0 0 8px;
  padding: 0;
  color: #48515b;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 600;
}

/* Asterisco requerido más discreto */
#customer-form .col-form-label.required::after {
  color: #ed8728;
}

/* Inputs */
#customer-form .form-control {
  width: 100%;
  min-height: 44px;
  padding: 10px 13px;

  border: 1px solid #dfe3e8;
  border-radius: 7px;
  background: #fff;
  color: #202429;

  font-size: 14px;
  line-height: 1.4;

  box-shadow: none;
  transition:
    border-color .2s ease,
    box-shadow .2s ease;
}

#customer-form .form-control:focus {
  border-color: #ed8728;
  box-shadow: 0 0 0 3px rgba(237, 135, 40, .12);
  outline: none;
}

/* Textos de ayuda */
#customer-form .js-input-column > .form-control-comment,
#customer-form .password-requirements {
  display: block;
  margin-top: 7px;
  color: #8a929b;
  font-size: 11.5px;
  line-height: 1.45;
}

/* =========================================================
   CONTRASEÑAS
   ========================================================= */

#customer-form .input-group {
  display: flex;
  width: 100%;
}

#customer-form .input-group .form-control {
  border-radius: 7px 0 0 7px;
}

#customer-form .input-group-append {
  display: flex;
}

#customer-form [data-action="show-password"] {
  width: 46px;
  min-width: 46px;
  padding: 0;

  border: 1px solid #dfe3e8;
  border-left: 0;
  border-radius: 0 7px 7px 0;

  background: #f7f8fa;
  color: #69727c;

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow: none;
  transition:
    background-color .2s ease,
    color .2s ease;
}

#customer-form [data-action="show-password"]:hover {
  background: #fff3e8;
  color: #d97318;
}

/* Feedback de contraseña */
#customer-form .password-strength-feedback {
  margin-top: 10px !important;
}

#customer-form .password-strength-feedback .progress {
  height: 5px;
  border-radius: 20px;
  background: #edf0f2;
  overflow: hidden;
}

/* =========================================================
   PRIVACIDAD
   ========================================================= */

/* Casillas legales obligatorias */
#customer-form .form-group:has(#ff_psgdpr),
#customer-form .form-group:has(#ff_customer_privacy) {
  margin: 8px 0 0;
  padding: 14px 16px;
  background: #fafbfc;
  border: 1px solid #e7eaee;
  border-radius: 8px;
}

/* Quitar columna vacía de label */
#customer-form .form-group:has(#ff_psgdpr) > .col-form-label,
#customer-form .form-group:has(#ff_customer_privacy) > .col-form-label {
  display: none;
}

/* Checkbox */
#customer-form .custom-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

#customer-form .custom-checkbox > span {
  margin-top: 2px;
  flex: 0 0 auto;
}

#customer-form .custom-checkbox label {
  margin: 0;
  color: #59636e;
  font-size: 12px;
  line-height: 1.55;
}

#customer-form .custom-checkbox label em {
  display: block;
  margin-top: 5px;
  color: #8a929b;
  font-size: 11px;
  line-height: 1.5;
}

/* =========================================================
   BOTÓN GUARDAR
   ========================================================= */

#customer-form .form-footer {
  margin-top: 28px;
  padding: 0;
  text-align: left !important;
}

#customer-form .form-control-submit {
  min-width: 120px;
  min-height: 42px;
  padding: 10px 20px;

  border: 1px solid #ed8728;
  border-radius: 7px;

  background: #ed8728;
  color: #fff;

  font-size: 13px;
  font-weight: 600;

  box-shadow: none;
  transition:
    background-color .2s ease,
    border-color .2s ease;
}

#customer-form .form-control-submit:hover {
  background: #d97318;
  border-color: #d97318;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 767px) {
  #content .my-account-page-content:has(#customer-form) {
    padding: 22px 18px;
  }

  #content .my-account-page-content:has(#customer-form) > h2 {
    font-size: 23px;
  }

  #customer-form {
    max-width: none;
  }
}


/* =========================================================
   SONNE B2B · DIRECCIONES
   ========================================================= */

body:has(#content .addresses-footer) {
  --sa-ink: #202429;
  --sa-muted: #6f7782;
  --sa-line: #e7eaee;
  --sa-soft: #f6f7f9;
  --sa-orange: #ed8728;
  --sa-orange-dark: #d97318;
}

/* ---------------------------------------------------------
   CONTENEDOR Y MENÚ LATERAL
   --------------------------------------------------------- */

#inner-wrapper:has(.addresses-footer) {
  max-width: 1480px;
  width: 100%;
  padding: 32px 24px 64px;
}

#main:has(.addresses-footer) > .page-header {
  display: none;
}

#content.my-account-page-content-wrapper:has(.addresses-footer) {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

#content:has(.addresses-footer) > .row {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 24px;
  margin: 0;
}

/* Mismo menú que los listados */
#content:has(.addresses-footer) .my-account-side-links {
  flex: 0 0 240px;
  width: 240px;
  max-width: 240px;
  margin: 0;
  padding: 10px;
  background: #fff;
  border: 1px solid #e7eaee;
  border-radius: 12px;
}

#content:has(.addresses-footer) .my-account-side-links > a {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  text-decoration: none !important;
}

#content:has(.addresses-footer) .my-account-side-links .link-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  border-radius: 7px;
  color: #4c5560;
  font-size: 13px;
  line-height: 1.45;
  transition: background-color .2s ease, color .2s ease;
}

#content:has(.addresses-footer) .my-account-side-links .link-item i {
  flex: 0 0 18px;
  width: 18px;
  text-align: center;
  font-size: 14px;
}

#content:has(.addresses-footer) .my-account-side-links .link-item i::before {
  color: inherit !important;
}

#content:has(.addresses-footer) .my-account-side-links > a:hover .link-item,
#content:has(.addresses-footer) .my-account-side-links > a#addresses-link .link-item {
  background: #fff3e8;
  color: #d97318;
}

/* ---------------------------------------------------------
   PANEL PRINCIPAL
   --------------------------------------------------------- */

#content:has(.addresses-footer) .my-account-page-content {
  flex: 1 1 0;
  width: auto;
  max-width: none;
  min-width: 0;
  margin: 0;
  padding: 28px;
  background: #fff;
  border: 1px solid #e7eaee;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(20, 30, 40, .035);
}

#content:has(.addresses-footer) .my-account-page-content > h2 {
  margin: 0 0 26px;
  padding: 0 0 18px;
  border-bottom: 1px solid #e7eaee;
  color: #202429;
  font-size: 27px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -.025em;
}

/* ---------------------------------------------------------
   GRID DE DIRECCIONES
   --------------------------------------------------------- */

#content:has(.addresses-footer) .my-account-page-content > .row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
}

#content:has(.addresses-footer) .my-account-page-content > .row > div {
  width: 100%;
  max-width: none;
  min-width: 0;
  padding: 0;
  margin: 0;
}

/* ---------------------------------------------------------
   TARJETAS
   --------------------------------------------------------- */

#content:has(.addresses-footer) article.address {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
  padding: 0;
  background: #fff;
  border: 1px solid #e7eaee;
  border-radius: 10px;
  box-shadow: none;
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}

#content:has(.addresses-footer) article.address:hover {
  border-color: #d7dce2;
  box-shadow: 0 6px 20px rgba(20, 30, 40, .045);
}

#content:has(.addresses-footer) .address-body {
  flex: 1 1 auto;
  padding: 22px 24px;
  background: transparent;
}

/* Nombre de la dirección */
#content:has(.addresses-footer) .address-body h4 {
  margin: 0 0 16px;
  padding: 0 0 14px;
  border-bottom: 1px solid #edf0f2;
  color: #202429;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0;
}

/* Datos de dirección */
#content:has(.addresses-footer) .address-body address {
  margin: 0;
  color: #626b75;
  font-size: 13px;
  font-style: normal;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

/* ---------------------------------------------------------
   ACCIONES
   --------------------------------------------------------- */

#content:has(.addresses-footer) .address-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 14px 24px;
  background: #fafbfc;
  border-top: 1px solid #edf0f2;
}

#content:has(.addresses-footer) .address-footer a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid #e2e6ea;
  border-radius: 7px;
  background: #fff;
  color: #59636e !important;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none !important;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

#content:has(.addresses-footer) .address-footer a:hover {
  background: #fff3e8;
  border-color: #f6d5b8;
  color: #d97318 !important;
}

#content:has(.addresses-footer) .address-footer a i {
  font-size: 13px;
}

/* Eliminar: discreto, pero diferenciable */
#content:has(.addresses-footer)
.address-footer a[data-link-action="delete-address"]:hover {
  background: #fff1f0;
  border-color: #f2c9c5;
  color: #b94a40 !important;
}

/* ---------------------------------------------------------
   CREAR NUEVA DIRECCIÓN
   --------------------------------------------------------- */

#content:has(.addresses-footer) .addresses-footer {
  margin: 28px 0 0;
  padding: 0;
  text-align: left;
}

#content:has(.addresses-footer) .addresses-footer a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 42px;
  padding: 10px 18px;
  border: 1px solid #ed8728;
  border-radius: 7px;
  background: #ed8728;
  color: #fff !important;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  box-shadow: none;
  transition: background-color .2s ease, border-color .2s ease;
}

#content:has(.addresses-footer) .addresses-footer a:hover {
  background: #d97318;
  border-color: #d97318;
}

#content:has(.addresses-footer) .addresses-footer a i {
  font-size: 12px;
}

/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */

@media (max-width: 991px) {
  #content:has(.addresses-footer) > .row {
    flex-direction: column;
  }

  #content:has(.addresses-footer) .my-account-side-links,
  #content:has(.addresses-footer) .my-account-page-content {
    width: 100%;
    max-width: none;
    flex: 0 0 auto;
  }
}

@media (max-width: 639px) {
  #inner-wrapper:has(.addresses-footer) {
    padding: 20px 16px 40px;
  }

  #content:has(.addresses-footer) .my-account-page-content {
    padding: 20px 16px;
  }

  #content:has(.addresses-footer) .my-account-page-content > h2 {
    font-size: 23px;
  }

  #content:has(.addresses-footer) .my-account-page-content > .row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  #content:has(.addresses-footer) .address-body {
    padding: 20px;
  }

  #content:has(.addresses-footer) .address-footer {
    padding: 12px 20px;
  }
}

/* =========================================================
   SONNE B2B · CREAR / ACTUALIZAR DIRECCIÓN
   ========================================================= */

/* Contenedor general */
#inner-wrapper:has(#content .address-form) {
  max-width: 1480px;
  width: 100%;
  padding: 32px 24px 64px;
}

#main:has(.address-form) > .page-header {
  display: none;
}

#content.my-account-page-content-wrapper:has(.address-form) {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

#content:has(.address-form) > .row {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 24px;
  margin: 0;
}

/* =========================================================
   MENÚ LATERAL
   ========================================================= */

#content:has(.address-form) .my-account-side-links {
  flex: 0 0 240px;
  width: 240px;
  max-width: 240px;
  margin: 0;
  padding: 10px;
  background: #fff;
  border: 1px solid #e7eaee;
  border-radius: 12px;
}

#content:has(.address-form) .my-account-side-links > a {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  text-decoration: none !important;
}

#content:has(.address-form) .my-account-side-links .link-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  border-radius: 7px;
  color: #4c5560;
  font-size: 13px;
  line-height: 1.45;
  transition: background-color .2s ease, color .2s ease;
}

#content:has(.address-form) .my-account-side-links .link-item i {
  flex: 0 0 18px;
  width: 18px;
  text-align: center;
  font-size: 14px;
}

#content:has(.address-form) .my-account-side-links .link-item i::before {
  color: inherit !important;
}

#content:has(.address-form) .my-account-side-links > a:hover .link-item,
#content:has(.address-form) .my-account-side-links > a#addresses-link .link-item {
  background: #fff3e8;
  color: #d97318;
}

/* =========================================================
   PANEL PRINCIPAL
   ========================================================= */

#content:has(.address-form) .my-account-page-content {
  flex: 1 1 0;
  width: auto;
  max-width: none;
  min-width: 0;
  margin: 0;
  padding: 28px 32px 32px;
  background: #fff;
  border: 1px solid #e7eaee;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(20, 30, 40, .035);
}

#content:has(.address-form) .my-account-page-content > h2 {
  margin: 0 0 26px;
  padding: 0 0 18px;
  border-bottom: 1px solid #e7eaee;
  color: #202429;
  font-size: 27px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -.025em;
}

/* =========================================================
   FORMULARIO
   ========================================================= */

#content .address-form .js-address-form form {
  max-width: 820px;
}

/* Dos columnas */
#content .address-form .form-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 22px;
  align-items: start;
}

/* Cada campo */
#content .address-form .form-fields > .form-group {
  display: block;
  min-width: 0;
  margin: 0;
  padding: 0;
}

/* Campos que necesitan más espacio */
#content .address-form .form-group:has(#field-alias),
#content .address-form .form-group:has(#field-vat_number),
#content .address-form .form-group:has(#field-address1),
#content .address-form .form-group:has(#field-address2),
#content .address-form .form-group:has(#field-dni) {
  grid-column: 1 / -1;
}

/* Anular columnas Bootstrap dentro del formulario */
#content .address-form .form-group > .col-form-label,
#content .address-form .form-group > .js-input-column,
#content .address-form .form-group > .form-control-comment {
  display: block;
  width: 100%;
  max-width: none;
  flex: none;
  padding-left: 0;
  padding-right: 0;
}

/* Etiquetas */
#content .address-form .col-form-label {
  margin: 0 0 8px;
  padding: 0;
  color: #48515b;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 600;
  text-align: left;
}

#content .address-form .col-form-label.required::after {
  color: #ed8728;
}

/* Inputs y select */
#content .address-form .form-control {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  padding: 10px 13px;
  border: 1px solid #dfe3e8;
  border-radius: 7px;
  background: #fff;
  color: #202429;
  font-size: 14px;
  line-height: 1.4;
  box-shadow: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

#content .address-form .form-control:focus {
  border-color: #ed8728;
  box-shadow: 0 0 0 3px rgba(237, 135, 40, .12);
  outline: none;
}

/* Selector de país */
#content .address-form .custom-select2 {
  width: 100%;
}

#content .address-form select.form-control {
  padding-right: 32px;
}

/* Texto "Opcional" */
#content .address-form .form-group > .form-control-comment {
  margin-top: 6px;
  color: #929aa3;
  font-size: 11px;
  line-height: 1.4;
}

/* =========================================================
   BOTÓN GUARDAR
   ========================================================= */

#content .address-form .form-footer {
  margin-top: 30px;
  padding: 24px 0 0;
  border-top: 1px solid #e7eaee;
  text-align: left !important;
}

#content .address-form .form-control-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  min-height: 42px;
  padding: 10px 20px;
  border: 1px solid #ed8728;
  border-radius: 7px;
  background: #ed8728;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  box-shadow: none;
  transition: background-color .2s ease, border-color .2s ease;
}

#content .address-form .form-control-submit:hover {
  background: #d97318;
  border-color: #d97318;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 991px) {
  #content:has(.address-form) > .row {
    flex-direction: column;
  }

  #content:has(.address-form) .my-account-side-links,
  #content:has(.address-form) .my-account-page-content {
    width: 100%;
    max-width: none;
    flex: 0 0 auto;
  }
}

@media (max-width: 767px) {
  #inner-wrapper:has(#content .address-form) {
    padding: 20px 16px 40px;
  }

  #content:has(.address-form) .my-account-page-content {
    padding: 22px 18px;
  }

  #content:has(.address-form) .my-account-page-content > h2 {
    font-size: 23px;
  }

  #content .address-form .form-fields {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  #content .address-form .form-group:has(#field-alias),
  #content .address-form .form-group:has(#field-vat_number),
  #content .address-form .form-group:has(#field-address1),
  #content .address-form .form-group:has(#field-address2),
  #content .address-form .form-group:has(#field-dni) {
    grid-column: auto;
  }
}

/* =========================================================
   SONNE B2B · DELEGACIONES
   ========================================================= */

/* Contenedor general */
#inner-wrapper:has(#imax-associated-customers) {
  max-width: 1480px;
  width: 100%;
  padding: 32px 24px 64px;
}

#main:has(#imax-associated-customers) > .page-header {
  display: none;
}

#content.my-account-page-content-wrapper:has(#imax-associated-customers) {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

/* Distribución de Mi cuenta */
#content:has(#imax-associated-customers) > .row {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 24px;
  margin: 0;
}

/* =========================================================
   MENÚ LATERAL
   ========================================================= */

#content:has(#imax-associated-customers) .my-account-side-links {
  flex: 0 0 240px;
  width: 240px;
  max-width: 240px;
  margin: 0;
  padding: 10px;
  background: #fff;
  border: 1px solid #e7eaee;
  border-radius: 12px;
}

#content:has(#imax-associated-customers) .my-account-side-links > a {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  text-decoration: none !important;
}

#content:has(#imax-associated-customers) .my-account-side-links .link-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  border-radius: 7px;
  color: #4c5560;
  font-size: 13px;
  line-height: 1.45;
  transition: background-color .2s ease, color .2s ease;
}

#content:has(#imax-associated-customers) .my-account-side-links .link-item i {
  flex: 0 0 18px;
  width: 18px;
  text-align: center;
  font-size: 14px;
}

#content:has(#imax-associated-customers) .my-account-side-links .link-item i::before {
  color: inherit !important;
}

#content:has(#imax-associated-customers) .my-account-side-links > a:hover .link-item,
#content:has(#imax-associated-customers) .my-account-side-links > a#imax-associated-customers-link .link-item {
  background: #fff3e8;
  color: #d97318;
}

/* =========================================================
   PANEL PRINCIPAL
   ========================================================= */

#content:has(#imax-associated-customers) .my-account-page-content {
  flex: 1 1 0;
  width: auto;
  max-width: none;
  min-width: 0;
  margin: 0;
  padding: 28px;
  background: #fff;
  border: 1px solid #e7eaee;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(20, 30, 40, .035);
}

#content:has(#imax-associated-customers) .my-account-page-content > h2 {
  margin: 0 0 26px;
  padding: 0 0 18px;
  border-bottom: 1px solid #e7eaee;
  color: #202429;
  font-size: 27px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -.025em;
}

/* =========================================================
   CONTENIDO DE DELEGACIONES
   ========================================================= */

/* Quitar la caja antigua del módulo */
#imax-associated-customers.card {
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

#imax-associated-customers > .card-body {
  padding: 0;
}

/* Texto introductorio */
#imax-associated-customers > .card-body > p {
  margin: 0 0 22px;
  color: #6f7782;
  font-size: 14px;
  line-height: 1.6;
}

/* Lista de delegaciones */
#imax-associated-customers .list-group {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin: 0;
  padding: 0;
  background: transparent;
}

/* Cada delegación */
#imax-associated-customers .list-group-item {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;

  margin: 0;
  padding: 22px 24px;

  background: #fff;
  border: 1px solid #e7eaee;
  border-radius: 10px;

  transition: border-color .2s ease, box-shadow .2s ease;
}

#imax-associated-customers .list-group-item:hover {
  border-color: #d7dce2;
  box-shadow: 0 6px 20px rgba(20, 30, 40, .045);
}

/* Información */
#imax-associated-customers .list-group-item > .mr-3 {
  min-width: 0;
  margin: 0 !important;
}

#imax-associated-customers .list-group-item strong {
  display: block;
  margin: 0 0 7px;
  color: #202429;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}

#imax-associated-customers .list-group-item .mr-3 > div {
  margin-bottom: 5px;
  color: #59636e;
  font-size: 13px;
  line-height: 1.5;
}

#imax-associated-customers .list-group-item small {
  display: block;
  color: #8a929b;
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

/* =========================================================
   BOTÓN DE ACCESO
   ========================================================= */

#imax-associated-customers .list-group-item form {
  margin: 0;
  padding: 0;
}

#imax-associated-customers .list-group-item .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 18px;

  border: 1px solid #ed8728;
  border-radius: 7px;
  background: #ed8728;
  color: #fff !important;

  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;

  box-shadow: none;
  transition: background-color .2s ease, border-color .2s ease;
}

#imax-associated-customers .list-group-item .btn-primary:hover {
  background: #d97318;
  border-color: #d97318;
}

#imax-associated-customers .list-group-item .btn-primary:focus-visible {
  outline: 2px solid #ed8728;
  outline-offset: 3px;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 991px) {
  #content:has(#imax-associated-customers) > .row {
    flex-direction: column;
  }

  #content:has(#imax-associated-customers) .my-account-side-links,
  #content:has(#imax-associated-customers) .my-account-page-content {
    width: 100%;
    max-width: none;
    flex: 0 0 auto;
  }
}

@media (max-width: 767px) {
  #inner-wrapper:has(#imax-associated-customers) {
    padding: 20px 16px 40px;
  }

  #content:has(#imax-associated-customers) .my-account-page-content {
    padding: 22px 18px;
  }

  #content:has(#imax-associated-customers) .my-account-page-content > h2 {
    font-size: 23px;
  }

  #imax-associated-customers .list-group-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    padding: 20px;
  }

  #imax-associated-customers .list-group-item form,
  #imax-associated-customers .list-group-item .btn-primary {
    width: 100%;
  }
}

/* =========================================================
   SONNE B2B · INICIO DE MI CUENTA
   ========================================================= */

/* Contenedor */
body#my-account #inner-wrapper {
  max-width: 1480px;
  width: 100%;
  padding: 32px 24px 64px;
}

/* Distribución */
body#my-account #content.my-account-page-content-wrapper {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

body#my-account #content > .row {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 24px;
  margin: 0;
}

/* =========================================================
   MENÚ LATERAL
   ========================================================= */

body#my-account .my-account-side-links {
  flex: 0 0 240px;
  width: 240px;
  max-width: 240px;
  margin: 0;
  padding: 10px;
  background: #fff;
  border: 1px solid #e7eaee;
  border-radius: 12px;
}

body#my-account .my-account-side-links > a {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  text-decoration: none !important;
}

body#my-account .my-account-side-links .link-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  border-radius: 7px;
  color: #4c5560;
  font-size: 13px;
  line-height: 1.45;
  transition: background-color .2s ease, color .2s ease;
}

body#my-account .my-account-side-links .link-item i {
  flex: 0 0 18px;
  width: 18px;
  text-align: center;
  font-size: 14px;
}

body#my-account .my-account-side-links .link-item i::before {
  color: inherit !important;
}

body#my-account .my-account-side-links > a:hover .link-item {
  background: #fff3e8;
  color: #d97318;
}

/* =========================================================
   PANEL PRINCIPAL
   ========================================================= */

body#my-account .my-account-page-content {
  flex: 1 1 0;
  width: auto;
  max-width: none;
  min-width: 0;
  margin: 0;
  padding: 32px;
  background: #fff;
  border: 1px solid #e7eaee;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(20, 30, 40, .035);
  color: #6f7782;
  font-size: 14px;
  line-height: 1.7;
}

/* Título principal */
body#my-account #main > .page-header {
  margin: 0 0 24px;
  padding: 0;
  border: 0;
}

body#my-account #main > .page-header .page-title {
  margin: 0;
  color: #202429;
  font-size: 30px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -.025em;
}

/* Evitar espacios innecesarios del bloque de notificaciones */
body#my-account .my-account-page-content #notifications:empty {
  display: none;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 991px) {
  body#my-account #content > .row {
    flex-direction: column;
  }

  body#my-account .my-account-side-links,
  body#my-account .my-account-page-content {
    width: 100%;
    max-width: none;
    flex: 0 0 auto;
  }
}

@media (max-width: 767px) {
  body#my-account #inner-wrapper {
    padding: 20px 16px 40px;
  }

  body#my-account .my-account-page-content {
    padding: 24px 20px;
  }

  body#my-account #main > .page-header .page-title {
    font-size: 25px;
  }
}

/* =========================================================
   SONNE B2B · DATOS PERSONALES · LAYOUT
   ========================================================= */

/* Contenedor general */
#inner-wrapper:has(#customer-form) {
  max-width: 1480px;
  width: 100%;
  padding: 32px 24px 64px;
}

/* Ocultar el título genérico "Su cuenta" */
#main:has(#customer-form) > .page-header {
  display: none !important;
}

/* Distribución: menú + contenido */
#content:has(#customer-form) > .row {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 24px;
  margin: 0;
}

/* =========================================================
   MENÚ LATERAL
   ========================================================= */

#content:has(#customer-form) .my-account-side-links {
  flex: 0 0 240px;
  width: 240px;
  max-width: 240px;
  margin: 0;
  padding: 10px;
  background: #fff;
  border: 1px solid #e7eaee;
  border-radius: 12px;
}

#content:has(#customer-form) .my-account-side-links > a {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0 !important;
  text-decoration: none !important;
}

#content:has(#customer-form) .my-account-side-links .link-item {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0;
  padding: 11px 12px;
  border: 0 !important;
  border-radius: 7px;
  background: transparent;
  color: #4c5560;
  font-size: 13px;
  line-height: 1.45;
  box-shadow: none;
  transition: background-color .2s ease, color .2s ease;
}

#content:has(#customer-form) .my-account-side-links .link-item i {
  flex: 0 0 18px;
  width: 18px;
  text-align: center;
  font-size: 14px;
  color: inherit !important;
}

#content:has(#customer-form) .my-account-side-links .link-item i::before {
  color: inherit !important;
}

/* Hover y apartado activo */
#content:has(#customer-form) .my-account-side-links > a:hover .link-item,
#content:has(#customer-form) .my-account-side-links > a#identity-link .link-item {
  background: #fff3e8;
  color: #d97318;
}

/* =========================================================
   PANEL PRINCIPAL
   ========================================================= */

#content:has(#customer-form) .my-account-page-content {
  flex: 1 1 0;
  width: auto;
  max-width: none;
  min-width: 0;
  margin: 0;
  padding: 28px 32px 32px;
  background: #fff;
  border: 1px solid #e7eaee;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(20, 30, 40, .035);
}

#content:has(#customer-form) .my-account-page-content > h2 {
  margin: 0 0 26px;
  padding: 0 0 18px;
  border-bottom: 1px solid #e7eaee;
  color: #202429;
  font-size: 27px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -.025em;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 991px) {
  #content:has(#customer-form) > .row {
    flex-direction: column;
  }

  #content:has(#customer-form) .my-account-side-links,
  #content:has(#customer-form) .my-account-page-content {
    width: 100%;
    max-width: none;
    flex: 0 0 auto;
  }
}

@media (max-width: 767px) {
  #inner-wrapper:has(#customer-form) {
    padding: 20px 16px 40px;
  }

  #content:has(#customer-form) .my-account-page-content {
    padding: 22px 18px;
  }

  #content:has(#customer-form) .my-account-page-content > h2 {
    font-size: 23px;
  }
}

/* =========================================================
   SONNE B2B · CAMPOS DE CONTRASEÑA
   ========================================================= */

#customer-form .input-group {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: stretch;
  width: 100%;
}

/* Campo de contraseña */
#customer-form .input-group > .form-control {
  flex: 1 1 auto;
  width: 1%;
  min-width: 0;
  height: 44px;
  margin: 0 !important;
  border-radius: 7px 0 0 7px !important;
}

/* Contenedor del botón */
#customer-form .input-group-append {
  display: flex !important;
  flex: 0 0 44px;
  width: 44px;
  margin: 0 !important;
}

/* Botón mostrar/ocultar */
#customer-form [data-action="show-password"] {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-width: 44px;
  height: 44px;
  margin: 0 !important;
  padding: 0 !important;

  border: 1px solid #dfe3e8;
  border-left: 0;
  border-radius: 0 7px 7px 0;

  background: #f7f8fa;
  color: #69727c;
  box-shadow: none;
}

#customer-form [data-action="show-password"]:hover {
  background: #fff3e8;
  color: #d97318;
}

#customer-form [data-action="show-password"] i {
  margin: 0;
  font-size: 14px;
}

/* =========================================================
   SONNE B2B · DETALLE DE DOCUMENTOS
   ========================================================= */

body#module-historicoventas-documento {
  --sdd-ink: #202429;
  --sdd-muted: #6f7782;
  --sdd-line: #e7eaee;
  --sdd-soft: #f6f7f9;
  --sdd-orange: #ed8728;
  --sdd-orange-dark: #d97318;
}

/* =========================================================
   RESUMEN DEL DOCUMENTO
   ========================================================= */

#module-historicoventas-documento #order-infos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 28px;
}

/* Tarjetas */
#module-historicoventas-documento #order-infos > .box {
  margin: 0;
  padding: 22px 24px;
  background: #fafbfc;
  border: 1px solid #e7eaee;
  border-radius: 10px;
  box-shadow: none;
}

/* Primera tarjeta: referencia, fecha y descarga */
#module-historicoventas-documento #order-infos > .box:first-child {
  grid-column: 1 / -1;
  background: #fff;
}

#module-historicoventas-documento
#order-infos > .box:first-child > .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 20px;
  margin: 0;
}

#module-historicoventas-documento
#order-infos > .box:first-child .col-sm-9 {
  flex: 1 1 auto;
  width: auto;
  max-width: none;
  padding: 0;
}

#module-historicoventas-documento
#order-infos > .box:first-child .col-sm-3 {
  flex: 0 0 auto;
  width: auto;
  max-width: none;
  padding: 0;
}

/* Referencia del documento */
#module-historicoventas-documento
#order-infos > .box:first-child p:first-child {
  margin: 0 0 7px;
}

#module-historicoventas-documento
#order-infos > .box:first-child p:first-child strong {
  color: #202429;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
}

/* Fecha */
#module-historicoventas-documento
#order-infos > .box:first-child p:nth-child(2) {
  margin: 0;
}

#module-historicoventas-documento
#order-infos > .box:first-child p:nth-child(2) strong {
  color: #7b838d;
  font-size: 12px;
  font-weight: 500;
}

/* Botón de descarga PDF */
#module-historicoventas-documento
#order-infos .imgPdfParent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 9px;

  transition: background-color .2s ease, border-color .2s ease;
}

#module-historicoventas-documento
#order-infos .imgPdfParent:hover {
  background: #fff3e8;
  border-color: #f6d5b8;
}

#module-historicoventas-documento
#order-infos .imgPdfParent .imgPdf {
  display: block;
  width: 24px;
  height: 24px;
  max-width: 100%;
  object-fit: contain;
}

/* Datos de seguimiento, pago y referencias */
#module-historicoventas-documento #order-infos ul {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#module-historicoventas-documento #order-infos li {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 0;
  padding: 0;
  color: #202429;
  font-size: 13px;
  line-height: 1.5;
}

#module-historicoventas-documento #order-infos li strong {
  display: block;
  color: #7b838d;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
}

/* =========================================================
   TABLA DE PRODUCTOS · ESCRITORIO
   ========================================================= */

#module-historicoventas-documento
.my-account-page-content > .box.hidden-sm-down {
  margin: 0 0 28px;
  padding: 0;
  background: #fff;
  border: 1px solid #e7eaee;
  border-radius: 10px;
  box-shadow: none;
  overflow-x: auto;
}

#module-historicoventas-documento #order-products {
  width: 100%;
  margin: 0;
  border: 0;
  border-collapse: separate;
  border-spacing: 0;
  color: #48515b;
  font-size: 12px;
}

/* Cabecera */
#module-historicoventas-documento #order-products thead th {
  padding: 15px 16px;
  background: #f7f8fa;
  border: 0;
  border-bottom: 1px solid #e7eaee;
  color: #59636e;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  text-align: left;
  text-transform: none;
}

/* Celdas */
#module-historicoventas-documento #order-products tbody td {
  padding: 20px 16px;
  border: 0;
  border-bottom: 1px solid #edf0f2;
  background: #fff;
  vertical-align: middle;
  line-height: 1.6;
}

#module-historicoventas-documento
#order-products tbody tr:last-child td {
  border-bottom: 0;
}

/* Producto: imagen + información */
#module-historicoventas-documento
#order-products tbody td:first-child > .row {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 16px;
  margin: 0;
}

#module-historicoventas-documento
#order-products tbody td:first-child > .row > .col-10:first-child {
  flex: 0 0 68px;
  width: 68px;
  max-width: 68px;
  padding: 0;
}

#module-historicoventas-documento
#order-products tbody td:first-child > .row > .col-10:first-child img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 68px;
  object-fit: contain;
}

#module-historicoventas-documento
#order-products tbody td:first-child > .row > .col-10:nth-child(2) {
  flex: 1 1 auto;
  width: auto;
  max-width: none;
  min-width: 0;
  padding: 0;
}

#module-historicoventas-documento
#order-products tbody td:first-child strong {
  display: inline-block;
  margin-bottom: 5px;
  font-size: 13px;
  font-weight: 600;
}

#module-historicoventas-documento
#order-products tbody td:first-child strong a {
  color: #202429;
  text-decoration: none;
}

#module-historicoventas-documento
#order-products tbody td:first-child strong a:hover {
  color: #d97318;
}

/* Cantidades e importes */
#module-historicoventas-documento
#order-products tbody td:not(:first-child) {
  white-space: nowrap;
}

#module-historicoventas-documento
#order-products tbody td:last-child {
  color: #202429;
  font-weight: 600;
}

/* =========================================================
   TOTALES
   ========================================================= */

#module-historicoventas-documento #order-products tfoot td {
  padding: 11px 16px;
  background: #fafbfc;
  border: 0;
  color: #69727c;
  font-size: 12px;
  line-height: 1.5;
}

#module-historicoventas-documento
#order-products tfoot td:last-child {
  text-align: right;
  white-space: nowrap;
  color: #202429;
  font-weight: 600;
}

#module-historicoventas-documento
#order-products tfoot tr:first-child td {
  padding-top: 18px;
  border-top: 1px solid #e7eaee;
}

#module-historicoventas-documento
#order-products tfoot .line-total td {
  padding-top: 17px;
  padding-bottom: 17px;
  background: #fff3e8;
  border-top: 1px solid #f6d5b8;
  color: #202429;
  font-size: 14px;
  font-weight: 700;
}

#module-historicoventas-documento
#order-products tfoot .line-total td:last-child {
  color: #d97318;
  font-size: 16px;
}

/* =========================================================
   VERSIÓN MÓVIL DE PRODUCTOS Y TOTALES
   ========================================================= */

#module-historicoventas-documento .order-items,
#module-historicoventas-documento .order-totals {
  margin: 0 0 20px;
  padding: 0;
  background: #fff;
  border: 1px solid #e7eaee;
  border-radius: 10px;
  box-shadow: none;
  overflow: hidden;
}

#module-historicoventas-documento .order-items .order-item {
  padding: 18px;
  border-bottom: 1px solid #edf0f2;
}

#module-historicoventas-documento
.order-items .order-item:last-child {
  border-bottom: 0;
}

#module-historicoventas-documento
.order-items .order-item > .row {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
}

#module-historicoventas-documento
.order-items .order-item > .row > div {
  width: 100%;
  max-width: none;
  padding: 0;
}

#module-historicoventas-documento .order-items .name {
  color: #202429;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}

#module-historicoventas-documento .order-items .ref {
  margin-top: 4px;
  color: #8a929b;
  font-size: 11px;
}

#module-historicoventas-documento .order-items .qty > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  align-items: center;
}

#module-historicoventas-documento .order-items .qty .col-4 {
  width: auto;
  max-width: none;
  padding: 0;
  font-size: 12px;
}

#module-historicoventas-documento
.order-items .qty .col-4:last-child {
  color: #202429;
  font-weight: 600;
}

/* Totales móvil */
#module-historicoventas-documento .order-totals .order-total {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 18px;
  border-bottom: 1px solid #edf0f2;
  color: #69727c;
  font-size: 12px;
}

#module-historicoventas-documento
.order-totals .order-total > div {
  width: auto;
  max-width: none;
  padding: 0;
}

#module-historicoventas-documento
.order-totals .order-total:last-child {
  margin: 0;
  padding: 17px 18px;
  border-bottom: 0;
  background: #fff3e8;
  color: #202429;
  font-size: 14px;
  font-weight: 700;
}

#module-historicoventas-documento
.order-totals .order-total:last-child > div:last-child {
  color: #d97318;
  font-size: 16px;
}

/* =========================================================
   AÑADIR MENSAJE
   ========================================================= */

#module-historicoventas-documento .order-message-form {
  margin: 0;
  padding: 26px;
  background: #fff;
  border: 1px solid #e7eaee;
  border-radius: 10px;
  box-shadow: none;
}

#module-historicoventas-documento .order-message-form header {
  margin: 0 0 22px;
  padding: 0;
  border: 0;
}

#module-historicoventas-documento .order-message-form h3 {
  margin: 0 0 8px;
  color: #202429;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
}

#module-historicoventas-documento .order-message-form header p {
  margin: 0;
  color: #7b838d;
  font-size: 12px;
  line-height: 1.6;
}

#module-historicoventas-documento
.order-message-form .form-group {
  margin: 0;
}

#module-historicoventas-documento
.order-message-form .form-group > label:empty {
  display: none;
}

#module-historicoventas-documento
.order-message-form .form-group > .col-md-9 {
  flex: 0 0 100%;
  width: 100%;
  max-width: none;
  padding: 0;
}

#module-historicoventas-documento
.order-message-form textarea {
  display: block;
  width: 100%;
  min-height: 110px;
  padding: 13px 15px;
  border: 1px solid #dfe3e8;
  border-radius: 7px;
  background: #fff;
  color: #202429;
  font-size: 13px;
  line-height: 1.6;
  box-shadow: none;
  resize: vertical;
}

#module-historicoventas-documento
.order-message-form textarea:focus {
  border-color: #ed8728;
  box-shadow: 0 0 0 3px rgba(237, 135, 40, .12);
  outline: none;
}

#module-historicoventas-documento .order-message-form .form-footer {
  margin-top: 18px;
  padding: 0;
  text-align: left !important;
}

#module-historicoventas-documento
.order-message-form .form-control-submit {
  min-width: 110px;
  min-height: 42px;
  padding: 10px 20px;
  border: 1px solid #ed8728;
  border-radius: 7px;
  background: #ed8728;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  box-shadow: none;
}

#module-historicoventas-documento
.order-message-form .form-control-submit:hover {
  background: #d97318;
  border-color: #d97318;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 767px) {
  #module-historicoventas-documento #order-infos {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  #module-historicoventas-documento
  #order-infos > .box:first-child {
    grid-column: auto;
  }

  #module-historicoventas-documento #order-infos > .box {
    padding: 20px;
  }

  #module-historicoventas-documento
  #order-infos > .box:first-child p:first-child strong {
    font-size: 15px;
  }

  #module-historicoventas-documento .order-message-form {
    padding: 20px;
  }
}

/* =========================================================
   SONNE B2B · NOTIFICACIONES
   ========================================================= */

#notifications:empty {
  display: none;
}

#notifications .alert {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 0 0 24px;
  padding: 17px 20px;

  border: 1px solid #e7eaee;
  border-radius: 9px;

  background: #fff;
  color: #48515b;
  box-shadow: none;

  font-size: 13px;
  line-height: 1.6;
}

/* Icono */
#notifications .alert::before {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 24px;

  width: 24px;
  height: 24px;
  margin-top: 1px;

  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

/* Limpiar listas antiguas */
#notifications .alert ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

#notifications .alert li {
  margin: 0;
  padding: 0;
}

#notifications .alert li + li {
  margin-top: 5px;
}

/* =========================================================
   ÉXITO · NARANJA CORPORATIVO
   ========================================================= */

#notifications .alert-success {
  background: #fff8f1;
  border-color: #f4dfca;
  color: #65472e;
}

#notifications .alert-success::before {
  content: "✓";
  background: #ed8728;
  color: #fff;
}

/* =========================================================
   ERROR
   ========================================================= */

#notifications .alert-danger {
  background: #fff5f4;
  border-color: #f3d6d2;
  color: #8e3831;
}

#notifications .alert-danger::before {
  content: "!";
  background: #c94b40;
  color: #fff;
}

/* =========================================================
   AVISO
   ========================================================= */

#notifications .alert-warning {
  background: #fffbf2;
  border-color: #f1e2bf;
  color: #755a29;
}

#notifications .alert-warning::before {
  content: "!";
  background: #c58a24;
  color: #fff;
}

/* =========================================================
   INFORMACIÓN
   ========================================================= */

#notifications .alert-info {
  background: #f6f7f9;
  border-color: #e2e6ea;
  color: #48515b;
}

#notifications .alert-info::before {
  content: "i";
  background: #59636e;
  color: #fff;
}

/* Móvil */
@media (max-width: 575px) {
  #notifications .alert {
    gap: 11px;
    padding: 15px;
    font-size: 12px;
  }
}




/* =========================================================
   Evitar que el PDF se salga de la columna
   ========================================================= */

/* Reservar espacio para las acciones */
body.sonne-documents-page
#listadoDocumentos thead th:last-child,
body.sonne-documents-page
#listadoDocumentos tbody td:last-child {
  min-width: 150px !important;
  box-sizing: border-box;
}

/* Datos + PDF en una misma línea */
body.sonne-documents-page
#listadoDocumentos tbody td:last-child > p:first-child {
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap !important;
  gap: 8px;
  margin: 0 !important;
  padding: 0 !important;
  white-space: nowrap;
}

/* Evitar que los botones se encojan */
body.sonne-documents-page
#listadoDocumentos tbody td:last-child > p:first-child > a {
  flex: 0 0 auto;
  margin: 0 !important;
}

/* Botón Datos */
body.sonne-documents-page
#listadoDocumentos tbody td:last-child > p:first-child > .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 5px;
  white-space: nowrap;
}

/* Botón del PDF */
body.sonne-documents-page
#listadoDocumentos tbody td:last-child a:has(.imgPdf) {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  padding: 6px;
  box-sizing: border-box;
}

/* Imagen PDF */
body.sonne-documents-page
#listadoDocumentos tbody td:last-child .imgPdf {
  display: block;
  width: 22px !important;
  height: 22px !important;
  max-width: 100% !important;
  object-fit: contain;
}

/* Eliminar el párrafo vacío que genera el módulo */
body.sonne-documents-page
#listadoDocumentos tbody td:last-child > p:empty {
  display: none !important;
}


/* =========================================================
   SONNE B2B · SEPARADORES REDIMENSIONABLES
   ========================================================= */

@media (min-width: 768px) {

  body.sonne-documents-page
  table.sonne-resizable-table {
    table-layout: fixed !important;
  }

  body.sonne-documents-page
  table.sonne-resizable-table thead th {
    position: relative !important;
    box-sizing: border-box;
  }

  body.sonne-documents-page
  table.sonne-resizable-table tbody td {
    box-sizing: border-box;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Área que se arrastra */
  body.sonne-documents-page
  .sonne-col-resizer {
    position: absolute;
    z-index: 30;

    top: 0;
    right: -5px;

    width: 10px;
    height: 100%;

    cursor: col-resize;
    touch-action: none;
    user-select: none;
  }

  /* Línea indicadora */
  body.sonne-documents-page
  .sonne-col-resizer::after {
    content: "";

    position: absolute;
    top: 16%;
    bottom: 16%;
    left: 4px;

    width: 1px;

    background: #ccd2d8;

    opacity: 0;
    transition:
      opacity .15s ease,
      background-color .15s ease;
  }

  body.sonne-documents-page
  thead th:hover > .sonne-col-resizer::after {
    opacity: 1;
  }

  body.sonne-documents-page
  .sonne-col-resizer:hover::after {
    width: 2px;
    opacity: 1;
    background: #ed8728;
  }

  body.sonne-resizing-column,
  body.sonne-resizing-column * {
    cursor: col-resize !important;
    user-select: none !important;
  }

}

/* =========================================================
   TEST SONNE · MOSTRAR CARRITO EN GRID
   ========================================================= */

.js-product-miniature-wrapper,
.product-miniature.product-miniature-grid,
.product-miniature.product-miniature-layout-2,
.product-miniature.product-miniature-layout-2 .thumbnail-container,
.product-miniature.product-miniature-layout-2 .product-description {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
}

.product-miniature.product-miniature-layout-2 .product-description {
    position: static !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.product-miniature.product-miniature-layout-2 .product-add-cart {
    display: block !important;
    position: static !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    margin: 15px 0 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

.product-miniature.product-miniature-layout-2 .input-group-add-cart {
    display: flex !important;
    width: 100% !important;
    height: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.product-miniature.product-miniature-layout-2 .btn-product-list.add-to-cart {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 1 1 auto !important;
    min-height: 42px !important;
    opacity: 1 !important;
    visibility: visible !important;
}



/* =========================================================
   SONNE B2B · BOTÓN CARRITO EN LISTADOS DE CATEGORÍA
   ========================================================= */

body#category .product-miniature.product-miniature-layout-2 .product-add-cart {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: static !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  margin-top: 15px !important;
}

body#category .product-miniature.product-miniature-layout-2 .input-group-add-cart {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
  width: 100% !important;
}

body#category .product-miniature.product-miniature-layout-2 .btn-product-list.add-to-cart {
  display: flex !important;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto !important;
  width: 100% !important;
  min-height: 42px !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* =========================================================
   SONNE B2B · ICONO OPTIMIZADORES TIGO
   ========================================================= */

.sonne-nav-item[data-sonne-category-id="53"] .sonne-nav-icon i::before {
  content: "\f062" !important; /* flecha hacia arriba */
  font-family: FontAwesome !important;
}


/* =========================================================
   SONNE B2B · COMERCIALES INFORMAX
   ========================================================= */

/* Contenedor general */
#inner-wrapper:has(#imax-sales-person) {
  max-width: 1480px;
  width: 100%;
  padding: 32px 24px 64px;
}

#main:has(#imax-sales-person) > .page-header {
  display: none;
}

#content.my-account-page-content-wrapper:has(#imax-sales-person) {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

/* Distribución de Mi cuenta */
#content:has(#imax-sales-person) > .row {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 24px;
  margin: 0;
}

/* =========================================================
   MENÚ LATERAL
   ========================================================= */

#content:has(#imax-sales-person) .my-account-side-links {
  flex: 0 0 240px;
  width: 240px;
  max-width: 240px;
  margin: 0;
  padding: 10px;
  background: #fff;
  border: 1px solid #e7eaee;
  border-radius: 12px;
}

#content:has(#imax-sales-person) .my-account-side-links > a {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  text-decoration: none !important;
}

#content:has(#imax-sales-person) .my-account-side-links .link-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  border-radius: 7px;
  color: #4c5560;
  font-size: 13px;
  line-height: 1.45;
  transition: background-color .2s ease, color .2s ease;
}

#content:has(#imax-sales-person) .my-account-side-links .link-item i {
  flex: 0 0 18px;
  width: 18px;
  text-align: center;
  font-size: 14px;
}

#content:has(#imax-sales-person) .my-account-side-links .link-item i::before {
  color: inherit !important;
}


#content:has(#imax-sales-person) .my-account-side-links > a:hover .link-item,
#content:has(#imax-sales-person) .my-account-side-links > a#imax-salesperson-link .link-item {
  background: #fff3e8;
  color: #d97318;
}

#imax-salesperson-link .link-item .material-symbols-outlined {
  font-size: 18px;
  padding-right: 0px;
  
}


/* =========================================================
   PANEL PRINCIPAL
   ========================================================= */

#content:has(#imax-sales-person) .my-account-page-content {
  flex: 1 1 0;
  width: auto;
  max-width: none;
  min-width: 0;
  margin: 0;
  padding: 28px;
  background: #fff;
  border: 1px solid #e7eaee;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(20, 30, 40, .035);
}

#content:has(#imax-sales-person) .my-account-page-content > h2 {
  margin: 0 0 26px;
  padding: 0 0 18px;
  border-bottom: 1px solid #e7eaee;
  color: #202429;
  font-size: 27px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -.025em;
}

/* =========================================================
   CONTENIDO DE COMERCIALES
   ========================================================= */

/* Quitar la caja antigua del módulo */
#imax-sales-person.card {
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

#imax-sales-person > .card-body {
  padding: 0;
}

/* Texto introductorio */
#imax-sales-person > .card-body > p {
  margin: 0 0 22px;
  color: #6f7782;
  font-size: 14px;
  line-height: 1.6;
}

/* Lista de comerciales */
#imax-sales-person .list-group {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin: 0;
  padding: 0;
  background: transparent;
}

/* Cada comercial */
#imax-sales-person .list-group-item {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;

  margin: 0;
  padding: 22px 24px;

  background: #fff;
  border: 1px solid #e7eaee;
  border-radius: 10px;

  transition: border-color .2s ease, box-shadow .2s ease;
}

#imax-sales-person .list-group-item:hover {
  border-color: #d7dce2;
  box-shadow: 0 6px 20px rgba(20, 30, 40, .045);
}

/* Información */
#imax-sales-person .list-group-item > .mr-3 {
  min-width: 0;
  margin: 0 !important;
}

#imax-sales-person .list-group-item strong {
  display: block;
  margin: 0 0 7px;
  color: #202429;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}

#imax-sales-person .list-group-item .mr-3 > div {
  margin-bottom: 5px;
  color: #59636e;
  font-size: 13px;
  line-height: 1.5;
}

#imax-sales-person .list-group-item small {
  display: block;
  color: #8a929b;
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

/* =========================================================
   BOTÓN DE ACCESO
   ========================================================= */

#imax-sales-person .list-group-item form {
  margin: 0;
  padding: 0;
}

#imax-sales-person .list-group-item .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 18px;

  border: 1px solid #ed8728;
  border-radius: 7px;
  background: #ed8728;
  color: #fff !important;

  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;

  box-shadow: none;
  transition: background-color .2s ease, border-color .2s ease;
}

#imax-sales-person .list-group-item .btn-primary:hover {
  background: #d97318;
  border-color: #d97318;
}

#imax-sales-person .list-group-item .btn-primary:focus-visible {
  outline: 2px solid #ed8728;
  outline-offset: 3px;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 991px) {
  #content:has(#imax-sales-person) > .row {
    flex-direction: column;
  }

  #content:has(#imax-sales-person) .my-account-side-links,
  #content:has(#imax-sales-person) .my-account-page-content {
    width: 100%;
    max-width: none;
    flex: 0 0 auto;
  }
}

@media (max-width: 767px) {
  #inner-wrapper:has(#imax-sales-person) {
    padding: 20px 16px 40px;
  }

  #content:has(#imax-sales-person) .my-account-page-content {
    padding: 22px 18px;
  }

  #content:has(#imax-sales-person) .my-account-page-content > h2 {
    font-size: 23px;
  }

  #imax-sales-person .list-group-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    padding: 20px;
  }

  #imax-sales-person .list-group-item form,
  #imax-sales-person .list-group-item .btn-primary {
    width: 100%;
  }
}