.am-customer {
  position: fixed;
  inset: 0;
  z-index: 35;
  display: grid;
  place-items: safe center;
  overflow-y: auto;
  padding: max(20px, env(safe-area-inset-top)) 20px max(20px, env(safe-area-inset-bottom));
  background: rgba(35, 27, 24, .58);
  backdrop-filter: blur(9px);
  color: var(--ink, #2c2622);
  line-height: 1.5;
}
.am-customer[hidden] { display: none !important; }
.am-customer *, .am-customer *::before, .am-customer *::after { box-sizing: border-box; }
.am-customer__panel {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  width: min(1020px, 100%);
  max-height: calc(100svh - 40px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #fffdf9;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 20px;
  box-shadow: 0 32px 90px rgba(35, 27, 24, .25);
}
.am-customer__header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 28px; border-bottom: 1px solid #eadbd0; }
.am-customer__brand { display: flex; align-items: center; min-width: 0; gap: 14px; }
.am-customer__brand img { flex: 0 0 48px; width: 48px; height: 48px; object-fit: contain; border-radius: 8px; }
.am-customer__brand span { color: #75665d; font-size: .76rem; font-weight: 700; }
.am-customer h2, .am-customer h3, .am-customer h4 { margin: 0; color: #2c2622; line-height: 1.25; overflow-wrap: anywhere; }
.am-customer h2 { font-size: 1.4rem; }
.am-customer h3 { font-size: 1.35rem; }
.am-customer h4 { font-size: 1.02rem; }
.am-customer p { margin: 0; color: #75665d; font-size: .9rem; }
.am-customer svg { flex: 0 0 20px; width: 20px; height: 20px; }
.am-customer button, .am-customer a { -webkit-tap-highlight-color: transparent; }
.am-customer button { font-family: inherit; cursor: pointer; }
.am-customer button:disabled { cursor: not-allowed; opacity: .55; }
.am-customer :is(button, a, input, select):focus-visible { outline: 3px solid #8d3348; outline-offset: 3px; }
.am-customer__close { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; padding: 0; color: #574d47; background: #f5eee7; border: 1px solid #e7dace; border-radius: 50%; }
.am-customer__close:hover { background: #eadbd0; }
.am-customer__nav { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 24px; background: #fbf6f0; border-bottom: 1px solid #eadbd0; }
.am-customer__nav[hidden] { display: none; }
.am-customer--history .am-customer__panel { width: min(660px, 100%); grid-template-rows: auto auto minmax(0, 1fr); }
.am-customer--history .am-customer__header { grid-row: 1; }
.am-customer--history .am-customer__feedback { grid-row: 2; }
.am-customer--history .am-customer__body { grid-row: 3; }
.am-customer__history { display: grid; gap: 18px; min-width: 0; }
.am-customer__history .am-customer__section-head { margin-bottom: 0; }
.am-customer__history-form { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
.am-customer__history-results { min-width: 0; }
.am-customer__history-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.am-customer__history-list li { display: flex; align-items: center; gap: 14px; min-width: 0; padding: 18px; border: 1px solid #e6d7cb; border-radius: 12px; background: #fff; }
.am-customer__history-list li > div { min-width: 0; }
.am-customer__history-list h4 { margin-bottom: 4px; }
.am-customer__history-icon { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; background: #f5e7e3; border-radius: 10px; color: #8d3348; }
.am-customer__history-pages { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.am-customer__history-pages > span { color: #75665d; font-size: .8rem; }
.am-customer__nav button { display: inline-flex; align-items: center; justify-content: center; flex: 1; gap: 9px; min-width: 0; min-height: 46px; padding: 10px 16px; border: 1px solid transparent; border-radius: 10px; color: #75665d; background: transparent; font-size: .88rem; font-weight: 800; }
.am-customer__nav button[aria-current] { color: #8d3348; border-color: #e2c7c4; background: #fffdf9; box-shadow: 0 2px 6px rgba(90, 56, 39, .05); }
.am-customer__feedback { margin: 14px 28px 0; padding: 12px 14px; border: 1px solid #c5ddc8; border-radius: 10px; background: #edf6ee; color: #285b36; font-size: .86rem; overflow-wrap: anywhere; }
.am-customer__feedback[hidden] { display: none; }
.am-customer__feedback--error { border-color: #e8c5c5; background: #fff0ee; color: #8b302c; }
.am-customer__body { min-width: 0; min-height: 0; padding: 28px; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.am-customer__section-head { display: flex; align-items: start; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.am-customer__section-head p { max-width: 620px; margin-top: 8px; }
.am-customer__section-head h3:focus { outline: none; }
.am-customer__auth { display: grid; justify-items: start; gap: 18px; width: min(430px, 100%); margin: 12px auto 24px; }
.am-customer__auth .am-customer__section-head { margin: 0; }
.am-customer__auth .am-customer__form { width: 100%; }
.am-customer__empty { display: grid; justify-items: center; gap: 13px; padding: 34px 20px; text-align: center; border: 1px dashed #ddcbbd; border-radius: 14px; background: #fcf8f3; }
.am-customer__empty p { max-width: 420px; }
.am-customer__empty-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; color: #8d3348; background: #f5e7e3; }
.am-customer__empty-icon svg { width: 27px; height: 27px; }
.am-customer__button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; max-width: 100%; padding: 11px 17px; border: 1px solid #8d3348; border-radius: 10px; color: #fff; background: #8d3348; font-family: inherit; font-size: .86rem; font-weight: 800; line-height: 1.35; text-decoration: none; text-align: center; white-space: normal; }
.am-customer__button:hover { background: #742b3d; border-color: #742b3d; }
.am-customer__button--secondary { color: #574d47; background: #fffdf9; border-color: #d9c6b7; }
.am-customer__button--secondary:hover { color: #574d47; background: #f4ece3; border-color: #bfa28a; }
.am-customer__button--danger { background: #a73735; border-color: #a73735; }
.am-customer__text { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; max-width: 100%; padding: 8px 4px; border: 0; background: transparent; color: #8d3348; font-size: .83rem; font-weight: 800; text-decoration: none; line-height: 1.4; text-align: left; }
.am-customer__text:hover { text-decoration: underline; }
.am-customer__text--danger { color: #a73735; }
.am-customer__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.am-customer__form { display: grid; gap: 16px; margin: 0; }
.am-customer__form label { display: grid; min-width: 0; gap: 7px; color: #574d47; font-size: .85rem; font-weight: 750; line-height: 1.4; }
.am-customer__form input:not([type="checkbox"]), .am-customer__form select { width: 100%; min-width: 0; min-height: 46px; padding: 11px 12px; color: #2c2622; border: 1px solid #d9c6b7; border-radius: 9px; background: #fff; font-family: inherit; font-size: 1rem; line-height: 1.35; }
.am-customer__form input[readonly] { color: #75665d; background: #f8f3ed; }
.am-customer__form select { padding-right: 28px; }
.am-customer__form .am-customer__check { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; }
.am-customer__check input { flex: 0 0 20px; width: 20px; height: 20px; min-height: 20px; margin: 0; accent-color: #8d3348; }
.am-customer__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.am-customer__form .am-customer__code { font-size: 1.6rem; font-weight: 800; letter-spacing: .4em; text-align: center; }
.am-customer .am-customer__hint { color: #75665d; font-size: .79rem; }
.am-customer__filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.am-customer__filters button { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 14px; border: 1px solid #e5d5c8; border-radius: 999px; background: #fffdf9; color: #75665d; font-size: .83rem; font-weight: 800; }
.am-customer__filters button[aria-pressed="true"] { border-color: #8d3348; background: #8d3348; color: #fff; }
.am-customer__filters span { display: inline-grid; place-items: center; min-width: 23px; min-height: 23px; padding: 1px 5px; border-radius: 999px; background: rgba(141, 51, 72, .08); }
.am-customer__filters [aria-pressed="true"] span { background: rgba(255, 255, 255, .18); }
.am-customer__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 16px; }
.am-customer__booking { display: flex; flex-direction: column; min-width: 0; gap: 16px; padding: 20px; border: 1px solid #e6d7cb; border-radius: 14px; background: #fff; box-shadow: 0 4px 14px rgba(75, 48, 31, .035); }
.am-customer__booking-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; font-size: .88rem; }
.am-customer__status { display: inline-flex; align-items: center; width: fit-content; max-width: 100%; padding: 5px 9px; border-radius: 7px; background: #f1eae2; color: #68564a; font-size: .71rem; font-weight: 800; line-height: 1.35; }
.am-customer__status--upcoming { background: #edf4e9; color: #43653b; }
.am-customer__date { display: flex; align-items: flex-start; gap: 9px; }
.am-customer__date svg { margin-top: 2px; color: #8d3348; }
.am-customer__date strong { display: block; margin-top: 2px; color: #2c2622; font-size: 1.03rem; }
.am-customer__booking-footer { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 9px; border-top: 1px solid #eee3d9; }
.am-customer__booking-footer .am-customer__button { min-height: 36px; padding: 6px 9px; font-size: .76rem; }
.am-customer .am-customer__policy { margin-top: 22px; margin-bottom: 8px; padding: 13px 15px; border-radius: 9px; background: #f6eee5; color: #68564a; font-size: .78rem; }
.am-customer__editor { display: grid; gap: 13px; margin-bottom: 22px; padding: 20px; border: 1px solid #c6a887; border-radius: 13px; background: #fcf5eb; }
.am-customer__editor h4:focus { outline: none; }
.am-customer__account-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; gap: 20px; }
.am-customer__card { display: grid; min-width: 0; gap: 16px; padding: 22px; border: 1px solid #e6d7cb; border-radius: 14px; background: #fff; }
.am-customer__benefits { display: grid; gap: 16px; }
.am-customer__package { display: grid; gap: 5px; padding-top: 13px; border-top: 1px solid #eee3d9; }
.am-customer__package span { font-size: .85rem; }
.am-customer__package small { color: #75665d; font-size: .76rem; }
.am-customer progress { width: 100%; height: 10px; accent-color: #8d3348; }
.am-customer__wait-entry { display: grid; justify-items: start; gap: 7px; padding: 16px 0; border-top: 1px solid #eee3d9; }
.am-customer__wait-entry > span:not(.am-customer__status), .am-customer__wait-entry small { font-size: .81rem; color: #75665d; }
.am-customer__loading { display: grid; justify-items: center; gap: 18px; min-height: 230px; align-content: center; }
.am-customer__spinner { width: 28px; height: 28px; border: 3px solid #eadbd0; border-top-color: #8d3348; border-radius: 50%; animation: am-customer-spin .8s linear infinite; }
@keyframes am-customer-spin { to { transform: rotate(360deg); } }
@media (max-width: 700px) {
  .am-customer { padding: max(8px, env(safe-area-inset-top)) 8px max(8px, env(safe-area-inset-bottom)); }
  .am-customer__panel { max-height: calc(100svh - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); border-radius: 15px; }
  .am-customer__header { gap: 12px; padding: 16px; }
  .am-customer h2 { font-size: 1.2rem; }
  .am-customer h3 { font-size: 1.2rem; }
  .am-customer__brand { gap: 10px; }
  .am-customer__nav { padding: 8px; gap: 3px; }
  .am-customer__nav button { flex-direction: column; gap: 5px; min-height: 58px; padding: 7px 5px; font-size: .72rem; }
  .am-customer__nav svg { width: 18px; height: 18px; }
  .am-customer__body { padding: 18px 16px; }
  .am-customer__feedback { margin: 12px 16px 0; }
  .am-customer__grid, .am-customer__account-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .am-customer__booking, .am-customer__card, .am-customer__editor { padding: 17px; }
  .am-customer__auth { margin-top: 0; }
  .am-customer__filters { gap: 6px; }
  .am-customer__filters button { padding: 7px 10px; font-size: .77rem; }
  .am-customer__history-form { grid-template-columns: minmax(0, 1fr); }
  .am-customer__history-list li { padding: 14px; gap: 10px; }
}
@media (max-width: 380px) {
  .am-customer__fields { grid-template-columns: minmax(0, 1fr); }
  .am-customer__body { padding: 16px 12px; }
  .am-customer__filters button { flex: 1; justify-content: center; padding-inline: 6px; }
  .am-customer__booking .am-customer__actions > .am-customer__button { width: 100%; }
}
@media (max-height: 500px) and (min-width: 701px) {
  .am-customer__header { padding-block: 10px; }
  .am-customer__nav { padding-block: 6px; }
  .am-customer__nav button { min-height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .am-customer__spinner { animation: none; }
}
