/* Keep the returning-customer lookup inside the touch storefront sheet system. */
body:is([data-layout="mobile"], [data-layout="portrait"]) #customerLookupModal {
  box-sizing: border-box;
  width: 100%;
  max-width: 100vw;
  padding: 30px 0 0 !important;
  place-items: end center;
}

body:is([data-layout="mobile"], [data-layout="portrait"]) #customerLookupModal .customer-lookup-sheet {
  box-sizing: border-box;
  width: min(680px, 100%) !important;
  max-width: 100% !important;
  min-width: 0;
  max-height: calc(100dvh - 30px) !important;
  margin: 0;
  padding: 0 !important;
  overflow-x: hidden;
  overflow-y: auto;
  border: 0;
  border-radius: 26px 26px 0 0;
  background: var(--touch-canvas) !important;
  color: var(--touch-ink);
}

body:is([data-layout="mobile"], [data-layout="portrait"]) #customerLookupModal .customer-details-grabber {
  display: block;
  flex: none;
  width: 42px;
  height: 4px;
  margin: 9px auto 4px;
  border-radius: 4px;
  background: #c7cbc2;
}

body:is([data-layout="mobile"], [data-layout="portrait"]) #customerLookupModal .customer-details-header {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  min-height: 65px;
  margin: 0;
  padding: 8px 20px 14px;
  border-bottom: 1px solid var(--touch-line);
  background: var(--touch-canvas);
}

body:is([data-layout="mobile"], [data-layout="portrait"]) #customerLookupModal .customer-details-title {
  min-width: 0;
  margin: 0;
  color: var(--touch-ink) !important;
  font-size: 24px;
  font-weight: 680;
  letter-spacing: -.03em;
  text-align: left;
}

body:is([data-layout="mobile"], [data-layout="portrait"]) #customerLookupModal .customer-details-close {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--touch-line);
  border-radius: 50%;
  background: #fff;
  box-shadow: none;
  color: var(--touch-ink);
}

body:is([data-layout="mobile"], [data-layout="portrait"]) #customerLookupModal .customer-lookup-modal-mount {
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
  padding: 20px 20px calc(24px + env(safe-area-inset-bottom));
}

body:is([data-layout="mobile"], [data-layout="portrait"]) #customerLookupModal .customer-lookup-panel {
  min-width: 0;
  width: 100%;
}

body:is([data-layout="mobile"], [data-layout="portrait"]) #customerLookupModal .customer-lookup-copy {
  margin: 0 0 16px;
  color: var(--touch-muted);
  font-size: 14px;
  line-height: 1.45;
  text-align: left;
}

body:is([data-layout="mobile"], [data-layout="portrait"]) #customerLookupModal .customer-lookup-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
}

body:is([data-layout="mobile"], [data-layout="portrait"]) #customerLookupModal .customer-lookup-row input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 50px;
  border: 1px solid var(--touch-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
  color: var(--touch-ink);
  -webkit-text-fill-color: var(--touch-ink);
  font-size: 16px;
}

body:is([data-layout="mobile"], [data-layout="portrait"]) #customerLookupModal .customer-lookup-button {
  box-sizing: border-box;
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 13px;
  background: var(--touch-accent);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  white-space: normal;
}

body:is([data-layout="mobile"], [data-layout="portrait"]) #customerLookupModal .customer-lookup-status {
  color: var(--touch-muted);
  font-size: 13px;
}

body:is([data-layout="mobile"], [data-layout="portrait"]) #customerLookupModal .customer-lookup-status.is-error {
  color: #b42318;
}

body:is([data-layout="mobile"], [data-layout="portrait"]) #customerLookupModal .customer-lookup-status.is-success {
  color: #167a3b;
}

body:is([data-layout="mobile"], [data-layout="portrait"]) #customerLookupModal :is(button, input):focus-visible {
  outline: 2px solid var(--touch-accent);
  outline-offset: 2px;
}
