studio-cart-free-shipping {
  display: block;
  padding: var(--shipping-padding, 14px);
  margin-block: var(--shipping-margin-top, 16px) var(--shipping-margin-bottom, 8px);
  color: var(--shipping-text, #21483f);
  background: var(--shipping-background, #eef8f4);
  border-radius: var(--shipping-radius, 10px);
  font-size: var(--shipping-font-size, 13px);
  line-height: 1.6;
  overflow-wrap: anywhere;
}
studio-cart-free-shipping,
studio-cart-free-shipping * { box-sizing: border-box; }
studio-cart-free-shipping[hidden] { display: none; }
studio-cart-free-shipping:not([data-ready]) { visibility: hidden; }
studio-cart-free-shipping .shipping-progress__title {
  display: flex;
  align-items: center;
  gap: 8px;
}
studio-cart-free-shipping .shipping-progress__title strong { font-size: inherit; }
studio-cart-free-shipping [data-shipping-icon] { flex: 0 0 20px; width: 20px; height: 20px; }
studio-cart-free-shipping [hidden] { display: none; }
studio-cart-free-shipping [data-shipping-message] { margin: 6px 0 10px; }
studio-cart-free-shipping progress {
  display: block;
  width: 100%;
  height: var(--shipping-bar-height, 6px);
  overflow: hidden;
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: var(--shipping-track, #dcebe4);
  color: var(--shipping-fill, #34b7aa);
}
studio-cart-free-shipping progress::-webkit-progress-bar { background: var(--shipping-track, #dcebe4); border-radius: 999px; }
studio-cart-free-shipping progress::-webkit-progress-value { background: var(--shipping-fill, #34b7aa); border-radius: 999px; }
studio-cart-free-shipping progress::-moz-progress-bar { background: var(--shipping-fill, #34b7aa); border-radius: 999px; }
studio-cart-free-shipping[data-unlocked] progress { color: var(--shipping-success, #26866a); }
studio-cart-free-shipping[data-unlocked] progress::-webkit-progress-value { background: var(--shipping-success, #26866a); }
studio-cart-free-shipping[data-unlocked] progress::-moz-progress-bar { background: var(--shipping-success, #26866a); }
studio-cart-free-shipping .shipping-progress__note { display: block; margin-top: 8px; opacity: .75; font-size: .85em; }
studio-cart-free-shipping[data-editor-placeholder] { border: 1px dashed currentColor; }


/* Progress motion and a one-shot celebration when crossing the threshold. */
studio-cart-free-shipping { position: relative; isolation: isolate; }
studio-cart-free-shipping progress::-webkit-progress-value {
  background-image: linear-gradient(100deg, transparent 25%, #ffffff66 45%, transparent 65%);
  background-size: 180px 100%;
  animation: shipping-progress-flow 2.6s linear infinite;
}
studio-cart-free-shipping progress::-moz-progress-bar {
  background-image: linear-gradient(100deg, transparent 25%, #ffffff66 45%, transparent 65%);
  background-size: 180px 100%;
  animation: shipping-progress-flow 2.6s linear infinite;
}
studio-cart-free-shipping[data-unlocked] progress::-webkit-progress-value { animation: none; background-image: none; }
studio-cart-free-shipping[data-unlocked] progress::-moz-progress-bar { animation: none; background-image: none; }
studio-cart-free-shipping[data-celebrating] .shipping-progress__title { animation: shipping-success-pop .65s ease both; }
studio-cart-free-shipping[data-celebrating] [data-shipping-icon] { animation: shipping-truck-jump .7s ease both; }
studio-cart-free-shipping[data-celebrating] progress { animation: shipping-success-glow 1s ease both; }
.shipping-celebration { position: absolute; inset: 0; overflow: hidden; pointer-events: none; border-radius: inherit; z-index: 2; }
.shipping-celebration i { position: absolute; left: var(--x); top: 60%; width: 5px; height: 9px; background: currentColor; opacity: 0; animation: shipping-confetti 1.5s cubic-bezier(.15,.7,.4,1) var(--delay) both; }
.shipping-celebration i:nth-child(3n) { background: var(--drawer-accent, var(--shipping-fill)); }
.shipping-celebration i:nth-child(3n+1) { background: #f7d778; }
.shipping-celebration i:nth-child(3n+2) { background: #fff; border-radius: 50%; width: 5px; height: 5px; }
@keyframes shipping-progress-flow { from { background-position: -180px 0; } to { background-position: 180px 0; } }
@keyframes shipping-success-pop { 0%,100% { transform: scale(1); } 40% { transform: scale(1.06); } }
@keyframes shipping-truck-jump { 0%,100% { transform: translateY(0); } 35% { transform: translateY(-5px) rotate(-8deg); } 65% { transform: translateY(-2px) rotate(5deg); } }
@keyframes shipping-success-glow { 0%,100% { filter: brightness(1); } 45% { filter: brightness(1.5); box-shadow: 0 0 14px currentColor; } }
@keyframes shipping-confetti { 0% { opacity: 0; transform: translate(0,12px) rotate(0); } 15% { opacity: 1; } 50% { opacity: 1; transform: translate(var(--drift),-44px) rotate(var(--spin)); } 100% { opacity: 0; transform: translate(var(--drift),35px) rotate(var(--spin)); } }
@media (prefers-reduced-motion: reduce) {
  studio-cart-free-shipping * { animation: none !important; transition: none !important; }
  studio-cart-free-shipping progress::-webkit-progress-value { animation: none !important; }
  studio-cart-free-shipping progress::-moz-progress-bar { animation: none !important; }
  .shipping-celebration { display: none; }
}


/* A visible reward milestone at the end of the free-shipping track. */
studio-cart-free-shipping .shipping-progress__track { position: relative; padding: 28px 14px 10px 0; }
studio-cart-free-shipping .shipping-progress__rail { position: relative; }
studio-cart-free-shipping .shipping-progress__goal-label {
  position: absolute; inset-inline-end: 0; top: 0;
  max-width: 100%; padding: 2px 7px; border-radius: 5px;
  background: color-mix(in srgb, var(--drawer-accent, var(--shipping-fill, #34b7aa)) 18%, #fff);
  color: #131414; font-size: 10px; font-weight: 700; line-height: 16px;
  text-transform: uppercase; white-space: normal; text-align: end;
}
studio-cart-free-shipping .shipping-progress__goal {
  position: absolute; inset-inline-end: -14px; top: 50%;
  display: grid; place-items: center; width: 28px; height: 28px;
  transform: translateY(-50%); border: 2px solid #fff;
  border-radius: 50%; color: var(--drawer-accent, var(--shipping-fill, #34b7aa));
  background: color-mix(in srgb, var(--drawer-accent, var(--shipping-fill, #34b7aa)) 18%, #fff);
  box-shadow: 0 0 0 2px color-mix(in srgb, currentColor 18%, transparent);
  transition: background-color .3s, color .3s;
}
studio-cart-free-shipping .shipping-progress__goal svg { display: block; width: 16px; height: 16px; }
studio-cart-free-shipping .shipping-progress__goal .shipping-progress__check { display: none; }
studio-cart-free-shipping[data-unlocked] .shipping-progress__goal { background: var(--drawer-accent, var(--shipping-success, #26866a)); color: #fff; }
studio-cart-free-shipping[data-unlocked] .shipping-progress__goal .shipping-progress__gift { display: none; }
studio-cart-free-shipping[data-unlocked] .shipping-progress__goal .shipping-progress__check { display: block; }
studio-cart-free-shipping[data-celebrating] .shipping-progress__goal { animation: shipping-goal-pop .65s ease both; }
studio-cart-free-shipping[data-editor-placeholder] .shipping-progress__track { display: none; }
@keyframes shipping-goal-pop { 0%,100% { transform: translateY(-50%) scale(1); } 45% { transform: translateY(-50%) scale(1.22); } }


/* Compact reward hint: one message line, then the milestone track. */
html body .cart-drawer studio-cart-free-shipping.cart-drawer-block { padding: 10px 16px; }
studio-cart-free-shipping .shipping-progress__title { display: none; }
studio-cart-free-shipping [data-shipping-message] { margin: 0 0 4px; font-size: 12px; line-height: 18px; }
studio-cart-free-shipping [data-shipping-message] strong { font-weight: 700; }
studio-cart-free-shipping .shipping-progress__track { padding-block: 20px 10px; padding-inline-end: 12px; }
studio-cart-free-shipping .shipping-progress__goal-label { font-size: 9px; line-height: 14px; padding: 1px 5px; }
studio-cart-free-shipping .shipping-progress__goal { width: 24px; height: 24px; inset-inline-end: -12px; }
studio-cart-free-shipping .shipping-progress__goal svg { width: 14px; height: 14px; }


/* Animate a normal element; native progress pseudo-elements do not animate reliably in all browsers. */
studio-cart-free-shipping .shipping-progress__flow { position: absolute; inset-block: 0; inset-inline-start: 0; width: var(--shipping-motion-progress, 0%); border-radius: 999px; overflow: hidden; pointer-events: none; }
studio-cart-free-shipping .shipping-progress__flow::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 10%, #ffffffaa 45%, transparent 75%); transform: translateX(-110%); animation: shipping-visible-sheen 2.2s ease-in-out infinite; animation-play-state: paused; }
studio-cart-free-shipping[data-motion-visible] .shipping-progress__flow::after { animation-play-state: running; }
studio-cart-free-shipping .shipping-progress__goal { z-index: 1; }
@keyframes shipping-visible-sheen { from { transform: translateX(-110%); } to { transform: translateX(110%); } }
@media (prefers-reduced-motion: reduce) { studio-cart-free-shipping .shipping-progress__flow::after { animation: none; display: none; } }
