.checkout-panel {
  margin-top: 8px;
}

.checkout-status {
  background: var(--ink);
  background: color-mix(in srgb, var(--ink) 92%, transparent);
  color: #d7dde5;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 15px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.45;
}

.checkout-status[data-kind="success"] {
  color: var(--teal);
}

.checkout-status[data-kind="warning"] {
  color: var(--gold);
}

.checkout-status[data-kind="error"] {
  color: #ff9b9b;
}

.checkout-spinner {
  flex: none;
  width: 15px;
  height: 15px;
  border: 2px solid #596579;
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: checkout-spin 0.75s linear infinite;
}

.checkout-account {
  border: 1px solid #070b123d;
  border-top: 0;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  min-height: 62px;
  padding: 10px 12px;
}

.checkout-account img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  background: #21ad9d;
  border: 1px solid #070b1240;
  border-radius: 50%;
}

.checkout-account small,
.checkout-account strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.checkout-account small {
  color: #175b54;
  letter-spacing: 0.12em;
  font-size: 8px;
  font-weight: 900;
}

.checkout-account strong {
  margin-top: 2px;
  font-size: 12px;
}

.checkout-logout {
  border-bottom: 1px solid #145f57;
  cursor: pointer;
  padding: 3px 0;
  color: #145f57;
  font-size: 9px;
  font-weight: 900;
}

.checkout-logout:hover,
.checkout-logout:focus-visible {
  color: var(--ink);
  border-color: var(--ink);
}

.checkout-logout:disabled {
  cursor: wait;
  opacity: 0.55;
}

.checkout-action {
  width: 100%;
  min-height: 54px;
  margin-top: 10px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  letter-spacing: 0.08em;
  cursor: pointer;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 11px;
  font-weight: 900;
  transition: background 0.18s, transform 0.18s;
}

a.checkout-action {
  display: flex;
}

button.checkout-action {
  display: block;
}

.checkout-action:hover,
.checkout-action:focus-visible {
  background: var(--teal-dark);
  transform: translateY(-1px);
}

.checkout-payment {
  margin-top: 13px;
}

.checkout-payment > p {
  color: #175b54;
  margin: 0 0 10px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.5;
}

.checkout-environment {
  display: block;
  width: fit-content;
  margin: 0 0 10px;
  padding: 5px 7px;
  background: #8a4f00;
  color: #fff4d1;
  letter-spacing: 0.08em;
  font-size: 8px;
  font-weight: 900;
}

.checkout-stripe:disabled,
.checkout-portal:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.checkout-noscript {
  margin: 10px 0 0;
  padding: 10px;
  background: #ffd2d2;
  color: #6d1717;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.5;
}

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

@media (max-width: 420px) {
  .checkout-account {
    grid-template-columns: 36px minmax(0, 1fr) auto;
    padding-inline: 9px;
  }

  .checkout-account img {
    width: 36px;
    height: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .checkout-action {
    transition: none;
  }

  .checkout-spinner {
    animation: none;
  }
}
