/* Electro Meuble 5.3.0 — shared customer and service interface.
   Loaded after Classic and modern.css. All rules stay within customer/service views. */

/* Classic limits authentication to 640px and paints #content: reset the actual parent. */
#authentication #main #content,
#registration #main #content,
#password #main #content,
#guest-tracking #main #content,
#contact #main #content,
#main.em-customer-page #content.em-customer-content {
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--em-ink);
  font-size: 15px;
}

.em-customer-page, .em-service-page { width: 100%; min-width: 0; color: var(--em-ink); }
.em-service-page { margin: 0 auto 28px; }
.em-customer-page { margin-bottom: 28px; }
.em-auth-page, .em-contact-page { max-width: 1160px; }
.em-service-heading { margin: 0 0 26px; }
.em-service-heading--with-action { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.em-service-heading h1, .em-auth-intro h1 {
  margin: 5px 0 12px;
  color: var(--em-ink-strong);
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 750;
  line-height: 1.12;
  letter-spacing: -.035em;
  text-transform: none;
  overflow-wrap: anywhere;
}
.em-service-heading h1 { max-width: 25ch; }
.em-service-eyebrow {
  margin: 0 0 10px;
  color: var(--em-accent-hover);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.5;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.em-customer-description, .em-service-heading > p:last-child,
.em-service-heading > div > p:last-child {
  max-width: 66ch;
  margin: 0;
  color: var(--em-text-muted);
  font-size: 15px;
  line-height: 1.7;
}
.em-customer-description:empty, .em-customer-heading__actions:empty { display: none; }
.em-customer-heading__actions { flex: 0 0 auto; }
.em-customer-heading__actions .btn { display: inline-flex; align-items: center; gap: 8px; }
.em-customer-page h2, .em-auth-page h2, .em-contact-page h2 { color: var(--em-ink-strong); font-weight: 700; text-transform: none; }
.em-customer-page .em-section-title { margin: 28px 0 16px; font-size: 19px; line-height: 1.35; }
.em-muted { color: var(--em-text-muted); }

/* Two coherent layouts: access/recovery, and signed-in account navigation. */
.em-auth-layout, .em-contact-layout {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--em-line);
  border-radius: 20px;
  background: var(--em-paper);
  box-shadow: 0 18px 50px -36px rgba(8, 47, 64, .45);
}
.em-auth-layout--compact { max-width: 1040px; margin-inline: auto; }
.em-auth-intro, .em-contact-aside {
  position: relative;
  min-width: 0;
  padding: clamp(28px, 4vw, 52px);
  background: var(--em-ink-strong);
  color: #fff;
}
.em-auth-intro::before, .em-contact-aside::before {
  content: "";
  display: block;
  width: 36px;
  height: 4px;
  margin-bottom: 30px;
  border-radius: 4px;
  background: #75d1df;
}
.em-auth-intro h1 { max-width: 13ch; color: #fff; font-size: clamp(31px, 3.7vw, 46px); }
.em-auth-intro > p:not(.em-service-eyebrow), .em-contact-aside > p {
  max-width: 42ch;
  margin: 16px 0 0;
  color: #d0e0e5;
  font-size: 15px;
  line-height: 1.75;
}
.em-auth-intro .em-service-eyebrow { color: #8edce8; }
.em-auth-panel, .em-contact-form { min-width: 0; padding: clamp(26px, 3.8vw, 48px); }
.em-auth-panel > header { margin: 0 0 28px; }
.em-auth-panel > header h2, .em-contact-form > h2 { margin: 0 0 10px; font-size: 25px; line-height: 1.25; letter-spacing: -.02em; }
.em-auth-panel > header p { margin: 0; color: var(--em-text-muted); font-size: 14px; line-height: 1.7; }
.em-auth-panel .login-form { margin-top: 0; }
.em-service-points { display: grid; gap: 18px; margin: 30px 0 0; padding: 26px 0 0; border-top: 1px solid #315363; list-style: none; }
.em-service-points li { display: flex; align-items: flex-start; gap: 12px; margin: 0; font-size: 14px; line-height: 1.55; }
.em-service-points .em-icon { flex-shrink: 0; margin-top: 1px; color: #8edce8; }
.em-auth-intro .em-auth-back { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; margin-top: 30px; color: #fff; font-size: 13px; font-weight: 650; }
.em-auth-intro .em-auth-back:hover { color: #8edce8; }
.em-auth-page .em-auth-alternative { margin: 16px 0 0; text-align: center; font-size: 13px; line-height: 1.6; }
.em-auth-alternative a, .em-auth-switch a { color: var(--em-accent-hover); font-weight: 650; }
#main .em-auth-page .forgot-password { margin: 0 0 20px; padding: 0; text-align: right; font-size: 13px; }
#main .em-auth-page .forgot-password a { display: inline-flex; align-items: center; min-height: 38px; color: var(--em-accent-hover); font-weight: 650; }
#main .em-auth-page .no-account { display: flex; justify-content: center; flex-wrap: wrap; gap: 5px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--em-line); font-size: 13px; line-height: 1.6; }
.em-auth-page .no-account a { color: var(--em-accent-hover); font-weight: 700; }
.em-auth-modules:empty { display: none; }
.em-auth-context { margin-bottom: 22px; padding: 14px 16px; border-radius: 10px; background: var(--em-highlight); color: var(--em-ink); overflow-wrap: anywhere; }
.em-auth-confirmation { display: grid; gap: 16px; }
.em-auth-confirmation .ps-alert-success { padding: 18px; border: 1px solid #b7d7c4; border-radius: 12px; background: #edf7f1; color: #23563c; }
.em-auth-confirmation .ps-alert-success ul { margin: 0; padding: 0; list-style: none; }
.em-auth-confirmation .ps-alert-success .item { margin: 0; }
.em-auth-confirmation .ps-alert-success .item i { display: none; }
.em-auth-confirmation .ps-alert-success p { margin: 0; line-height: 1.7; overflow-wrap: anywhere; }
.em-auth-confirmation .ps-alert-success .item,
.em-auth-confirmation .ps-alert-success .item p { padding: 0; border: 0; background: transparent; color: inherit; }
.em-auth-page .forgotten-password { padding: 0; }
.em-auth-page .forgotten-password .form-fields .email { width: 100%; min-width: 0; padding: 0; }
.em-auth-page .forgotten-password .form-fields label.required { width: auto; }
.em-auth-page .send-renew-password-link { padding: 0; }
.em-auth-page .renew-password { margin: 0; }
.em-auth-page .renew-password .email { padding: 14px 16px; }

.em-account-shell { display: grid; grid-template-columns: 224px minmax(0, 1fr); align-items: start; gap: clamp(24px, 3vw, 40px); }
.em-account-shell--guest { grid-template-columns: minmax(0, 1fr); max-width: 1040px; margin-inline: auto; }
.em-account-main { min-width: 0; }
.em-account-nav { min-width: 0; padding: 12px; border: 1px solid var(--em-line); border-radius: var(--em-radius-panel); background: var(--em-paper); }
.em-account-nav__profile { display: flex; align-items: center; gap: 12px; margin: 0 4px 12px; padding: 14px 4px 22px; border-bottom: 1px solid var(--em-line); }
.em-account-nav__avatar, .em-section-icon, .em-empty-state__icon { display: inline-grid; flex: 0 0 46px; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: var(--em-highlight); color: var(--em-accent-hover); }
.em-account-nav__profile > div { min-width: 0; }
.em-account-nav__profile span:not(.em-account-nav__avatar) { display: block; color: var(--em-text-muted); font-size: 12px; line-height: 1.5; }
.em-account-nav__profile strong { display: block; margin-top: 3px; color: var(--em-ink-strong); font-size: 15px; overflow-wrap: anywhere; }
.em-account-nav__links { display: grid; gap: 4px; }
.em-account-nav__links a { display: flex; align-items: center; gap: 11px; min-height: 46px; padding: 11px 12px; border-radius: 8px; color: var(--em-text-muted); font-size: 13px; font-weight: 600; line-height: 1.45; text-decoration: none; }
.em-account-nav__links a .em-icon { flex-shrink: 0; }
.em-account-nav__links a:hover { background: var(--em-canvas); color: var(--em-ink-strong); }
.em-account-nav__links a[aria-current="page"] { background: var(--em-highlight); color: var(--em-accent-hover); font-weight: 750; }
.em-account-nav__links a[aria-current="page"]::after { content: ""; flex: 0 0 5px; width: 5px; height: 5px; margin-left: auto; border-radius: 50%; background: currentColor; }
.em-account-nav__links .em-account-nav__logout { margin-top: 10px; border-top: 1px solid var(--em-line); border-radius: 0 0 8px 8px; }
.em-account-nav__help { display: grid; gap: 6px; margin: 12px 4px 0; padding: 18px 8px 10px; border-top: 1px solid var(--em-line); font-size: 12px; }
.em-account-nav__help > span { color: var(--em-text-muted); }
.em-account-nav__help a { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; color: var(--em-accent-hover); font-weight: 650; }

/* Dashboard. No synthetic totals or extra calls: each tile opens its native page. */
.em-account-welcome { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 32px; border: 1px solid #bcdde2; border-radius: var(--em-radius-panel); background: var(--em-highlight); }
.em-account-welcome h2 { margin: 0 0 10px; font-size: clamp(22px, 2.2vw, 29px); line-height: 1.2; letter-spacing: -.025em; }
.em-account-welcome p:last-child { max-width: 53ch; margin: 0; color: var(--em-text-muted); font-size: 14px; line-height: 1.7; }
.em-account-welcome__icon { display: grid; flex: 0 0 88px; place-items: center; width: 88px; height: 88px; border: 1px solid #bedfe4; border-radius: 24px; color: var(--em-accent-hover); background: rgba(255,255,255,.5); transform: rotate(-6deg); }
.em-account-welcome__icon svg { transform: rotate(6deg); }
.em-account-grid, .em-account-modules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.em-account-link { display: grid; grid-template-columns: 44px minmax(0, 1fr) 18px; align-items: center; gap: 13px; min-height: 116px; padding: 20px; border: 1px solid var(--em-line); border-radius: var(--em-radius-card); background: var(--em-paper); color: var(--em-ink); text-decoration: none; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.em-account-link:hover { border-color: #8dbbc5; color: var(--em-ink-strong); box-shadow: var(--em-shadow-soft); transform: translateY(-2px); }
.em-account-link__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 11px; background: var(--em-canvas); color: var(--em-accent-hover); }
.em-account-link__copy { display: grid; gap: 6px; min-width: 0; }
.em-account-link__copy strong { font-size: 15px; line-height: 1.3; }
.em-account-link__copy small { color: var(--em-text-muted); font-size: 12px; line-height: 1.55; }
.em-account-link__arrow { color: var(--em-accent); }
.em-account-modules { margin-top: 14px; }
.em-account-modules:empty { display: none; }
.em-account-modules > [class*="col-"] { width: auto; max-width: none; margin: 0; padding: 0; float: none; }
.em-account-modules > a, .em-account-modules > [class*="col-"] > a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 80px; padding: 20px; border: 1px solid var(--em-line); border-radius: var(--em-radius-card); background: var(--em-paper); color: var(--em-ink); font-size: 14px; font-weight: 650; text-transform: none; text-decoration: none; }
.em-account-modules > a:hover, .em-account-modules > [class*="col-"] > a:hover { border-color: #8dbbc5; }
.em-account-modules .link-item { display: flex; align-items: center; gap: 10px; }
.em-account-modules .link-item .material-icons { flex-shrink: 0; color: var(--em-accent-hover); font-size: 22px; }
.em-account-support { display: flex; align-items: center; gap: 16px; margin-top: 28px; padding: 22px; border: 1px solid var(--em-line); border-radius: var(--em-radius-card); background: var(--em-paper); }
.em-account-support > div { flex: 1; min-width: 0; }
.em-account-support h2 { margin: 0 0 6px; font-size: 16px; }
.em-account-support p { margin: 0; color: var(--em-text-muted); font-size: 13px; line-height: 1.6; }
.em-account-support .btn { flex-shrink: 0; }

/* Common cards and form panels. Specificity deliberately beats the parent .box. */
#main.em-customer-page #content .em-surface,
#main.em-customer-page #content .em-account-panel {
  min-width: 0;
  padding: clamp(20px, 2.7vw, 30px);
  margin: 0 0 20px;
  border: 1px solid var(--em-line);
  border-radius: var(--em-radius-panel);
  background: var(--em-paper);
  box-shadow: none;
  color: var(--em-ink);
}
#main.em-customer-page #content .em-form-panel { max-width: 820px; }
.em-form-intro { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--em-line); }
.em-form-intro > div { min-width: 0; }
.em-form-intro h2, .em-panel-heading h2 { margin: 0 0 8px; font-size: 20px; line-height: 1.3; }
.em-form-intro p, .em-panel-heading p { margin: 0; color: var(--em-text-muted); font-size: 13px; line-height: 1.6; }
.em-panel-heading { margin-bottom: 24px; }
.em-guest-conversion { margin-top: 24px; }

/* Native field names, wrappers, hooks and submit buttons are retained. */
.em-auth-page .form-group.row, .em-customer-page .form-group.row, .em-contact-page .form-group.row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 7px;
  margin: 0 0 20px;
}
.em-auth-page .form-group.row::before, .em-auth-page .form-group.row::after,
.em-customer-page .form-group.row::before, .em-customer-page .form-group.row::after,
.em-contact-page .form-group.row::before, .em-contact-page .form-group.row::after { display: none; }
.em-auth-page .form-group.row > [class*="col-"],
.em-customer-page .form-group.row > [class*="col-"],
.em-contact-page .form-group.row > [class*="col-"] { width: 100%; max-width: none; min-width: 0; min-height: 0; margin: 0; padding: 0; float: none; }
.em-auth-page .form-control-label, .em-customer-page .form-control-label,
.em-contact-page .form-control-label { margin: 0; padding-top: 0; color: var(--em-ink); font-size: 13px; font-weight: 650; text-align: left; line-height: 1.5; }
.em-required { color: var(--em-accent-hover); }
.em-auth-page .form-control, .em-customer-page .form-control,
.em-contact-page .form-control { width: 100%; min-width: 0; max-width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid #b9c8cc; border-radius: var(--em-radius-control); background-color: #fff; color: var(--em-ink); font-family: var(--sans); font-size: 16px; line-height: 1.4; box-shadow: none; }
.em-auth-page .form-control::placeholder, .em-customer-page .form-control::placeholder,
.em-contact-page .form-control::placeholder { color: #6c8088; opacity: 1; }
.em-auth-page .form-control:focus, .em-customer-page .form-control:focus,
.em-contact-page .form-control:focus { border-color: var(--em-accent); outline: none; box-shadow: 0 0 0 3px rgba(0,126,158,.15); }
.em-auth-page .form-control:disabled, .em-customer-page .form-control:disabled,
.em-contact-page .form-control:disabled { background-color: var(--em-soft); color: var(--em-text-muted); cursor: not-allowed; }
.em-customer-page textarea.form-control, .em-contact-page textarea.form-control { min-height: 140px; resize: vertical; }
.em-auth-page .form-control-comment, .em-customer-page .form-control-comment,
.em-contact-page .form-control-comment { color: var(--em-text-muted); font-size: 12px; line-height: 1.5; }
.em-form-field > .form-control-comment:empty, .em-field-errors:empty { display: none; }
.em-auth-page .form-control-comment:empty, .em-customer-page .form-control-comment:empty { display: none; }
.em-auth-page .em-form-field--checkbox > .em-checkbox-spacer,
.em-customer-page .em-form-field--checkbox > .em-checkbox-spacer { display: none; }
.em-auth-page .input-group, .em-customer-page .input-group { display: flex; align-items: stretch; width: 100%; }
.em-auth-page .input-group::after, .em-customer-page .input-group::after { display: none; }
.em-auth-page .input-group.focus, .em-customer-page .input-group.focus { outline: none; }
.em-auth-page .input-group .form-control, .em-customer-page .input-group .form-control { flex: 1 1 0%; width: 1%; min-width: 0; float: none; border-radius: 8px 0 0 8px; }
.em-auth-page .input-group-btn, .em-customer-page .input-group-btn { position: static; display: flex; flex: 0 0 auto; width: auto; }
#main .em-auth-page [data-action="show-password"], #main.em-customer-page [data-action="show-password"] { min-width: 80px; min-height: 48px; margin: 0; padding: 9px 12px; border: 1px solid #b9c8cc; border-left: 0; border-radius: 0 8px 8px 0; background: var(--em-canvas); color: var(--em-ink); box-shadow: none; font-size: 12px; font-weight: 650; text-transform: none; }
#main .em-auth-page [data-action="show-password"]:hover, #main.em-customer-page [data-action="show-password"]:hover { background: var(--em-highlight); }
.em-auth-page .em-birthday-fields, .em-customer-page .em-birthday-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.em-birthday-fields br { display: none; }
.em-auth-page .em-form-field--radio-buttons .js-input-column,
.em-customer-page .em-form-field--radio-buttons .js-input-column { display: flex; flex-wrap: wrap; gap: 10px 22px; }
#main .em-auth-page .radio-inline, #main.em-customer-page .radio-inline { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; margin: 0; padding: 0; color: var(--em-ink); font-size: 14px; font-weight: 400; }
#main .em-auth-page .custom-radio, #main.em-customer-page .custom-radio { width: 20px; height: 20px; margin: 0; border: 0; background: transparent; }
#main .em-auth-page .custom-radio input[type="radio"], #main.em-customer-page .custom-radio input[type="radio"] { position: static; opacity: 1; width: 20px; height: 20px; margin: 0; appearance: auto; accent-color: var(--em-accent); }
#main .em-auth-page .custom-radio > span, #main.em-customer-page .custom-radio > span { display: none; }
#main .em-auth-page .custom-checkbox, #main.em-customer-page .custom-checkbox { display: block; margin: 0; }
#main .em-auth-page .custom-checkbox > label, #main.em-customer-page .custom-checkbox > label { display: grid; grid-template-columns: 20px minmax(0, 1fr); align-items: start; gap: 11px; min-height: 24px; margin: 0; padding: 0; color: var(--em-text-muted); font-size: 13px; font-weight: 400; line-height: 1.65; }
#main .em-auth-page .custom-checkbox input[type="checkbox"], #main.em-customer-page .custom-checkbox input[type="checkbox"] { position: static; opacity: 1; width: 20px; height: 20px; margin: 2px 0 0; cursor: pointer; appearance: auto; accent-color: var(--em-accent); }
#main .em-auth-page .custom-checkbox input + span, #main.em-customer-page .custom-checkbox input + span { display: none; }
#main .em-auth-page .custom-checkbox .em-checkbox-copy, #main.em-customer-page .custom-checkbox .em-checkbox-copy { display: block; width: auto; height: auto; margin: 0; border: 0; background: transparent; color: inherit; line-height: inherit; }
.em-checkbox-copy p { margin: 0; font-size: inherit; line-height: inherit; }
.em-checkbox-copy a { color: var(--em-accent-hover); text-decoration: underline; }
.em-customer-page input[type="checkbox"] { accent-color: var(--em-accent); }
.em-auth-page .form-footer, .em-customer-page .form-footer, .em-contact-page .form-footer { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 26px; text-align: left; }
.em-auth-page .form-footer::after, .em-customer-page .form-footer::after,
.em-contact-page .form-footer::after { display: none; }
.em-auth-page .form-control-submit { width: 100%; min-height: 48px; }
.em-customer-page .form-control-submit { float: none !important; min-height: 48px; }
.em-form-cancel { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 12px; color: var(--em-text-muted); font-size: 13px; font-weight: 650; }
.em-auth-page .btn, .em-customer-page .btn, .em-contact-page .btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; height: auto; padding: 12px 19px; border-width: 1px; border-style: solid; border-radius: var(--em-radius-control); box-shadow: none; font-family: var(--sans); font-size: 14px; font-weight: 650; line-height: 1.4; text-align: center; text-transform: none; white-space: normal; }
.em-auth-page .btn-secondary, .em-customer-page .btn-secondary, .em-contact-page .btn-secondary { border-color: #b9c8cc; background: #fff; color: var(--em-ink); }
.em-auth-page .btn-secondary:hover, .em-customer-page .btn-secondary:hover, .em-contact-page .btn-secondary:hover { border-color: var(--em-accent); background: var(--em-highlight); color: var(--em-accent-hover); }
.em-auth-page .btn:disabled, .em-customer-page .btn:disabled, .em-contact-page .btn:disabled { cursor: not-allowed; opacity: .6; }
.em-auth-page .password-strength-feedback, .em-customer-page .password-strength-feedback { margin-top: 12px; font-size: 12px; line-height: 1.6; }
.em-auth-page .password-requirements p, .em-customer-page .password-requirements p { margin: 8px 0 0; }
.em-auth-page .password-strength-feedback .progress, .em-customer-page .password-strength-feedback .progress { height: 5px; border-radius: 5px; }
.em-auth-page .has-error .form-control, .em-customer-page .has-error .form-control,
.em-contact-page .has-error .form-control, .em-auth-page [aria-invalid="true"],
.em-customer-page [aria-invalid="true"] { border-color: #b34135; }
.em-auth-page .help-block, .em-customer-page .help-block, .em-contact-page .help-block { margin: 7px 0 0; font-size: 13px; line-height: 1.55; }
.em-auth-page .help-block ul, .em-customer-page .help-block ul, .em-contact-page .help-block ul { margin: 0; padding: 0; list-style: none; }
.em-auth-page .alert, .em-customer-page .alert, .em-contact-page .alert { margin: 0 0 16px; padding: 14px 16px; border: 1px solid transparent; border-radius: 10px; font-size: 13px; line-height: 1.65; }
.em-auth-page .help-block .alert, .em-customer-page .help-block .alert { margin-bottom: 6px; padding: 9px 12px; }
.em-auth-page .alert-danger, .em-customer-page .alert-danger, .em-contact-page .alert-danger { border-color: #e8c2bd; background: #fff1ef; color: #8b3026; }
.em-auth-page .alert-success, .em-customer-page .alert-success, .em-contact-page .alert-success { border-color: #b7d7c4; background: #edf7f1; color: #23563c; }
.em-auth-page .alert-info, .em-customer-page .alert-info, .em-contact-page .alert-info { border-color: #bcdde2; background: #edf7f9; color: #215568; }
.em-auth-page .alert-warning, .em-customer-page .alert-warning, .em-contact-page .alert-warning { border-color: #e7d3a5; background: #fff8e8; color: #71551c; }
.em-customer-content .notifications-container { width: 100%; max-width: none; padding: 0; }
.em-customer-content #notifications ul { margin: 0; padding: 0; list-style: none; }

/* Addresses. */
.em-address-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
#main.em-customer-page .em-address-card { display: flex; flex-direction: column; min-width: 0; min-height: 250px; margin: 0; overflow: hidden; border: 1px solid var(--em-line); border-radius: var(--em-radius-panel); background: var(--em-paper); }
#main.em-customer-page .em-address-card .address-body { flex: 1; padding: 24px; }
.em-address-card .address-body h2 { margin: 0 0 16px; color: var(--em-ink-strong); font-size: 18px; }
#main.em-customer-page .em-address-card address { min-height: 0; margin: 0; color: var(--em-text-muted); font-size: 14px; font-style: normal; line-height: 1.8; overflow-wrap: anywhere; }
#main.em-customer-page .em-address-card .address-footer { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 10px 14px; border-top: 1px solid var(--em-line); background: var(--em-canvas); }
#main.em-customer-page .em-address-card .address-footer a { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; margin: 0; padding: 8px 10px; color: var(--em-accent-hover); font-size: 13px; font-weight: 650; }
#main.em-customer-page .em-address-card .address-footer a span { margin: 0; font-size: inherit; }
#main.em-customer-page .em-address-card .address-footer .em-address-delete { color: #a13e31; }
.em-empty-state { display: grid; justify-items: center; min-width: 0; padding: clamp(32px, 5vw, 58px) 24px; border: 1px solid var(--em-line); border-radius: var(--em-radius-panel); background: var(--em-paper); text-align: center; }
.em-empty-state__icon { width: 58px; height: 58px; border-radius: 17px; }
.em-empty-state h2 { max-width: 28ch; margin: 20px 0 12px; font-size: 23px; line-height: 1.25; }
.em-empty-state p { max-width: 48ch; margin: 0 0 24px; color: var(--em-text-muted); font-size: 14px; line-height: 1.7; }

/* Lists, documents, order details and returns. Overflow belongs to the table. */
.em-table-wrap { max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: thin; scrollbar-color: #93b0b8 var(--em-canvas); }
#main.em-customer-page #content .em-table-wrap.em-surface { padding: 0; }
#main.em-customer-page .table { width: 100%; min-width: 520px; margin: 0; border: 0; border-collapse: collapse; background: transparent; color: var(--em-ink); font-size: 13px; }
#main.em-customer-page .table th, #main.em-customer-page .table td { padding: 15px 17px; border: 0; border-bottom: 1px solid var(--em-line); background: transparent; vertical-align: middle; text-align: left; line-height: 1.6; }
#main.em-customer-page .table thead th { background: var(--em-canvas); color: var(--em-text-muted); font-size: 11px; font-weight: 700; letter-spacing: .025em; text-transform: uppercase; }
#main.em-customer-page .table tbody tr:nth-of-type(odd) { background: transparent; }
#main.em-customer-page .table tbody tr:hover { background: #f8fbfb; }
#main.em-customer-page .table tr:last-child > td, #main.em-customer-page .table tr:last-child > th { border-bottom: 0; }
#main.em-customer-page .table tfoot { border-top: 1px solid var(--em-line); background: var(--em-canvas); }
#main.em-customer-page .table tfoot td { padding-block: 10px; }
#main.em-customer-page .table .text-xs-right, #main.em-customer-page .table .text-xs-right td { text-align: right; }
#main.em-customer-page .table a { color: var(--em-accent-hover); font-weight: 650; }
#main.em-customer-page #content .order-actions a { display: flex; align-items: center; min-height: 36px; padding: 5px 0; white-space: normal; }
.em-customer-page .em-document-link { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; color: var(--em-accent-hover); font-weight: 650; }
.em-customer-page .em-document-link .em-icon { flex-shrink: 0; }
#main.em-customer-page .label-pill { display: inline-block; max-width: 100%; margin: 0; padding: 5px 9px; border-radius: 6px; font-size: 11px; font-weight: 650; line-height: 1.5; white-space: normal; }
.em-status { display: inline-flex; max-width: 100%; padding: 5px 9px; border-radius: 6px; background: var(--em-highlight); color: var(--em-accent-hover); font-size: 12px; font-weight: 650; line-height: 1.5; }
.em-voucher-code { display: inline-block; padding: 5px 9px; border: 1px dashed #9ebfc7; border-radius: 6px; background: var(--em-highlight); color: var(--em-ink-strong); font-family: var(--sans); font-size: 13px; font-weight: 750; letter-spacing: .035em; overflow-wrap: anywhere; }
#main.em-customer-page .em-record-list { margin: 0; }
#main.em-customer-page #content .em-record-card, #main.em-customer-page #content .em-order-card { padding: 22px; }
.em-order-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.em-order-card__head > div { min-width: 0; }
.em-order-card__head h2 { margin: 0 0 6px; font-size: 20px; line-height: 1.3; overflow-wrap: anywhere; }
.em-order-card__head p { margin: 0; color: var(--em-text-muted); font-size: 13px; line-height: 1.6; }
.em-order-card__head .total { flex-shrink: 0; font-size: 17px; }
.em-customer-page .em-surface > h2, .em-record-card > h2, .em-surface > form > header h2 { margin: 0 0 20px; font-size: 20px; line-height: 1.3; }
.em-customer-page .em-surface > p { color: var(--em-text-muted); font-size: 14px; line-height: 1.7; }
.em-order-meta, #order-infos .em-order-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 20px 0 0; padding: 20px 0 0; border-top: 1px solid var(--em-line); list-style: none; }
.em-order-meta li { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; margin: 0; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.em-order-meta li > strong { color: var(--em-text-muted); font-size: 11px; font-weight: 600; }
.em-order-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 22px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--em-line); }
.em-order-actions a { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; color: var(--em-accent-hover); font-size: 13px; font-weight: 650; }
.em-order-summary .em-order-actions { margin-top: 14px; padding-top: 8px; border: 0; }
#main.em-customer-page .em-order-addresses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 20px; margin: 0 0 20px; }
.em-order-addresses > [class*="col-"] { float: none; width: auto; max-width: none; min-width: 0; padding: 0; }
.em-order-addresses > .clearfix { display: none; }
#main.em-customer-page #content .em-order-addresses .em-surface { height: 100%; margin: 0; }
.em-order-addresses address { margin: 0; color: var(--em-text-muted); font-size: 14px; font-style: normal; line-height: 1.8; overflow-wrap: anywhere; }
.em-address-alias { font-size: 13px; font-weight: 650; }
.em-customer-page .em-inline-help { margin: 16px 0 0; padding: 14px 16px; border-radius: 8px; background: var(--em-canvas); color: var(--em-text-muted); font-size: 13px; line-height: 1.7; }
.em-inline-help p { margin: 0 0 6px; }
.em-customer-page .em-order-message { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 20px; margin: 0; padding: 18px 0; border-bottom: 1px solid var(--em-line); font-size: 14px; line-height: 1.7; }
.em-order-message > [class*="col-"] { float: none; width: auto; min-width: 0; padding: 0; margin: 0; overflow-wrap: anywhere; }
.em-order-message__meta { color: var(--em-text-muted); font-size: 12px; }
.em-order-message__text { white-space: pre-line; }
.em-order-message.row::before, .em-order-message.row::after { display: none; }
.em-surface .form-fields { margin-top: 20px; }
.em-customer-page .history-line { display: grid; grid-template-columns: minmax(80px, .6fr) minmax(0, 1fr); align-items: center; gap: 12px; padding: 14px 0; }
.em-customer-page .history-line .date { color: var(--em-text-muted); font-size: 12px; }
.em-customer-page .shipping-line + .shipping-line { margin-top: 20px; }
.em-customer-page .shipping-line:first-child .em-order-meta { margin-top: 0; padding-top: 0; border: 0; }
#main.em-customer-page #order-products.return { margin-bottom: 0; }
#main.em-customer-page #order-products.return .qty { min-width: 140px; }
#main.em-customer-page #order-products.return .qty .select { margin: 0; }
.em-customer-page .order-items .order-item { padding: 20px; }
.em-customer-page .order-items .order-item > .row { display: flex; align-items: flex-start; gap: 10px; margin: 0; }
#main.em-customer-page .order-items .order-item .checkbox { width: 20px; min-width: 20px; padding: 0; float: none; }
#main.em-customer-page .order-items .order-item .checkbox input { width: 18px; height: 18px; margin-top: 4px; }
#main.em-customer-page .order-items .order-item .content { width: auto; min-width: 0; flex: 1; padding: 0; float: none; }
.em-customer-page .order-items .order-item .content > .row { margin: 0; }
.em-customer-page .order-items .desc, .em-customer-page .order-items .qty { width: 100%; float: none; padding: 0; }
.em-customer-page .order-items .name { color: var(--em-ink-strong); font-size: 14px; }
.em-customer-page .order-items .ref { color: var(--em-text-muted); font-size: 12px; }
.em-customer-page .order-items .order-totals { padding: 20px; background: var(--em-canvas); }
.em-customer-page .return-details { color: var(--em-text-muted); line-height: 1.7; }

/* Supporting contact view uses the same fields and buttons. */
.em-contact-aside h2 { margin: 0 0 16px; color: #fff; font-size: 25px; line-height: 1.3; }
.em-contact-native { margin-top: 28px; }
.em-contact-native:empty { display: none; }
.em-contact-native, .em-contact-native a, .em-contact-native h2,
.em-contact-native h3, .em-contact-native .h2, .em-contact-native .h3, .em-contact-native .h4 { color: #fff; }
.em-contact-native ul { margin: 0; padding: 0; list-style: none; }
.em-contact-native li { margin: 8px 0; color: #d0e0e5; line-height: 1.65; }
.em-contact-page .contact-form { width: 100%; padding: 0; background: transparent; }
.em-contact-page .contact-form h3 { display: none; }
.em-contact-page input[type="file"] { width: 100%; min-height: 48px; padding: 10px; border: 1px dashed #aebfbe; border-radius: 8px; background: var(--em-canvas); font-size: 13px; }
.em-contact-page .form-footer .btn { min-width: 180px; }
.em-contact-page .form-fields > .row { margin-inline: 0; }
.em-contact-page .form-fields > .row > [class*="col-"] { width: 100%; padding: 0; }

.em-customer-footer, .em-account-footer { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; margin-top: 26px; }
.em-customer-footer .account-link, .em-account-footer .account-link,
.em-account-signout a { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; margin: 0; padding: 8px 0; color: var(--em-text-muted); font-size: 13px; font-weight: 600; }
.em-customer-footer .account-link:hover, .em-account-signout a:hover { color: var(--em-accent-hover); }
.em-account-signout { margin-left: auto; }
.em-auth-page a:focus-visible, .em-customer-page a:focus-visible, .em-contact-page a:focus-visible,
.em-auth-page button:focus-visible, .em-customer-page button:focus-visible, .em-contact-page button:focus-visible,
.em-account-nav__links a:focus-visible, .em-table-wrap:focus-visible { outline: 3px solid var(--em-accent); outline-offset: 3px; }
.em-auth-intro a:focus-visible, .em-contact-aside a:focus-visible { outline-color: #8edce8; }

@media (max-width: 1099px) {
  .em-account-shell { grid-template-columns: 202px minmax(0, 1fr); gap: 24px; }
  .em-account-shell--guest { grid-template-columns: minmax(0, 1fr); }
  .em-account-link { grid-template-columns: 38px minmax(0, 1fr) 16px; gap: 10px; padding: 17px; }
  .em-account-link__icon { width: 38px; height: 38px; }
  .em-account-support { flex-wrap: wrap; }
  .em-account-support .btn { margin-left: 62px; }
}
@media (max-width: 899px) {
  .em-account-shell { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .em-account-nav { padding: 6px; border-radius: 12px; }
  .em-account-nav__profile, .em-account-nav__help { display: none; }
  .em-account-nav__links { display: flex; gap: 4px; padding: 3px; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: thin; }
  .em-account-nav__links a { flex: 0 0 auto; padding: 10px 12px; white-space: nowrap; }
  .em-account-nav__links a[aria-current="page"]::after { display: none; }
  .em-account-nav__links .em-account-nav__logout { margin: 0 0 0 4px; border: 0; border-left: 1px solid var(--em-line); border-radius: 0 8px 8px 0; }
  .em-customer-heading h1 { font-size: 34px; }
  .em-auth-intro, .em-contact-aside { padding: 30px; }
  .em-auth-panel, .em-contact-form { padding: 30px; }
  .em-auth-layout, .em-contact-layout { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
  .em-auth-intro h1 { font-size: 34px; }
  .em-service-points { gap: 15px; }
}
@media (max-width: 719px) {
  .em-auth-layout, .em-contact-layout { grid-template-columns: minmax(0, 1fr); border-radius: 16px; }
  .em-auth-intro, .em-contact-aside { padding: 27px 24px; }
  .em-auth-intro::before, .em-contact-aside::before { margin-bottom: 20px; }
  .em-auth-intro h1 { max-width: 22ch; font-size: 32px; }
  .em-auth-intro > p:not(.em-service-eyebrow) { margin-top: 12px; font-size: 14px; line-height: 1.65; }
  .em-auth-intro .em-service-points { display: none; }
  .em-auth-intro .em-auth-back { margin-top: 14px; }
  .em-auth-panel, .em-contact-form { padding: 28px 24px; }
  .em-auth-panel > header h2 { font-size: 23px; }
  .em-service-heading--with-action { align-items: stretch; flex-direction: column; gap: 18px; }
  .em-customer-heading h1 { font-size: 30px; }
  .em-customer-description { font-size: 14px; }
  .em-account-welcome { padding: 25px; }
  .em-account-welcome__icon { flex-basis: 60px; width: 60px; height: 60px; border-radius: 17px; }
  .em-account-welcome__icon svg { width: 34px; height: 34px; }
  .em-account-grid, .em-account-modules, .em-address-grid { grid-template-columns: minmax(0, 1fr); }
  .em-account-link { grid-template-columns: 44px minmax(0, 1fr) 20px; gap: 14px; min-height: 103px; padding: 20px; }
  .em-account-link__icon { width: 44px; height: 44px; }
  .em-account-support { align-items: flex-start; }
  .em-account-support .btn { width: 100%; margin-left: 0; }
  .em-account-welcome h2 { font-size: 25px; }
  .em-form-intro { gap: 12px; margin-bottom: 24px; padding-bottom: 20px; }
  .em-form-intro h2 { font-size: 18px; }
  .em-order-card__head { flex-wrap: wrap; }
  .em-order-meta, #order-infos .em-order-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #main.em-customer-page .em-order-addresses { grid-template-columns: minmax(0, 1fr); }
  .em-customer-page .em-order-message { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .em-customer-page .form-footer .form-control-submit { width: 100%; }
  .em-customer-page .form-footer .em-form-cancel { width: 100%; }
  .em-customer-heading__actions .btn, .em-contact-page .form-footer .btn { width: 100%; }
  .em-customer-footer { gap: 8px 20px; }
}
@media (max-width: 389px) {
  .em-auth-intro, .em-auth-panel, .em-contact-aside, .em-contact-form { padding-inline: 19px; }
  .em-auth-intro h1 { font-size: 29px; }
  .em-account-welcome { padding: 22px; }
  .em-account-welcome__icon { display: none; }
  .em-account-link { padding: 17px; gap: 11px; }
  .em-customer-page .em-birthday-fields, .em-auth-page .em-birthday-fields { grid-template-columns: minmax(0, 1fr); }
  .em-order-meta, #order-infos .em-order-meta { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .em-empty-state { padding-inline: 20px; }
  .em-empty-state h2 { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  .em-account-link { transition: none; }
  .em-account-link:hover { transform: none; }
}
@media print {
  .em-account-nav, .em-customer-footer, .em-order-actions, .em-order-message-form { display: none; }
  .em-account-shell { display: block; }
  #main.em-customer-page #content .em-surface { break-inside: avoid; box-shadow: none; }
  .em-table-wrap { overflow: visible; }
}
