.wephone-quick-order{margin:.75rem 0 1rem}.wephone-quick-order-button{display:inline-flex;align-items:center;gap:.55rem}.wephone-quick-order-count{display:inline-flex;align-items:center;justify-content:center;min-width:1.65rem;height:1.65rem;padding:0 .4rem;border-radius:999px;color:#fff;background:#59a47b;font-size:.75rem}.wephone-quick-order-dialog[hidden]{display:none!important}.wephone-quick-order-dialog{position:fixed;z-index:2200;inset:0}.wephone-quick-order-backdrop{position:absolute;inset:0;width:100%;border:0;background:rgba(0,0,0,.5);cursor:default}.wephone-quick-order-panel{position:absolute;top:0;right:0;display:flex;flex-direction:column;width:min(760px,92vw);height:100%;background:#fff;box-shadow:-8px 0 28px rgba(0,0,0,.22);animation:wephoneQuickOrderEnter .2s ease-out}.wephone-quick-order-header{display:flex;justify-content:space-between;gap:1rem;padding:1rem 1.2rem;border-bottom:1px solid #ddd}.wephone-quick-order-header h2{margin:0 0 .25rem;font-size:1.25rem}.wephone-quick-order-header p{margin:0;color:#666}.wephone-quick-order-close{flex:0 0 2.25rem;width:2.25rem;height:2.25rem;padding:0;border:0;border-radius:50%;background:#f2f2f2;font-size:1.6rem;line-height:1}.wephone-quick-order-table-wrap{flex:1 1 auto;overflow:auto}.wephone-quick-order-table{width:100%;min-width:680px;border-collapse:collapse}.wephone-quick-order-table th,.wephone-quick-order-table td{padding:.65rem .55rem;border-bottom:1px solid #e5e5e5;vertical-align:middle}.wephone-quick-order-table th{position:sticky;z-index:1;top:0;background:#f7f7f7;text-align:left}.wephone-quick-order-table tr.is-selected{background:#fff3e9}.wephone-quick-order-table tr.is-unavailable{opacity:.58}.wephone-quick-order-combination{display:flex;align-items:center;gap:.65rem;min-width:230px}.wephone-quick-order-combination img{flex:0 0 48px;width:48px;height:48px;object-fit:contain}.wephone-quick-order-combination strong,.wephone-quick-order-combination small{display:block}.wephone-quick-order-combination small{margin-top:.15rem;color:#777}.wephone-quick-order-combination .wephone-quick-order-unavailable{color:#b42318}.wephone-quick-order-quantity{display:inline-flex;overflow:hidden;border:1px solid #d7dce1;border-radius:999px}.wephone-quick-order-quantity button{width:2rem;border:0;background:#f5f6f7}.wephone-quick-order-quantity input{width:3rem;padding:.35rem .15rem;border:0;text-align:center;appearance:textfield}.wephone-quick-order-quantity input::-webkit-inner-spin-button{appearance:none}.wephone-quick-order-footer{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.9rem 1.2rem;border-top:1px solid #ddd;background:#fff}.wephone-quick-order-footer div{display:flex;gap:1rem}html.wephone-quick-order-open{overflow:hidden}@keyframes wephoneQuickOrderEnter{from{transform:translateX(100%)}to{transform:translateX(0)}}@media(max-width:575.98px){.wephone-quick-order-button{justify-content:center;width:100%}.wephone-quick-order-panel{width:100%}.wephone-quick-order-header{padding:.85rem}.wephone-quick-order-footer{align-items:stretch;flex-direction:column;padding:.75rem}.wephone-quick-order-footer div{justify-content:space-between}}@media(prefers-reduced-motion:reduce){.wephone-quick-order-panel{animation:none}}

/* Fase 1: llamada a la compra a granel siempre visible en ZOneTheme. */
.wephone-quick-order-button.btn {
  min-height: 2.75rem;
  padding: .6rem 1rem;
  border-color: #0062cc !important;
  color: #fff !important;
  background: #0062cc !important;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0, 98, 204, .22);
}

.wephone-quick-order-button.btn:hover,
.wephone-quick-order-button.btn:focus,
.wephone-quick-order-button.btn:active {
  border-color: #004f9f !important;
  color: #fff !important;
  background: #004f9f !important;
}

.wephone-quick-order-button.btn:focus {
  box-shadow: 0 0 0 .2rem rgba(0, 98, 204, .25);
}

.wephone-quick-order-mobile-price {
  display: none;
}

.wephone-quick-order-models {
  margin: 0 0 1rem;
  padding: .85rem;
  border: 1px dashed #ccd2d8;
  border-radius: .25rem;
  background: #fff;
}

.wephone-quick-order-models-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .65rem;
}

.wephone-quick-order-models-heading strong {
  color: #252525;
}

.wephone-quick-order-models-heading span {
  overflow: hidden;
  color: #777;
  font-size: .72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wephone-quick-order-models-list {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.wephone-quick-order-model-groups {
  display: grid;
  gap: .7rem;
}

.wephone-quick-order-model-brand {
  display: block;
  margin-bottom: .4rem;
  color: #333;
  font-size: .78rem;
}

.wephone-quick-order-navigation-filter {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: 0 0 .7rem;
  color: #333;
  font-size: .76rem;
  font-weight: 600;
}

.wephone-quick-order-navigation-filter select {
  min-width: 10rem;
  min-height: 2.15rem;
  padding: .25rem 1.75rem .25rem .45rem;
  border: 1px solid #ccd2d8;
  border-radius: .2rem;
  background-color: #fff;
  font-size: .75rem;
}

.wephone-quick-order-models-more {
  display: block;
  margin: .55rem auto 0;
  padding: .3rem .8rem;
  border: 0;
  color: #0062cc;
  background: transparent;
  font-size: .74rem;
  font-weight: 600;
}

.wephone-quick-order-models-more[hidden] {
  display: none !important;
}

.wephone-quick-order-models-more:hover,
.wephone-quick-order-models-more:focus {
  color: #004f9f;
  text-decoration: underline;
}

.wephone-quick-order-model {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: .4rem .7rem;
  border: 1px solid #e1e4e8;
  border-radius: .2rem;
  color: #333;
  background: #f7f7f7;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border-radius: 999px;
}

.wephone-quick-order-series-filter {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin: 0 0 .55rem;
}

.wephone-quick-order-series-option {
  min-height: 2rem;
  padding: .3rem .75rem;
  border: 1px solid #ccd2d8;
  border-radius: 999px;
  color: #333;
  background: #fff;
  font-size: .75rem;
  font-weight: 600;
  cursor: pointer;
}

.wephone-quick-order-series-option:hover,
.wephone-quick-order-series-option:focus {
  border-color: #4da3ff;
  color: #0062cc;
}

.wephone-quick-order-series-option.is-current {
  border-color: #0062cc;
  color: #fff;
  background: #0062cc;
}

.wephone-quick-order-series-name {
  display: block;
  margin: .15rem 0 .4rem;
  color: #0062cc;
  font-size: .75rem;
  text-transform: uppercase;
}

.wephone-quick-order-model:hover,
.wephone-quick-order-model:focus {
  border-color: #0062cc;
  color: #0062cc;
  background: #f1f7ff;
  text-decoration: none;
}

.wephone-quick-order-model.is-current {
  border-color: #0062cc;
  color: #fff;
  background: #0062cc;
  box-shadow: 0 0 0 1px #0062cc;
  pointer-events: none;
}

.wephone-quick-order-model.is-unavailable {
  border-color: #e4e4e4;
  color: #999;
  background: #f3f3f3;
  cursor: not-allowed;
  opacity: .65;
}

.wephone-quick-order-mobile-slot {
  display: none;
}

.wephone-quick-order-tabs {
  display: flex;
  flex: 0 0 auto;
  border-bottom: 1px solid #dfe3e7;
  background: #fff;
}

.wephone-quick-order-tabs button {
  position: relative;
  flex: 1 1 50%;
  min-height: 3rem;
  padding: .65rem 1rem;
  border: 0;
  color: #555;
  background: transparent;
  font-weight: 600;
}

.wephone-quick-order-tabs button.is-active {
  color: #0062cc;
}

.wephone-quick-order-tabs button.is-active::after {
  position: absolute;
  right: 1rem;
  bottom: -1px;
  left: 1rem;
  height: 3px;
  background: #0062cc;
  content: "";
}

.wephone-quick-order-tab-color {
  display: block;
  margin-top: .15rem;
  color: #777;
  font-size: .7rem;
  font-weight: 400;
}

.wephone-quick-order-brand-filter {
  display: block;
  width: min(11rem, 100%);
  min-height: 2rem;
  margin-top: .35rem;
  padding: .25rem 1.75rem .25rem .4rem;
  border: 1px solid #ccd2d8;
  border-radius: .2rem;
  color: #333;
  background-color: #fff;
  font-size: .72rem;
  font-weight: 400;
}

.wephone-quick-order-table tr.is-stock-error,
.wephone-quick-order-table tr.is-stock-error.is-selected {
  background: #ffe6e6;
  box-shadow: inset 4px 0 0 #dc3545;
}

.wephone-quick-order-table tr.is-stock-error td {
  border-bottom-color: #f3b8bd;
}

/* Fase 2: interfaz compacta para tablet vertical y móvil. */
@media (max-width: 767.98px) {
  .wephone-quick-order-models {
    margin-bottom: .75rem;
    padding: .7rem;
  }

  .wephone-quick-order-models-heading {
    display: block;
    margin-bottom: .55rem;
  }

  .wephone-quick-order-models-heading span {
    display: none;
  }

  .wephone-quick-order-models-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .4rem;
  }

  .wephone-quick-order-model-brand {
    margin-bottom: .35rem;
    font-size: .72rem;
  }

  .wephone-quick-order-navigation-filter {
    align-items: stretch;
    flex-direction: column;
    gap: .3rem;
  }

  .wephone-quick-order-navigation-filter select {
    width: 100%;
  }

  .wephone-quick-order-brand-filter {
    width: 100%;
    font-size: .68rem;
  }

  .wephone-quick-order-model {
    justify-content: center;
    min-width: 0;
    min-height: 2.35rem;
    padding: .4rem .35rem;
    overflow: hidden;
    font-size: .76rem;
    text-align: center;
    text-overflow: ellipsis;
  }

  .wephone-quick-order-mobile-slot {
    display: block;
    min-width: 0;
  }

  .wephone-quick-order-mobile-slot:empty {
    display: none;
  }

  .product-add-to-cart .add.wephone-quick-order-mobile-bar {
    position: fixed;
    z-index: 2190;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
    gap: .5rem;
    box-sizing: border-box;
    width: 100%;
    max-width: 100vw;
    margin: 0 !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    padding: .55rem .75rem max(.55rem, env(safe-area-inset-bottom));
    overflow: hidden;
    background: #fff;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, .18);
  }

  .product-add-to-cart .add.wephone-quick-order-mobile-bar-single {
    grid-template-columns: minmax(0, 1fr);
  }

  .product-add-to-cart .add.wephone-quick-order-mobile-bar > .add-to-cart {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 2.85rem;
    margin: 0;
    padding-right: .5rem;
    padding-left: .5rem;
    overflow: hidden;
    font-size: .72rem;
    white-space: nowrap;
  }

  .product-add-to-cart .add.wephone-quick-order-mobile-bar > .add-to-cart .shopping-cart {
    display: none;
  }

  .product-add-to-cart .add.wephone-quick-order-mobile-bar > .add-to-cart > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .wephone-quick-order-mobile-slot .wephone-quick-order {
    height: 100%;
    margin: 0;
  }

  .wephone-quick-order-mobile-slot .wephone-quick-order-button {
    width: 100%;
    height: 100%;
    min-height: 2.85rem;
    margin: 0;
    padding-right: .5rem;
    padding-left: .5rem;
    overflow: hidden;
    font-size: .72rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .wephone-quick-order-panel {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 88vh;
    height: min(88dvh, 760px);
    max-height: calc(100% - 2rem);
    overflow: hidden;
    border-radius: .9rem .9rem 0 0;
    box-shadow: 0 -8px 28px rgba(0, 0, 0, .24);
    animation: wephoneQuickOrderMobileEnter .2s ease-out;
  }

  .wephone-quick-order-header {
    flex: 0 0 auto;
    align-items: center;
    min-height: 3.5rem;
    padding: .65rem .85rem;
  }

  .wephone-quick-order-header h2 {
    margin: 0;
    color: #202020;
    font-size: 1.15rem;
  }

  .wephone-quick-order-header p {
    display: none;
  }

  .wephone-quick-order-close {
    flex-basis: 2.5rem;
    width: 2.5rem;
    height: 2.5rem;
    color: #202020;
    background: #f3f5f7;
  }

  .wephone-quick-order-table-wrap {
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .wephone-quick-order-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
  }

  .wephone-quick-order-table th,
  .wephone-quick-order-table td {
    padding: .5rem .65rem;
  }

  .wephone-quick-order-table th {
    color: #333;
    background: #f7f8fa;
  }

  .wephone-quick-order-table .wephone-quick-order-col-combination {
    width: auto;
  }

  .wephone-quick-order-table .wephone-quick-order-col-quantity {
    width: 11.5rem;
    padding-right: .9rem;
    text-align: right;
  }

  .wephone-quick-order-table .wephone-quick-order-col-price,
  .wephone-quick-order-table .wephone-quick-order-col-stock,
  .wephone-quick-order-table .wephone-quick-order-col-cart,
  .wephone-quick-order-table .wephone-quick-order-col-subtotal {
    display: none;
  }

  .wephone-quick-order-combination {
    min-width: 0;
    gap: .55rem;
  }

  .wephone-quick-order-combination img {
    flex-basis: 40px;
    width: 40px;
    height: 48px;
  }

  .wephone-quick-order-combination > div {
    min-width: 0;
  }

  .wephone-quick-order-combination strong {
    overflow: hidden;
    font-size: .76rem;
    line-height: 1.15;
    text-overflow: ellipsis;
  }

  .wephone-quick-order-combination small {
    font-size: .68rem;
    line-height: 1.15;
  }

  .wephone-quick-order-mobile-price {
    display: block;
    margin-top: .18rem;
    color: #333;
    font-size: .75rem;
    font-weight: 700;
  }

  .wephone-quick-order-quantity {
    box-sizing: border-box;
    width: 6.75rem;
    margin-right: .35rem;
    margin-left: auto;
    background: #fff;
  }

  .wephone-quick-order-quantity button {
    flex: 0 0 2rem;
    width: 2rem;
    min-height: 2rem;
    color: #0062cc;
    font-size: 1.05rem;
  }

  .wephone-quick-order-quantity input {
    flex: 1 1 auto;
    width: 3rem;
    min-width: 0;
    font-weight: 700;
  }

  .wephone-quick-order-apply-all {
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: .3rem;
    width: 10.25rem;
    margin-top: .25rem;
    margin-left: auto;
    overflow: visible;
    white-space: nowrap;
  }

  .wephone-quick-order-apply-all .wephone-quick-order-all-stepper {
    flex: 0 0 6rem;
    width: 6rem;
    margin: 0;
  }

  .wephone-quick-order-apply-all .wephone-quick-order-all-stepper button {
    flex-basis: 1.8rem;
    width: 1.8rem;
    min-height: 2rem;
  }

  .wephone-quick-order-apply-all .wephone-quick-order-all-stepper input {
    flex: 1 1 auto;
    width: 2.4rem;
    min-width: 0;
    min-height: 2rem;
    padding: .15rem 0;
  }

  .wephone-quick-order-apply-all button {
    color: #0062cc;
    font-size: .66rem;
  }

  .wephone-quick-order-footer {
    flex: 0 0 auto;
    gap: .6rem;
    padding: .6rem .85rem max(.75rem, env(safe-area-inset-bottom));
    border-top-color: #dfe3e7;
  }

  .wephone-quick-order-footer div {
    justify-content: space-between;
    font-size: .9rem;
  }

  .wephone-quick-order-footer > .btn {
    width: 100%;
    min-height: 2.75rem;
    border-color: #0062cc !important;
    background: #0062cc !important;
    font-weight: 700;
  }

  .wephone-quick-order-footer > .btn:hover,
  .wephone-quick-order-footer > .btn:focus,
  .wephone-quick-order-footer > .btn:active {
    border-color: #004f9f !important;
    background: #004f9f !important;
  }
}

/* Fase 0.8.8: selección interna, cuadrada y visible sin recortes en móvil. */
.product-swatches .js-swatch-item.selected {
  position: relative;
  border: 2px solid #4da3ff !important;
  border-radius: .18rem !important;
  outline: 0;
  padding: 2px;
  background: #fff;
}

.product-swatches .js-swatch-item.selected > .color,
.product-swatches .js-swatch-item.selected > .texture,
.product-swatches .js-swatch-item.selected .check-circle {
  border-color: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.product-swatches .js-swatch-item.selected > .color,
.product-swatches .js-swatch-item.selected > .texture {
  border-radius: 0 !important;
}

/* Fase 0.8.5: tres filas adaptables, marcas legibles y swatches horizontales. */
.wephone-quick-order-brand-filter {
  padding: 0;
  border: 0;
  background: transparent;
}

@media (min-width: 768px) {
  .wephone-quick-order-series-group:not(.is-expanded) .wephone-quick-order-models-list {
    position: relative;
    max-height: 7.65rem;
    overflow: hidden;
  }

  .wephone-quick-order-models-more {
    z-index: 2;
    min-height: 3rem;
    margin-top: -2.15rem;
    padding-top: 1.65rem;
    background: linear-gradient(to bottom, rgba(255,255,255,.18), rgba(255,255,255,.92) 48%, #fff 72%);
  }

  .wephone-quick-order-series-group.is-expanded .wephone-quick-order-models-more {
    margin-top: .35rem;
    padding-top: .45rem;
    background: #fff;
  }

  .wephone-quick-order-series-group.is-expanded > .wephone-quick-order-models-list {
    max-height: none !important;
    overflow: visible !important;
  }
}

.wephone-swatch-label strong {
  color: #252525;
  font-weight: 700;
}

@media (max-width: 767.98px) {
  .wephone-quick-order-mobile-model-body .wephone-quick-order-series-filter {
    display: none;
  }

  .wephone-quick-order-mobile-model-body .wephone-quick-order-series-name {
    margin: 0;
    padding: .38rem .75rem;
    color: #004f9f;
    background: #eef5fc;
    font-size: .78rem;
    font-weight: 700;
  }

  .wephone-quick-order-mobile-model-body .wephone-quick-order-model-brand {
    padding: .58rem .8rem;
    color: #222;
    background: #d9dde2;
    font-size: .9rem;
    font-weight: 700;
  }

  .wephone-quick-order-mobile-model-body .wephone-quick-order-model {
    font-weight: 400;
  }

  .wephone-quick-order-mobile-model-body .wephone-quick-order-model.is-current {
    font-weight: 600;
  }

  .product-swatches-item .wephone-swatch-label {
    margin-bottom: .35rem;
    font-size: .9rem;
  }

  .product-swatches-item > .col-12.col-md-9 {
    min-width: 0;
  }

  .product-swatches .wephone-horizontal-swatches {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: .45rem;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0 0 .4rem;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .product-swatches .wephone-horizontal-swatches > li {
    flex: 0 0 auto;
    margin: 0;
    scroll-snap-align: center;
  }
}

@keyframes wephoneQuickOrderMobileEnter {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

/* Fase 0.8.4: filtros multimarca y navegación móvil compacta. */
.wephone-quick-order-brand-filter {
  position: relative;
}

.wephone-quick-order-brand-filter-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  width: 100%;
  min-height: 2rem;
  padding: .3rem .5rem;
  border: 1px solid #ccd2d8;
  border-radius: .2rem;
  color: #333;
  background: #fff;
  font-size: .72rem;
  font-weight: 400;
  text-align: left;
}

.wephone-quick-order-brand-filter-menu {
  position: absolute;
  z-index: 8;
  top: calc(100% + .2rem);
  left: 0;
  width: max(100%, 11rem);
  padding: .3rem;
  border: 1px solid #ccd2d8;
  border-radius: .25rem;
  background: #fff;
  box-shadow: 0 5px 16px rgba(0, 0, 0, .16);
}

.wephone-quick-order-brand-filter-menu label {
  display: flex;
  align-items: center;
  gap: .45rem;
  margin: 0;
  padding: .4rem .35rem;
  cursor: pointer;
  font-size: .75rem;
  font-weight: 400;
}

.wephone-quick-order-brand-filter-menu label:hover {
  background: #f1f7ff;
}

.wephone-quick-order-models-more {
  position: relative;
  width: 100%;
  min-height: 2.25rem;
  margin-top: -.25rem;
  padding-top: .8rem;
  background: linear-gradient(to bottom, rgba(255,255,255,.25), #fff 64%);
  text-decoration: none !important;
}

.wephone-quick-order-models-more::after {
  display: inline-block;
  margin-left: .45rem;
  content: "\2304";
  font-size: 1rem;
  transform: translateY(-.05rem);
}

.wephone-quick-order-models-more.is-expanded::after {
  content: "\2303";
}

.wephone-quick-order-mobile-model-trigger,
.wephone-quick-order-mobile-model-header,
.wephone-quick-order-mobile-model-search {
  display: none;
}

@media (max-width: 767.98px) {
  html.wephone-mobile-models-open {
    overflow: hidden;
  }

  .wephone-quick-order-models {
    padding: 0;
    border-style: solid;
  }

  .wephone-quick-order-models > .wephone-quick-order-models-heading,
  .wephone-quick-order-models > .wephone-quick-order-mobile-model-body {
    display: none;
  }

  .wephone-quick-order-mobile-model-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    width: 100%;
    min-height: 3rem;
    padding: .65rem .8rem;
    border: 0;
    color: #333;
    background: #fff;
    text-align: left;
  }

  .wephone-quick-order-mobile-model-trigger strong {
    font-weight: 700;
  }

  .wephone-quick-order-mobile-model-trigger > span:last-child {
    font-size: 1.6rem;
    line-height: 1;
  }

  .wephone-quick-order-models.is-mobile-models-open {
    position: fixed;
    z-index: 2210;
    inset: 0 0 4.15rem;
    display: flex;
    flex-direction: column;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: #fff;
  }

  .wephone-quick-order-models.is-mobile-models-open > .wephone-quick-order-mobile-model-trigger {
    display: none;
  }

  .wephone-quick-order-models.is-mobile-models-open > .wephone-quick-order-mobile-model-header {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-height: 3.5rem;
    padding: .6rem 3.5rem;
    border-bottom: 1px solid #e3e5e8;
    font-size: 1.15rem;
  }

  .wephone-quick-order-mobile-model-header button {
    position: absolute;
    top: .45rem;
    right: .6rem;
    width: 2.6rem;
    height: 2.6rem;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 2rem;
    line-height: 1;
  }

  .wephone-quick-order-models.is-mobile-models-open > .wephone-quick-order-mobile-model-search {
    position: sticky;
    z-index: 2;
    top: 0;
    display: block;
    flex: 0 0 auto;
    padding: .6rem .75rem;
    border-bottom: 1px solid #e3e5e8;
    background: #fff;
  }

  .wephone-quick-order-mobile-model-search input {
    width: 100%;
    min-height: 2.65rem;
    padding: .55rem .85rem;
    border: 1px solid #e1e4e8;
    border-radius: 999px;
    background: #f5f6f8;
    font-size: .95rem;
  }

  .wephone-quick-order-models.is-mobile-models-open > .wephone-quick-order-mobile-model-body {
    display: block;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .wephone-quick-order-mobile-model-body .wephone-quick-order-navigation-filter {
    display: none;
  }

  .wephone-quick-order-mobile-model-body .wephone-quick-order-model-groups {
    gap: 0;
  }

  .wephone-quick-order-mobile-model-body .wephone-quick-order-model-brand {
    margin: 0;
    padding: .45rem .75rem;
    background: #f0f0f0;
    font-size: .8rem;
  }

  .wephone-quick-order-mobile-model-body .wephone-quick-order-models-list {
    display: block;
  }

  .wephone-quick-order-mobile-model-body .wephone-quick-order-model {
    display: flex;
    justify-content: flex-start;
    width: 100%;
    min-height: 3.15rem;
    padding: .7rem .8rem;
    border-width: 0 0 1px;
    border-radius: 0;
    background: #fff;
    font-size: .9rem;
    text-align: left;
  }

  .wephone-quick-order-mobile-model-body .wephone-quick-order-model.is-current {
    color: #0062cc;
    background: #f1f7ff;
    box-shadow: inset 4px 0 0 #0062cc;
  }

  .wephone-quick-order-mobile-model-body .wephone-quick-order-models-more {
    display: none;
  }

  .product-variants-wrapper .wephone-mobile-horizontal-variants {
    flex-wrap: nowrap !important;
    width: 100%;
    max-width: 100%;
    padding-bottom: .3rem;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .product-variants-wrapper .wephone-mobile-horizontal-variants > li {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }
}

/* Ajustes finales 0.8.5: prevalecen sobre las reglas de compatibilidad 0.8.4. */
.wephone-quick-order-brand-filter {
  padding: 0;
  border: 0;
  background: transparent;
}

@media (min-width: 768px) {
  .wephone-quick-order-series-group:not(.is-expanded) .wephone-quick-order-models-list {
    max-height: 7.65rem;
    overflow: hidden;
  }

  .wephone-quick-order-models-more {
    z-index: 2;
    min-height: 3rem;
    margin-top: -2.15rem;
    padding-top: 1.65rem;
    background: linear-gradient(to bottom, rgba(255,255,255,.18), rgba(255,255,255,.92) 48%, #fff 72%);
  }

  .wephone-quick-order-series-group.is-expanded .wephone-quick-order-models-more {
    margin-top: .35rem;
    padding-top: .45rem;
    background: #fff;
  }

  .wephone-quick-order-series-group.is-expanded > .wephone-quick-order-models-list {
    max-height: none !important;
    overflow: visible !important;
  }
}

@media (max-width: 767.98px) {
  .wephone-quick-order-mobile-model-body .wephone-quick-order-model-brand {
    padding: .58rem .8rem;
    color: #222;
    background: #d9dde2;
    font-size: .9rem;
    font-weight: 700;
  }

  .wephone-quick-order-mobile-model-body .wephone-quick-order-model {
    font-weight: 400;
  }

  .wephone-quick-order-mobile-model-body .wephone-quick-order-model.is-current {
    font-weight: 600;
  }
}

/* Fase 0.8.6: densidad móvil final y muestras de color más visibles. */
@media (max-width: 767.98px) {
  .product-swatches .wephone-horizontal-swatches .color,
  .product-swatches .wephone-horizontal-swatches .texture {
    width: 2.25rem !important;
    height: 2.25rem !important;
    min-width: 2.25rem;
  }

  .product-swatches .wephone-horizontal-swatches > li,
  .product-swatches .wephone-horizontal-swatches .js-swatch-item {
    min-width: 2.25rem;
    min-height: 2.25rem;
  }

  .wephone-quick-order-models.is-mobile-models-open {
    bottom: 3.65rem;
  }

  .wephone-quick-order-models.is-mobile-models-open > .wephone-quick-order-mobile-model-header {
    min-height: 3rem;
    padding-top: .4rem;
    padding-bottom: .4rem;
  }

  .wephone-quick-order-mobile-model-header button {
    top: .2rem;
    width: 2.5rem;
    height: 2.5rem;
  }

  .wephone-quick-order-models.is-mobile-models-open > .wephone-quick-order-mobile-model-search {
    padding: .4rem .65rem;
  }

  .wephone-quick-order-mobile-model-search input {
    min-height: 2.35rem;
    padding: .4rem .75rem;
  }

  .wephone-quick-order-mobile-model-body .wephone-quick-order-model-brand {
    padding-top: .42rem;
    padding-bottom: .42rem;
  }

  .wephone-quick-order-mobile-model-body .wephone-quick-order-model {
    min-height: 2.65rem;
    padding: .45rem .75rem;
    line-height: 1.2;
  }

  .product-add-to-cart .add.wephone-quick-order-mobile-bar {
    gap: .4rem;
    padding: .4rem .6rem max(.4rem, env(safe-area-inset-bottom));
  }

  .product-add-to-cart .add.wephone-quick-order-mobile-bar > .add-to-cart,
  .wephone-quick-order-mobile-slot .wephone-quick-order-button {
    min-height: 2.55rem;
  }
}
