.tb-cart-progress {
  position: fixed;
  z-index: 2147483000;
  inset: 0;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  padding: 22px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.tb-cart-progress[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}

.tb-cart-progress__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(32, 25, 24, 0.56);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.tb-cart-progress__card {
  position: relative;
  width: min(100%, 430px);
  box-sizing: border-box;
  overflow: hidden;
  padding: 38px 34px 32px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 24px;
  background: #fffdfb;
  color: #28211f;
  text-align: center;
  box-shadow: 0 28px 90px rgba(24, 17, 15, 0.3);
  transform: translateY(12px) scale(0.98);
  transition: transform 220ms cubic-bezier(.2, .8, .2, 1);
}

.tb-cart-progress[aria-hidden="false"] .tb-cart-progress__card {
  transform: translateY(0) scale(1);
}

.tb-cart-progress__card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, #c79b8e, #a97066 52%, #d7b59d);
}

.tb-cart-progress__visual {
  position: relative;
  width: 72px;
  height: 72px;
  margin: 0 auto 19px;
}

.tb-cart-progress__spinner {
  position: absolute;
  inset: 0;
  display: block;
  box-sizing: border-box;
  border: 5px solid #f0dfda;
  border-top-color: #a97066;
  border-right-color: #c89a89;
  border-radius: 50%;
  animation: tb-cart-spin 820ms linear infinite;
}

.tb-cart-progress__spinner::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff 0 10%, #f8ebe7 72%);
}

.tb-cart-progress__check {
  position: absolute;
  inset: 0;
  display: none;
  width: 72px;
  height: 72px;
  fill: none;
  stroke: #6f9b78;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3.5;
}

.tb-cart-progress__check circle {
  fill: #eef7f0;
  stroke-width: 2;
}

.tb-cart-progress__eyebrow {
  margin: 0 0 7px;
  color: #a97066;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.4;
  text-transform: uppercase;
}

.tb-cart-progress__title {
  margin: 0;
  color: #28211f;
  font-family: inherit;
  font-size: clamp(24px, 4vw, 31px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.tb-cart-progress__text {
  max-width: 350px;
  min-height: 48px;
  margin: 13px auto 0;
  color: #6d615d;
  font-size: 16px;
  line-height: 1.55;
}

.tb-cart-progress__steps {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 19px;
}

.tb-cart-progress__steps span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e6d2cc;
  animation: tb-cart-pulse 1.25s ease-in-out infinite;
}

.tb-cart-progress__steps span:nth-child(2) { animation-delay: 140ms; }
.tb-cart-progress__steps span:nth-child(3) { animation-delay: 280ms; }

.tb-cart-progress__close {
  display: none;
  margin: 22px auto 0;
  padding: 11px 18px;
  border: 0;
  border-radius: 999px;
  background: #28211f;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
}

.tb-cart-progress[data-state="success"] .tb-cart-progress__spinner {
  display: none;
}

.tb-cart-progress[data-state="success"] .tb-cart-progress__check {
  display: block;
  animation: tb-cart-pop 320ms cubic-bezier(.2, .9, .25, 1.25) both;
}

.tb-cart-progress[data-state="success"] .tb-cart-progress__steps {
  visibility: hidden;
}

.tb-cart-progress[data-state="timeout"] .tb-cart-progress__spinner {
  animation-duration: 1.6s;
  border-top-color: #8c817d;
  border-right-color: #b2a7a2;
}

.tb-cart-progress[data-state="timeout"] .tb-cart-progress__steps {
  display: none;
}

.tb-cart-progress[data-state="timeout"] .tb-cart-progress__close {
  display: block;
}

body.tb-cart-progress-open {
  overflow: hidden;
}

[data-tb-cart-busy="1"] {
  pointer-events: none !important;
}

@keyframes tb-cart-spin {
  to { transform: rotate(360deg); }
}

@keyframes tb-cart-pulse {
  0%, 100% { opacity: 0.35; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.08); }
}

@keyframes tb-cart-pop {
  from { opacity: 0; transform: scale(0.72); }
  to { opacity: 1; transform: scale(1); }
}

@media (max-width: 520px) {
  .tb-cart-progress {
    padding: 16px;
  }

  .tb-cart-progress__card {
    padding: 32px 22px 27px;
    border-radius: 20px;
  }

  .tb-cart-progress__text {
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tb-cart-progress,
  .tb-cart-progress__card,
  .tb-cart-progress__check {
    transition: none;
    animation: none;
  }

  .tb-cart-progress__spinner {
    animation-duration: 1.8s;
  }

  .tb-cart-progress__steps span {
    animation: none;
    opacity: 0.75;
  }
}

