.notice {
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  margin: 0 0 16px;
  padding: 12px 14px;
}

.error-notice,
.form-error {
  background: var(--red-soft);
  color: var(--red);
}

.success-notice {
  background: var(--green-soft);
  color: var(--green);
}

.button {
  align-items: center;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  font-weight: 600;
  justify-content: center;
  letter-spacing: -0.005em;
  min-height: var(--control-height);
  padding: 0 20px;
  transition:
    background 0.15s var(--ease),
    color 0.15s var(--ease),
    box-shadow 0.15s var(--ease),
    transform 0.15s var(--ease);
}

.button-primary {
  background: var(--gradient-primary);
  color: var(--text-on-primary);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.button-primary:hover {
  background: var(--blue-hover);
  box-shadow: 0 4px 12px -6px var(--blue-glow);
}

.button-primary:active {
  transform: scale(0.98);
}

.button-secondary {
  background: var(--surface-hover);
  color: var(--text);
}

.button-secondary:hover {
  background: var(--border-hover);
}

.button-quiet {
  border-radius: 999px;
  font-weight: 600;
  min-height: 40px;
  padding: 0 12px;
}

.button-quiet:hover {
  background: var(--surface-soft);
}

.button:disabled {
  opacity: 0.6;
}

.submit-spinner {
  animation: loading-spin 0.8s linear infinite;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  flex: 0 0 14px;
  height: 14px;
  margin-right: 8px;
  width: 14px;
}

.button-wide {
  width: 100%;
}

.stack-form {
  display: grid;
  gap: 17px;
}

label,
legend {
  color: var(--text-soft);
  font-size: 0.88rem;
  font-weight: 700;
}

label {
  display: grid;
  gap: 7px;
}

input:not([type="radio"]):not([type="checkbox"]),
textarea {
  background: var(--surface-input);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-sm);
  color: var(--text);
  outline: 0;
  min-height: var(--control-height);
  padding: 11px 14px;
  width: 100%;
}

input:not([type="radio"]):not([type="checkbox"])::placeholder,
textarea::placeholder {
  color: var(--text-muted);
}

textarea {
  min-height: 90px;
  resize: vertical;
}

input:not([type="radio"]):not([type="checkbox"]):focus,
select:focus,
textarea:focus {
  background: var(--surface);
  border-color: var(--blue);
  box-shadow: var(--ring);
}

select {
  background-color: var(--surface-input);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-sm);
  color: var(--text);
  font: inherit;
  min-height: var(--control-height);
  padding: 10px 14px;
  width: 100%;
}

select:focus {
  border-color: var(--blue);
  box-shadow: var(--ring);
}

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

legend {
  margin-bottom: 9px;
}

.summary {
  align-items: center;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  justify-content: space-between;
  padding: 16px;
}

.summary strong {
  color: var(--text);
}

.order-status-card {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 800;
  justify-content: center;
  min-height: 30px;
  padding: 5px 9px;
  text-align: center;
  text-transform: capitalize;
  white-space: nowrap;
}

.order-status-card-pending_payment {
  background: var(--yellow-soft);
  border-color: var(--yellow-border);
  color: var(--yellow);
}

.order-status-card-processing {
  background: var(--blue-soft);
  border-color: var(--blue-border);
  color: var(--blue-hover);
}

.order-status-card-completed {
  background: var(--green-soft);
  border-color: var(--green-border);
  color: var(--green);
}

.order-status-card-failed {
  background: var(--red-soft);
  border-color: var(--red-border);
  color: var(--red);
}
