body.customer-registration-open {
  overflow: hidden;
}

.customer-register-entry {
  margin-top: 3px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  background: linear-gradient(135deg, #f5faf3, #eef6ec);
}

.customer-register-entry > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.customer-register-entry strong {
  color: var(--ink);
  font-size: 11px;
}

.customer-register-entry span {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.4;
}

.customer-register-button {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--berry);
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--berry);
  background: #fff;
  font-size: 10px;
  font-weight: 850;
  cursor: pointer;
}

.customer-register-button:hover {
  color: #fff;
  background: var(--berry);
}

.customer-register-button svg,
.customer-registration-modal svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.customer-registration-modal[hidden],
.customer-registration-modal [hidden] {
  display: none !important;
}

.customer-registration-modal {
  position: fixed;
  z-index: 120;
  inset: 0;
  padding: 20px;
  overflow-y: auto;
  display: grid;
  place-items: center;
  background: rgba(6, 35, 17, .65);
  backdrop-filter: blur(6px);
}

.customer-registration-dialog {
  position: relative;
  width: min(100%, 590px);
  max-height: calc(100vh - 40px);
  padding: 32px;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 24px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 35px 90px rgba(1, 36, 16, .32);
  animation: customerRegistrationIn .22s ease both;
}

@keyframes customerRegistrationIn {
  from { opacity: 0; transform: translateY(12px) scale(.985); }
}

.registration-close {
  position: absolute;
  z-index: 2;
  top: 15px;
  right: 15px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: #eef3eb;
  cursor: pointer;
}

.registration-heading {
  padding-right: 35px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 15px;
}

.registration-heading-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--berry);
  background: var(--berry-soft);
}

.registration-heading p,
.registration-success-view > p {
  margin: 1px 0 5px;
  color: var(--berry);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.registration-heading h2,
.registration-success-view h2 {
  margin: 0;
  font: 600 27px Georgia, serif;
}

.registration-heading > div > span,
.registration-success-view > span:not(.registration-success-icon) {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.registration-form {
  margin-top: 25px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.registration-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #465249;
  font-size: 11px;
  font-weight: 750;
}

.registration-field > small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 500;
  line-height: 1.4;
}

.registration-input {
  min-height: 47px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #849188;
  background: #fff;
}

.registration-input:focus-within {
  border-color: var(--berry);
  box-shadow: 0 0 0 3px #02510014;
}

.registration-input input {
  width: 100%;
  min-width: 0;
  padding: 12px 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
}

.registration-pin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}

.registration-consent {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
  cursor: pointer;
}

.registration-consent input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--berry);
}

.registration-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.registration-error {
  padding: 11px 13px;
  border-radius: 12px;
  color: var(--danger);
  background: #fae9eb;
  font-size: 10px;
  line-height: 1.45;
}

.registration-submit,
.registration-enter-account {
  min-height: 49px;
  padding: 0 18px;
  border: 0;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #fff;
  background: var(--berry);
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.registration-submit.loading svg {
  animation: customerRegistrationSpin .8s linear infinite;
}

@keyframes customerRegistrationSpin {
  to { transform: rotate(360deg); }
}

.registration-security {
  margin: -6px 0 0;
  color: #7c8b81;
  font-size: 9px;
  line-height: 1.45;
  text-align: center;
}

.registration-success-view {
  padding: 14px 7px 4px;
  text-align: center;
}

.registration-success-icon {
  width: 62px;
  height: 62px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--success);
  box-shadow: 0 12px 28px rgba(40, 118, 79, .24);
}

.registration-success-icon svg {
  width: 29px;
  height: 29px;
  stroke-width: 2.4;
}

.registration-success-view > span:not(.registration-success-icon) {
  max-width: 390px;
  margin: 9px auto 0;
}

.registration-created-code {
  margin: 22px auto 17px;
  padding: 13px 13px 13px 17px;
  border: 1px dashed #9fbea0;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  color: var(--berry);
  background: #f2f8ef;
}

.registration-created-code strong {
  font-family: monospace;
  font-size: 15px;
  letter-spacing: .4px;
}

.registration-copy-code {
  min-height: 35px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--berry);
  background: #fff;
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
}

.registration-enter-account {
  width: 100%;
}

.registration-finish {
  margin-top: 11px;
  padding: 8px 15px;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 10px;
  font-weight: 750;
  cursor: pointer;
}

@media (width <= 640px) {
  .customer-register-entry {
    grid-template-columns: 1fr;
  }

  .customer-register-button {
    width: 100%;
  }

  .customer-registration-modal {
    padding: 10px;
    align-items: end;
  }

  .customer-registration-dialog {
    width: 100%;
    max-height: calc(100vh - 20px);
    padding: 25px 18px 22px;
    border-radius: 22px 22px 16px 16px;
  }

  .registration-heading {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
  }

  .registration-heading-icon {
    width: 42px;
    height: 42px;
  }

  .registration-heading h2,
  .registration-success-view h2 {
    font-size: 24px;
  }

  .registration-pin-grid {
    grid-template-columns: 1fr;
  }

  .registration-created-code {
    align-items: stretch;
    flex-direction: column;
  }

  .registration-copy-code {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .customer-registration-dialog {
    animation: none;
  }
}
