.checkout-panel {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  padding: 16px;
}

.checkout-panel.is-open {
  display: grid;
}

.checkout-card {
  width: min(620px, 100%);
  max-height: min(86vh, 760px);
  overflow: auto;
  border: 1px solid rgba(77, 36, 32, 0.14);
  border-radius: 8px;
  background: rgba(255, 250, 245, 0.98);
  box-shadow: 0 28px 80px rgba(77, 36, 32, 0.22);
}

.checkout-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 24px 10px;
}

.checkout-header h2 {
  margin: 10px 0 0;
  color: var(--brown);
  font-size: clamp(28px, 6vw, 42px);
  line-height: 1.08;
}

.checkout-header button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--brown);
  color: white;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
}

.checkout-form {
  display: grid;
  gap: 14px;
  padding: 14px 24px 24px;
}

.checkout-form label {
  display: grid;
  gap: 8px;
  color: var(--brown);
  font-size: 13px;
  font-weight: 800;
}

.checkout-form input {
  min-height: 46px;
  width: 100%;
  border: 1px solid rgba(77, 36, 32, 0.16);
  border-radius: 8px;
  background: #fffefa;
  color: var(--brown);
  padding: 0 14px;
  font: inherit;
  outline: 0;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.checkout-form input:focus {
  border-color: rgba(216, 173, 60, 0.9);
  box-shadow: 0 0 0 4px rgba(216, 173, 60, 0.16);
}

.checkout-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.checkout-note,
.checkout-status {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.checkout-status {
  min-height: 22px;
  color: var(--brown);
  font-weight: 800;
}

@media (max-width: 820px) {
  .checkout-row {
    grid-template-columns: 1fr;
  }
}
