/* Customer header owns its geometry. In particular, the shared customer-brand
   margin must not shift a vertically centered logo above the top of the page. */
#customer-view { --customer-header: 72px; }
#customer-view > header {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  grid-template-rows: auto;
  align-items: center;
  gap: 12px;
  flex: 0 0 var(--customer-header);
  width: 100%;
  height: var(--customer-header);
  min-height: var(--customer-header);
  margin: 0;
  padding: 11px max(24px, env(safe-area-inset-right, 0px)) 11px max(24px, env(safe-area-inset-left, 0px));
  border-bottom: 1px solid var(--line, #e5ddd7);
  background: #fff;
  overflow: visible;
}
#customer-view > header > .brand {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 48px;
  max-width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  line-height: 1;
  cursor: default;
}
#customer-view > header > .brand > img {
  display: block;
  width: 114px;
  max-width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
}
#customer-view > header > #customer-help,
#customer-view > header > .customer-top-back {
  grid-row: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  box-sizing: border-box;
  width: auto;
  min-width: 48px;
  height: 48px;
  min-height: 48px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid var(--line, #e5ddd7);
  border-radius: 12px;
  background: #fff8f3;
  color: var(--brand, #a7441e);
  font: inherit;
  font-size: 14px;
  font-weight: 550;
  line-height: 1.4;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
}
#customer-view > header > #customer-help { grid-column: 3; justify-self: end; }
#customer-view > header > .customer-top-back {
  grid-column: 1 / 3;
  justify-self: start;
  max-width: 100%;
}
#customer-view > header > #customer-help > .ui-icon,
#customer-view > header > .customer-top-back > .ui-icon {
  display: block;
  flex: 0 0 21px;
  width: 21px;
  height: 21px;
  margin: 0;
}
#customer-view > header > #customer-help:hover,
#customer-view > header > .customer-top-back:hover { background: var(--brand-soft, #fff1e9); border-color: var(--brand-line, #e4bdab); }
#customer-view > header > #customer-help:focus-visible,
#customer-view > header > .customer-top-back:focus-visible { outline: 2px solid var(--brand, #a7441e); outline-offset: 3px; }
@media (max-width: 700px) {
  /* The customer container already reserves the top safe-area inset. Keep that
     reservation once; --customer-header also drives the primary-screen math. */
  #customer-view { --customer-header: 64px; }
  #customer-view > header {
    height: var(--customer-header);
    min-height: var(--customer-header);
    flex-basis: var(--customer-header);
    padding: 7px max(16px, env(safe-area-inset-right, 0px)) 7px max(16px, env(safe-area-inset-left, 0px));
    gap: 10px;
  }
  #customer-view > header > .brand > img { width: 108px; }
  #customer-view > header > #customer-help { width: 48px; padding: 0; }
  /* The question-mark icon retains the existing full accessible help label. */
  #customer-view > header > #customer-help > span { display: none; }
}
