/* Store checkout — order name dialog */

.order-name-dialog {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.order-name-dialog__backdrop {
  position: fixed;
  inset: 0;
  border: none;
  padding: 0;
  margin: 0;
  background-color: rgba(35, 25, 23, 0.48);
  cursor: pointer;
}

.order-name-dialog__card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: min(100%, 400px);
  padding: 24px;
  border-radius: var(--md-sys-shape-corner-large);
  background-color: var(--md-sys-color-surface-container-lowest);
  box-shadow: var(--md-sys-elevation-2);
}

.order-name-dialog__title {
  margin: 0;
  color: var(--md-sys-color-on-surface);
}

.order-name-dialog__subtext {
  margin: 0;
  color: var(--md-sys-color-on-surface-variant);
}

.order-name-dialog__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.order-name-dialog__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.order-name-dialog__label {
  color: var(--md-sys-color-on-surface-variant);
}

.order-name-dialog__input {
  min-height: 48px;
  padding: 8px 16px;
  border: 1px solid var(--md-sys-color-outline);
  border-radius: var(--md-sys-shape-corner-small);
  font-family: "Lato", system-ui, sans-serif;
  font-size: var(--type-body-size);
  color: var(--md-sys-color-on-surface);
  background-color: var(--md-sys-color-surface-container-lowest);
}

.order-name-dialog__input:focus {
  outline: 2px solid var(--md-sys-color-primary);
  outline-offset: -2px;
  border-color: var(--md-sys-color-primary);
}

.order-name-dialog__field--error .order-name-dialog__input {
  border-color: var(--md-sys-color-error);
}

.order-name-dialog__field--error .order-name-dialog__input:focus {
  outline-color: var(--md-sys-color-error);
  border-color: var(--md-sys-color-error);
}

.order-name-dialog__error {
  margin: 0;
  color: var(--md-sys-color-error);
}

.order-name-dialog__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.order-name-dialog__cancel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 12px;
  border: none;
  border-radius: var(--md-sys-shape-corner-full);
  font-family: "Lato", system-ui, sans-serif;
  font-size: var(--type-button-size);
  font-weight: 500;
  letter-spacing: var(--type-button-letter-spacing);
  line-height: var(--type-button-line-height);
  cursor: pointer;
  color: var(--md-sys-color-primary);
  background-color: transparent;
}

.order-name-dialog__cancel:hover {
  background-color: color-mix(in srgb, var(--md-sys-color-primary) 8%, transparent);
}

.order-name-dialog__cancel:focus-visible {
  outline: 2px solid var(--md-sys-color-primary);
  outline-offset: 2px;
}
