#cb-recommendations .cb-armador-active {
  --armador-purple: #431861;
  --armador-orange: #ff8b16;
  --armador-amount: #ffb258;
  --armador-exceeded: #e0c6f3;
  --armador-tint: #f8f3fb;
  --armador-border: #e7d9ef;
}

#cb-recommendations .cb-armador-active .cb-armador-summary {
  --armador-balance-color: var(--armador-amount);
  --armador-fill: var(--armador-orange);
  padding: 17px 20px;
  margin: 14px 0 20px;
  border: 0;
  border-radius: 15px;
  background: linear-gradient(110deg, #51216b, #351547);
  color: #fff;
}
#cb-recommendations .cb-armador-active .cb-armador-summary-exceeded {
  --armador-balance-color: var(--armador-exceeded);
  --armador-fill: var(--armador-exceeded);
}
#cb-recommendations .cb-armador-active .cb-armador-total {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, auto) auto;
  align-items: center;
  gap: 6px 14px;
}
.cb-armador-active .cb-armador-balance-heading {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 1rem;
  line-height: 1.25;
}
.cb-armador-active .cb-armador-gift-icon {
  display: grid;
  flex: 0 0 31px;
  height: 31px;
  place-items: center;
  border-radius: 8px;
  background: var(--armador-orange);
  color: #351547;
}
.cb-armador-active .cb-armador-gift-icon svg {
  fill: currentColor;
  width: 17px;
  height: 17px;
}
.cb-armador-active .cb-armador-balance-prices {
  min-width: 0;
}
.cb-armador-active .cb-armador-price-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-end;
  gap: 3px 8px;
}
.cb-armador-active .cb-armador-price-line [data-armador-price-before] {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.cb-armador-active .cb-armador-price-line[data-armador-comparison],
.cb-armador-active [data-armador-final-label] {
  color: #f4e5fb;
  font-size: .8rem;
}
.cb-armador-active .cb-armador-price-line[data-armador-comparison] {
  margin-bottom: 4px;
}
.cb-armador-active .cb-armador-total [data-armador-amount] {
  color: var(--armador-balance-color);
  font-size: clamp(1.85rem, 4vw, 2.45rem);
  line-height: 1.1;
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
.cb-armador-active .cb-armador-meter {
  height: 7px;
  margin: 14px 0 13px;
  background: #ffffff38;
}
.cb-armador-active .cb-armador-meter > span {
  background: var(--armador-fill);
}

/* El anclaje de la barra sigue dependiendo del estado que aplica el armador. */
.cb-armador-active .cb-armador-meter.cb-armador-exceeded > span {
  left: auto;
  right: 0;
}
#cb-recommendations .cb-armador-active .cb-armador-ledger {
  margin: 0;
  color: #f4e5fb;
  font-size: .78rem;
}
#cb-recommendations .cb-armador-active .cb-armador-ledger > div:last-child {
  border-top: 0;
  padding-top: 0;
}
#cb-recommendations .cb-armador-active > [data-armador-clear] {
  display: block;
  min-height: 32px;
  margin: -10px 0 8px auto;
  color: var(--armador-purple);
  font-family: inherit;
}
#cb-recommendations .cb-armador-active > [data-armador-clear]:disabled {
  opacity: .55;
  visibility: visible;
}

#cb-recommendations .cb-armador-active .cb-rec-track {
  padding: 0;
  align-items: stretch;
}
#cb-recommendations .cb-armador-active .cb-rec-item {
  min-width: 0;
  border: 1px solid var(--armador-border);
  border-radius: 13px;
  background: #fff;
}
#cb-recommendations .cb-armador-active .cb-armador-selected {
  border-color: #7f449b;
  box-shadow: 0 0 0 1px #7f449b;
}
#cb-recommendations .cb-armador-active .cb-rec-item > .swiper-slide {
  padding: 0 !important;
  max-width: 100%;
}
#cb-recommendations .cb-armador-active .cb-rec-item .item {
  margin: 0;
  border: 0;
  border-radius: 12px;
  overflow: hidden;
}
#cb-recommendations .cb-armador-active .cb-armador-item {
  border-radius: 12px 12px 0 0;
  background: var(--armador-tint);
  padding: 5px 12px 12px;
}
#cb-recommendations .cb-armador-active .cb-armador-coverage {
  min-width: 0;
  margin: 4px 0 0;
  text-align: left;
}
.cb-armador-active .cb-armador-coverage strong {
  color: var(--armador-purple);
  overflow-wrap: anywhere;
}
.cb-armador-active .cb-armador-coverage-meter {
  height: 5px;
  background: #e8dbee;
}
.cb-armador-active .cb-armador-coverage-meter > span {
  background: var(--armador-orange);
}
.cb-armador-active .cb-armador-select input {
  accent-color: var(--armador-purple);
}
#cb-recommendations .cb-armador-active .cb-rec-item[data-cb-layout-card] > .cb-rec-note {
  display: none;
}
#cb-recommendations .cb-armador-active .cb-layout-rec-note {
  display: block;
  color: #664e72;
  font-size: .75rem;
  line-height: 1.4;
  margin: 0 0 9px;
}
#cb-recommendations .cb-armador-active .cb-rec-item .item-description {
  padding: 12px !important;
  text-align: left;
}
#cb-recommendations .cb-armador-active .cb-rec-item .js-item-name {
  min-height: 0;
  margin: 0 0 5px !important;
  color: var(--armador-purple);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.cb-armador-active .cb-armador-actions {
  justify-content: space-between;
}
#cb-recommendations .cb-armador-active .cb-armador-actions .btn {
  min-height: 44px;
  padding: 8px 15px;
  border: 1px solid #c8afd7;
  border-radius: 9px;
  background: #fff;
  color: var(--armador-purple);
  font-family: inherit;
  font-size: .83rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: normal;
  text-transform: none;
  white-space: normal;
}
#cb-recommendations .cb-armador-active .cb-armador-actions [data-armador-cart] {
  border-color: var(--armador-purple);
  background: var(--armador-purple);
  color: #fff;
}
#cb-recommendations .cb-armador-active .cb-armador-actions [data-armador-cart]:disabled {
  opacity: .55;
}

@media (max-width: 767px) {
  #cb-recommendations .cb-armador-active .cb-armador-summary {
    padding: 15px;
  }
  #cb-recommendations .cb-armador-active .cb-armador-total {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }
  .cb-armador-active .cb-armador-price-line {
    justify-content: flex-start;
  }
  .cb-armador-active .cb-armador-balance-prices {
    grid-area: 2 / 1 / 3 / 3;
  }
  .cb-armador-active .cb-armador-total .cb-armador-disclosure {
    grid-area: 1 / 2;
  }
  #cb-recommendations .cb-armador-active .cb-armador-item {
    padding-inline: 9px;
  }
  #cb-recommendations .cb-armador-active .cb-rec-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  #cb-recommendations .cb-armador-active .cb-armador-actions .btn {
    width: 100%;
  }
  #cb-recommendations .cb-armador-active .cb-armador-actions [data-armador-cart] {
    order: -1;
  }
}

#cb-recommendations .cb-armador-active .cb-armador-floating {
  position: fixed;
  z-index: 80;
  inset-inline: 0;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
  width: min(420px, calc(100% - 24px));
  margin-inline: auto;
  pointer-events: none;
}
.cb-armador-floating-bar {
  padding: 8px 12px 10px;
  border: 1px solid #ffffff4d;
  border-radius: 12px;
  background: linear-gradient(110deg, #51216b, #351547);
  color: #fff;
  box-shadow: 0 4px 16px #3515474d;
}
.cb-armador-floating-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, auto) auto;
  align-items: center;
  gap: 2px 8px;
  font-size: .8rem;
  font-weight: 800;
  line-height: 1.2;
}
.cb-armador-floating-row strong {
  color: var(--armador-amount);
  font-size: 1.12rem;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.cb-armador-floating-meter {
  position: relative;
  overflow: hidden;
  height: 4px;
  margin-top: 6px;
  border-radius: 8px;
  background: #ffffff38;
}
.cb-armador-floating-meter span {
  position: absolute;
  inset-block: 0;
  left: 0;
  border-radius: inherit;
  background: var(--armador-orange);
}
.cb-armador-floating-exceeded .cb-armador-floating-row strong {
  color: var(--armador-exceeded);
}
.cb-armador-floating-exceeded .cb-armador-floating-meter span {
  left: auto;
  right: 0;
  background: var(--armador-exceeded);
}

@media (max-width: 767px), (max-height: 500px) {
  #cb-recommendations .cb-armador-active .cb-armador-floating {
    /* Por encima de los accesos fijos de WhatsApp y volver arriba. */
    bottom: calc(74px + env(safe-area-inset-bottom, 0px));
  }
}

#cb-recommendations .cb-armador-active .cb-armador-disclosure {
  display: grid;
  place-items: center;
  justify-self: end;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: #ffffff26;
  color: #fff;
  cursor: pointer;
  pointer-events: auto;
}
.cb-armador-disclosure svg,
.cb-armador-editor-remove svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cb-armador-disclosure[aria-expanded="true"] svg,
.cb-armador-floating .cb-armador-disclosure[aria-expanded="false"] svg {
  transform: rotate(180deg);
}
.cb-armador-floating .cb-armador-disclosure[aria-expanded="true"] svg {
  transform: none;
}
#cb-recommendations .cb-armador-active .cb-armador-floating {
  display: flex;
  flex-direction: column;
}
.cb-armador-floating-mount {
  order: -1;
}
#cb-recommendations .cb-armador-active .cb-armador-editor {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: -12px 0 20px;
  padding: 14px 16px;
  border: 1px solid var(--armador-border);
  border-radius: 13px;
  background: #fff;
  color: var(--armador-purple);
}
#cb-recommendations .cb-armador-floating .cb-armador-editor {
  max-height: 60vh;
  max-height: min(60dvh, calc(100dvh - 155px - env(safe-area-inset-bottom, 0px)));
  margin: 0 0 7px;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  box-shadow: 0 4px 16px #3515474d;
  pointer-events: auto;
}
#cb-recommendations .cb-armador-editor h3 {
  flex-shrink: 0;
  margin: 0;
  color: inherit;
  font-size: 1.05rem;
  line-height: 1.25;
}
.cb-armador-editor-list {
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  list-style: none;
}
.cb-armador-editor-list:empty {
  display: none;
}
.cb-armador-editor-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  min-height: 56px;
  margin: 0;
  padding: 7px 0;
  border-top: 1px solid #eadff0;
}
.cb-armador-editor-item img {
  grid-column: 1;
  width: 44px;
  height: 44px;
  border-radius: 7px;
  object-fit: contain;
}
.cb-armador-editor-product {
  grid-column: 2;
  overflow-wrap: anywhere;
  font-size: .87rem;
  line-height: 1.25;
}
.cb-armador-editor-product small {
  display: block;
  margin-top: 3px;
  color: #624d71;
}
.cb-armador-editor-stepper {
  display: flex;
  grid-column: 3;
  align-items: center;
  border: 1px solid #d9c5e3;
  border-radius: 8px;
  background: #fff;
}
.cb-armador-editor-stepper output {
  min-width: 2ch;
  text-align: center;
  font-size: .9rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
#cb-recommendations .cb-armador-editor-stepper button,
#cb-recommendations .cb-armador-editor-remove {
  display: grid;
  place-items: center;
  width: 36px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--armador-purple);
  font-size: 1.125rem;
  font-weight: 800;
  cursor: pointer;
}
#cb-recommendations .cb-armador-editor-remove {
  grid-column: 4;
  width: 40px;
  border: 1px solid var(--armador-border);
  border-radius: 8px;
  background: var(--armador-tint);
}
#cb-recommendations .cb-armador-editor button:disabled {
  opacity: .5;
  cursor: default;
}
.cb-armador-editor-footer {
  display: grid;
  flex-shrink: 0;
  gap: 6px;
  padding-top: 10px;
  border-top: 1px solid #eadff0;
  text-align: center;
}
#cb-recommendations .cb-armador-editor [data-armador-editor-cart] {
  min-height: 44px;
  padding: 9px 12px;
  border: 0;
  border-radius: 8px;
  background: var(--armador-purple);
  color: #fff;
  font-family: inherit;
  font-size: .87rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: normal;
  text-transform: none;
  white-space: normal;
}
.cb-armador-editor-footer small,
.cb-armador-editor-empty,
.cb-armador-editor-footer p {
  margin: 0;
  color: #624d71;
  font-size: .78rem;
}
.cb-armador-editor-footer p:empty {
  display: none;
}
.cb-armador-editor-footer a {
  justify-self: center;
  color: var(--armador-purple);
  text-decoration: underline;
}
@media (max-width: 480px) {
  #cb-recommendations .cb-armador-active .cb-armador-editor {
    padding-inline: 11px;
  }
  .cb-armador-editor-item {
    gap: 6px;
  }
  .cb-armador-editor-product {
    font-size: .78rem;
  }
  #cb-recommendations .cb-armador-editor-stepper button {
    width: 32px;
  }
}
@media (max-width: 345px) {
  .cb-armador-editor-item img {
    display: none;
  }
}

.cb-armador-origin {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  flex-shrink: 0;
  gap: 9px;
  padding: 9px;
  border: 1px solid #f4a858;
  border-radius: 10px;
  background: #ffdbb1;
  color: var(--armador-purple);
}
.cb-armador-origin img {
  grid-column: 1;
  display: block;
  width: clamp(44px, 13vw, 60px);
  height: auto;
  aspect-ratio: 1;
  border-radius: 7px;
  background: #fff5e9;
  object-fit: cover;
}
.cb-armador-origin-product {
  grid-column: 2;
  display: grid;
  gap: 3px;
  min-width: 0;
  font-size: .87rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.cb-armador-origin-product span,
.cb-armador-origin-label {
  color: #714018;
  font-size: .72rem;
  font-weight: 800;
}
.cb-armador-origin-benefit {
  grid-column: 3;
  display: grid;
  justify-items: end;
  gap: 4px;
  padding-inline-start: 9px;
  border-inline-start: 1px solid #e8ab73;
  font-size: 1.1rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
  white-space: nowrap;
}
.cb-armador-origin-label {
  display: flex;
  align-items: center;
  gap: 5px;
}
.cb-armador-origin-label svg {
  width: 22px;
  height: 22px;
  padding: 2px;
  border-radius: 5px;
  background: #ffad58;
  color: var(--armador-purple);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linejoin: round;
}
.cb-armador-editor-complements {
  flex-shrink: 0;
  margin: 0;
  color: #624d71;
  font-size: .78rem;
  font-weight: 800;
}
.cb-armador-editor-contribution {
  display: inline-block;
  margin-top: 4px;
  padding: 3px 6px;
  border-radius: 6px;
  background: #eee0fa;
  color: #633581;
  font-size: .72rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.cb-armador-editor-total {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 3px 8px;
  padding: 8px 10px;
  border-radius: 7px;
  background: #f6eefb;
  color: var(--armador-purple);
  font-size: .8rem;
  font-weight: 800;
}
.cb-armador-editor-total strong {
  color: #633581;
  font-size: .95rem;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 360px) {
  .cb-armador-origin {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .cb-armador-origin-benefit {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
    padding: 7px 0 0;
    border-inline-start: 0;
    border-top: 1px solid #e8ab73;
  }
}
