.cargo-confirmation {
  width: min(580px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  box-sizing: border-box;
  padding: 0;
  border: 1px solid #e7e7e9;
  border-radius: 28px;
  background: #fff;
  color: #1d1d1f;
  box-shadow: 0 24px 100px rgb(0 0 0 / 24%);
  overflow-y: auto;
}

.cargo-confirmation::backdrop {
  background: rgb(15 15 18 / 65%);
  backdrop-filter: blur(6px);
}

.cargo-confirmation[open] {
  animation: cargo-confirmation-enter 360ms ease-out both;
}

.cargo-confirmation-content {
  padding: 44px 40px 36px;
  text-align: center;
}

.cargo-confirmation-icon {
  width: 108px;
  height: 108px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: #fff3eb;
  color: #ff5a00;
}

.cargo-confirmation-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  stroke: currentColor;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cargo-confirmation-ring {
  stroke-dasharray: 220;
  animation: cargo-confirmation-ring 550ms ease-out both;
}

.cargo-confirmation-check {
  stroke-dasharray: 60;
  animation: cargo-confirmation-check 450ms 300ms ease-out both;
}

.cargo-confirmation-eyebrow {
  margin: 0 0 12px;
  color: #a83b00;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
}

.cargo-confirmation h2 {
  margin: 0 0 16px;
  font-size: clamp(28px, 5vw, 38px);
  line-height: 1.15;
  letter-spacing: -1px;
}

#cargoConfirmationDescription {
  margin: 0;
  color: #626268;
  font-size: 17px;
  line-height: 1.6;
}

.cargo-confirmation-number {
  display: grid;
  gap: 8px;
  margin: 28px 0;
  padding: 20px 16px;
  border: 1px solid #e5e5e8;
  border-radius: 16px;
  background: #f5f5f7;
}

.cargo-confirmation-number[hidden] {
  display: none;
}

.cargo-confirmation-number span,
.cargo-confirmation-number small {
  color: #626268;
  font-size: 14px;
}

.cargo-confirmation-number strong {
  font-size: clamp(20px, 4vw, 28px);
  letter-spacing: 1px;
  overflow-wrap: anywhere;
  user-select: all;
}

.cargo-confirmation .cargo-confirmation-close {
  width: 100%;
  min-height: 54px;
  margin-top: 12px;
  justify-content: center;
  font-size: 16px;
}

.cargo-confirmation-close:focus-visible {
  outline: 3px solid #1d1d1f;
  outline-offset: 4px;
}

@keyframes cargo-confirmation-enter {
  from { opacity: 0; transform: translateY(24px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes cargo-confirmation-ring {
  from { stroke-dashoffset: 220; }
  to { stroke-dashoffset: 0; }
}

@keyframes cargo-confirmation-check {
  from { stroke-dashoffset: 60; }
  to { stroke-dashoffset: 0; }
}

@media (max-width: 480px) {
  .cargo-confirmation-content { padding: 30px 22px 26px; }
  .cargo-confirmation-icon { width: 92px; height: 92px; margin-bottom: 20px; }
  #cargoConfirmationDescription { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .cargo-confirmation[open],
  .cargo-confirmation-ring,
  .cargo-confirmation-check { animation: none; }
}
