/**
 * ael_productosbonificados
 *
 * @author I. Flores Rubio - Consultor y desarrollador técnico
 * @copyright 2026 Aelis Consulting, S.L.
 * @license Proprietary - All rights reserved
 * @package ael_productosbonificados
 * @version 1.8.3
 * @note Uso restringido a instalaciones licenciadas por Aelis
 *
 * @approved Felis catus, silent observer
 */
[data-aelpb-selector],
[data-aelpb-bonus-line] {
  display: none;
}

.aelpb-selector[data-aelpb-placed] {
  display: block;
  clear: both;
  width: 100%;
  max-width: 100%;

  margin-top: .75rem;
  padding-top: .55rem;
  font-size: .75rem;
  line-height: 1.3;
  text-align: left;
}

.aelpb-selector__label {
  display: block;
  margin: 0 0 .25rem;
  padding: .1rem .3rem;
  border-radius: .2rem;
  background: #1a7f37;
  color: #fff !important;
  font-size: .625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .02em;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.aelpb-selector__group {
  position: relative;
  display: block;
  width: 100%;
}

.aelpb-selector__input {
  display: block;
  width: 100%;
  min-width: 0;
  height: 2rem;
  margin: 0;
  padding: .1rem 1.4rem .1rem .4rem;
  border: 1px solid #ccc;
  border-radius: .15rem;
  background: #fff;
  font-size: .875rem;
  text-align: center;
  -moz-appearance: textfield;
}

.aelpb-selector__input::-webkit-outer-spin-button,
.aelpb-selector__input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.aelpb-selector__spin {
  position: absolute;
  top: 1px;
  right: 1px;
  bottom: 1px;
  display: flex;
  flex-direction: column;
  width: 1.15rem;
}

.aelpb-selector__step {
  flex: 1 1 50%;
  padding: 0;
  border: 0;
  border-left: 1px solid #ccc;
  background: #f2f2f2;
  color: #444;
  font-size: .5rem;
  line-height: 1;
  cursor: pointer;
}

.aelpb-selector__step + .aelpb-selector__step {
  border-top: 1px solid #ccc;
}

.aelpb-selector__step:hover {
  background: #e4e4e4;
}

.aelpb-selector--busy .aelpb-selector__group {
  opacity: .55;
  pointer-events: none;
}

.aelpb-selector__reason {
  display: block;
  width: 100%;
  margin-top: .25rem;
  padding: .15rem .35rem;
  border: 1px solid #ccc;
  border-radius: .2rem;
}

.aelpb-selector__hint,
.aelpb-selector__warning,
.aelpb-selector__feedback {
  display: block;
  margin: .2rem 0 0;
  font-size: .625rem;
  line-height: 1.25;
}

.aelpb-selector__hint {
  color: #7a7a7a;
}

.aelpb-selector__warning {
  color: #b34700;
  font-weight: 600;
}

.aelpb-selector__feedback {
  color: #1a7f37;
}

.aelpb-selector__feedback:empty {
  display: none;
}

.aelpb-selector__feedback--error {
  color: #c0392b;
}

.aelpb-bonus-line[data-aelpb-placed] {
  display: block;
  clear: both;
  width: 100%;
  font-size: .75rem;
  line-height: 1.3;
  text-align: center;
}

.aelpb-bonus-line__badge {
  display: block;
  padding: .1rem .3rem;
  border-radius: .2rem;
  background: #1a7f37;
  color: #fff;
  font-size: .625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.aelpb-bonus-line__qty {
  display: block;
  margin-top: .15rem;
  font-size: .875rem;
  font-weight: 600;
  white-space: nowrap;
}

.aelpb-bonus-line__breakdown {
  display: block;
  margin-top: .1rem;
  color: #7a7a7a;
  font-size: .625rem;
  line-height: 1.25;
}

.aelpb-bonus-line__badge--rule {
  background: #1a7f37;
}

.aelpb-bonus-line__badge--agent {
  background: #b26a00;
}

.aelpb-bonus-line__badge + .aelpb-bonus-line__badge {
  margin-top: .2rem;
}

.aelpb-bonus-line__source {
  display: block;
  margin-top: .05rem;
  color: #7a7a7a;
  font-size: .5625rem;
  line-height: 1.2;
  text-transform: lowercase;
}

.aelpb-selector__gift,
.aelpb-bonus-line__gift {
  display: flex;
  align-items: center;
  gap: .35rem;
  margin: 0 0 .35rem;
  font-size: .6875rem;
  line-height: 1.25;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}

.aelpb-bonus-line__gift {
  margin: .35rem 0 0;
  padding-top: .35rem;
  border-top: 1px solid #e3e3e3;
  justify-content: center;
  font-weight: 400;
  color: #6c868e;
}

.aelpb-selector__gift input,
.aelpb-bonus-line__gift input {
  margin: 0;
  flex: 0 0 auto;
}

.aelpb-bonus-line__group {
  margin-top: .35rem;
}

.aelpb-selector__gift-hint {
  display: block;
  margin: -.2rem 0 .4rem;
  color: #7a7a7a;
  font-size: .625rem;
  line-height: 1.25;
}

.aelpb-selector__breakdown {
  display: block;
  margin-top: .2rem;
  font-size: .625rem;
  line-height: 1.3;
}

.aelpb-selector__part {
  display: inline-block;
  padding: 0 .25rem;
  border-radius: .15rem;
  white-space: nowrap;
}

.aelpb-selector__part--rule {
  background: #e6f4ea;
  color: #14622b;
}

.aelpb-selector__part--agent {
  background: #fdf0dc;
  color: #8a5200;
}

.aelpb-bonus-row .qty .input-group,
.aelpb-bonus-row .qty > .js-cart-line-product-quantity,
.aelpb-bonus-row .remove-from-cart,
.cart-item:has([data-aelpb-bonus-line]) .qty .input-group,
.cart-item:has([data-aelpb-bonus-line]) .qty > .js-cart-line-product-quantity,
.cart-item:has([data-aelpb-bonus-line]) .remove-from-cart,
li:has([data-aelpb-bonus-line]) .qty .input-group,
li:has([data-aelpb-bonus-line]) .qty > .js-cart-line-product-quantity,
li:has([data-aelpb-bonus-line]) .remove-from-cart {
  display: none !important;
}

[data-aelpb-cart-total] {
  display: none;
}

.aelpb-cart-total[data-aelpb-placed] {
  display: block;
  clear: both;
  width: 100%;
  margin-top: .5rem;
  padding-top: .5rem;
  border-top: 1px dashed #cfd8d3;
  font-size: 1rem;
  line-height: 1.35;
  text-align: left;
  margin-bottom: 1rem;
}

.aelpb-cart-total__label {
  color: #14622b;
  font-weight: 600;
}

.aelpb-cart-total__value {
  float: right;
  color: #14622b;
  font-weight: 700;
  white-space: nowrap;
}
