/* Freeshipping — PS 9 / Hummingbird (+ compat selectores warehouse) */
.fs-progress {
  margin: 12px 0 16px;
  padding: 12px;
  border: 1px solid #eee;
  border-radius: 6px;
  background: #fff;
  position: relative;
  box-sizing: border-box;
  max-width: 100%;
}

.cart__overview .fs-progress,
.cart-overview .fs-progress,
.js-cart .fs-progress {
  margin: 16px 0 8px;
}

.fs-progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  position: relative;
  min-height: 1.25rem;
}

.fs-status {
  font-weight: 600;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 4px;
  white-space: nowrap;
}

.fs-status--normal { color: inherit; }
.fs-status--free { color: var(--fs-color-complete, #2ECC71); }

.fs-progress-bar {
  height: 8px;
  background: #e5e5e5;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 20px;
}

.fs-progress-fill {
  height: 100%;
  width: 0;
  background: var(--fs-color-incomplete, #25b9d7);
  transition: width .65s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: width;
}

.fs-progress-fill.is-free {
  background: var(--fs-color-complete, #2ECC71);
}

.fs-progress-text {
  margin-top: 11px;
  font-size: 12px;
  text-align: center;
  padding: 0 28px;
  line-height: 1.35;
}

.fs-highlight {
  font-weight: 600;
  color: var(--fs-color-complete, #2ECC71);
}

.fs-info-button {
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
  background: #fff;
  cursor: pointer;
  border: 1.5px solid rgba(0, 0, 0, 0.55);
  border-radius: 50%;
  padding: 0;
  position: absolute;
  right: 8px;
  bottom: 10px;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  color: rgba(0, 0, 0, 0.75);
  z-index: 2;
  box-sizing: border-box;
}

.fs-info-button .material-icons {
  font-size: 14px;
  line-height: 1;
  width: 14px;
  height: 14px;
}

.fs-info-button:hover {
  background-color: #000;
  border-color: #000;
  color: #fff;
}

/* Checkout summary Hummingbird */
#js-checkout-summary .fs-progress {
  margin: 12px 0 0;
  border: 0;
  border-top: 1px solid #eee;
  border-radius: 0;
  padding: 14px 4px 18px;
}

#js-checkout-summary .fs-info-button {
  bottom: 14px;
  right: 6px;
}

/* Legacy warehouse minicart (si existe en algún child) */
#blockcart-content .fs-info-button { display: none; }
#blockcart-content .fs-progress {
  margin: 10px 0 15px;
}

.fs-modal {
  position: fixed;
  inset: 0;
  display: none;
  background: rgba(0, 0, 0, .35);
  z-index: 9999;
}

.fs-modal.open {
  display: flex;
  align-items: center;
  justify-content: center;
}

.fs-modal-content {
  background: #fff;
  width: 90%;
  max-width: 560px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
}

.fs-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
  font-weight: 600;
}

.fs-modal-body {
  padding: 16px;
  font-size: .95rem;
  line-height: 1.5;
}

.fs-modal-close {
  border: 0;
  background: transparent;
  font-size: 20px;
  cursor: pointer;
}

.fs-terms-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  row-gap: 10px;
}

.fs-terms-list li {
  position: relative;
  padding-left: 22px;
}

.fs-terms-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--fs-color-complete, #2ECC71);
  box-shadow: 0 0 0 3px rgba(46, 204, 113, .15);
}

.fs-terms-strong { font-weight: 600; }

@media (max-width: 768px) {
  .fs-modal.open {
    align-items: stretch;
    justify-content: stretch;
  }
  .fs-modal-content {
    width: 100%;
    height: 100%;
    border-radius: 0;
  }
  .fs-progress-text {
    margin-top: 11px;
    font-size: 12px;
    text-align: center;
    padding: 0 28px;
    line-height: 1.35;
  }
  .fs-info-button {
    right: 6px;
    bottom: 8px;
    width: 22px;
    height: 22px;
  }
  #js-checkout-summary .fs-info-button {
    bottom: 12px;
    right: 4px;
  }
}
