.charly-free-shipping-widget {
  position: fixed;
  right: 16px;
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 58;
  display: block;
  width: 56px;
  height: 56px;
}

.template-cart .charly-free-shipping-widget,
.template-checkout .charly-free-shipping-widget {
  display: none;
}

.charly-free-shipping-widget__button {
  position: relative;
  width: 56px;
  height: 56px;
  min-width: 56px;
  min-height: 56px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  color: #241c2b;
  background: #fbf8f3;
  box-shadow: 0 10px 30px rgba(36, 28, 43, .20);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform .2s ease, box-shadow .2s ease;
}

.charly-free-shipping-widget__button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(36, 28, 43, .26);
}

.charly-free-shipping-widget__button:focus-visible {
  outline: 3px solid #7657c4;
  outline-offset: 3px;
}

.charly-free-shipping-widget__ring {
  position: absolute;
  inset: 4px;
  width: 48px;
  height: 48px;
  transform: rotate(-90deg);
  pointer-events: none;
}

.charly-free-shipping-widget__ring-track,
.charly-free-shipping-widget__ring-value {
  fill: none;
  stroke-width: 3;
}

.charly-free-shipping-widget__ring-track {
  stroke: #ded5cc;
}

.charly-free-shipping-widget__ring-value {
  stroke: #7657c4;
  stroke-linecap: round;
  stroke-dasharray: 125.664;
  stroke-dashoffset: 125.664;
  transition: stroke-dashoffset .35s ease, stroke .2s ease;
}

.charly-free-shipping-widget.is-unlocked .charly-free-shipping-widget__ring-value {
  stroke: #3a8735;
}

.charly-free-shipping-widget__cart {
  width: 23px;
  height: 23px;
  position: relative;
  z-index: 1;
}

.charly-free-shipping-widget__count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border: 2px solid #fbf8f3;
  border-radius: 999px;
  color: #fff;
  background: #a43f5d;
  font-size: 11px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}

.charly-free-shipping-widget__tip {
  position: absolute;
  right: 66px;
  top: 50%;
  width: max-content;
  max-width: 240px;
  padding: 9px 12px;
  border-radius: 12px;
  color: #fff;
  background: #241c2b;
  box-shadow: 0 8px 24px rgba(36, 28, 43, .18);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  opacity: 0;
  visibility: hidden;
  transform: translate(6px, -50%);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  pointer-events: none;
}

.charly-free-shipping-widget:hover .charly-free-shipping-widget__tip,
.charly-free-shipping-widget:focus-within .charly-free-shipping-widget__tip {
  opacity: 1;
  visibility: visible;
  transform: translate(0, -50%);
}

.charly-cart-shipping {
  margin: 0 0 18px;
  padding: 14px;
  border: 1px solid #ded5cc;
  border-radius: 14px;
  background: #f2ece4;
  color: #2b2430;
}

.charly-cart-shipping__heading {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.charly-cart-shipping__icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  color: #7657c4;
}

.charly-cart-shipping__icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.charly-cart-shipping__message,
.charly-cart-shipping__note {
  margin: 0;
}

.charly-cart-shipping__message {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.charly-cart-shipping__progress {
  height: 8px;
  margin-top: 11px;
  overflow: hidden;
  border-radius: 999px;
  background: #ded5cc;
}

.charly-cart-shipping__progress-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #a43f5d 0%, #7657c4 100%);
  transition: width .35s ease;
}

.charly-cart-shipping.is-unlocked .charly-cart-shipping__progress-fill {
  background: #3a8735;
}

.charly-cart-shipping__note {
  margin-top: 8px;
  color: #655c68;
  font-size: 12px;
  line-height: 1.45;
}

@media (max-width: 767px) {
  .charly-free-shipping-widget {
    right: 14px;
    bottom: max(14px, env(safe-area-inset-bottom));
    width: 52px;
    height: 52px;
  }

  .charly-free-shipping-widget__button {
    width: 52px;
    height: 52px;
    min-width: 52px;
    min-height: 52px;
  }

  .charly-free-shipping-widget__ring {
    inset: 2px;
  }

  .charly-free-shipping-widget__tip {
    display: none;
  }

  .f-button--scroll-top {
    bottom: calc(80px + env(safe-area-inset-bottom)) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .charly-free-shipping-widget__button,
  .charly-free-shipping-widget__ring-value,
  .charly-free-shipping-widget__tip,
  .charly-cart-shipping__progress-fill {
    transition: none;
  }
}


.charly-cart-discount-guidance {
  display: grid;
  gap: 3px;
  margin: 10px 0 14px;
  padding: 11px 13px;
  border: 1px solid #ded5cc;
  border-radius: 12px;
  background: #fbf8f3;
  color: #241c2b;
  font-size: 12px;
  line-height: 1.4;
}

.charly-cart-discount-guidance[hidden] {
  display: none;
}

.charly-cart-discount-guidance strong {
  color: #5f439f;
  font-size: 12px;
}

.charly-cart-discount-guidance span {
  color: #655c68;
}

.charly-cart-discount-guidance.is-quantity-pricing {
  border-color: #cfc2ee;
  background: #f7f3ff;
}
