.wcob-customer-dashboard {
  --wcob-customer-gap: 1rem;
  --wcob-customer-border: rgba(17, 24, 39, .14);
  --wcob-customer-muted: rgba(17, 24, 39, .68);
  min-width: 0;
  color: inherit;
}

.wcob-customer-dashboard *,
.wcob-customer-dashboard *::before,
.wcob-customer-dashboard *::after { box-sizing: border-box; }

.wcob-customer-dashboard__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1rem;
}

.wcob-customer-dashboard__header h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
}

.wcob-customer-dashboard__notice:empty { display: none; }
.wcob-customer-dashboard__notice {
  margin: 0 0 1rem;
  padding: .75rem 1rem;
  border: 1px solid currentColor;
  border-radius: .5rem;
}
.wcob-customer-dashboard__notice.is-error { font-weight: 600; }

.wcob-customer-grid,
.wcob-location-list,
.wcob-favourite-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: var(--wcob-customer-gap);
}

.wcob-customer-card,
.wcob-order-row,
.wcob-download-row,
.wcob-location-editor {
  position: relative;
  padding: 1rem;
  border: 1px solid var(--wcob-customer-border);
  border-radius: .75rem;
  background: var(--wcob-surface, #fff);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
}

.wcob-customer-card h3,
.wcob-location-editor h3 { margin: .1rem 0 .75rem; font-size: 1.05rem; }
.wcob-customer-card p { margin: .45rem 0; }
.wcob-customer-card img { display: block; width: 100%; height: auto; border-radius: .5rem; }

.wcob-customer-actions,
.wcob-list-actions,
.wcob-order-tabs,
.wcob-workspace-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .65rem;
}

.wcob-customer-actions a,
.wcob-customer-actions button,
.wcob-list-actions button,
.wcob-order-tabs button,
.wcob-workspace-tabs button,
.wcob-icon-button {
  min-height: 44px;
  min-width: 44px;
}

.wcob-order-tabs,
.wcob-workspace-tabs {
  margin: 0 0 1rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--wcob-customer-border);
}

.wcob-order-tabs button[aria-pressed="true"],
.wcob-workspace-tabs button[aria-selected="true"] {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: .3em;
}

.wcob-list-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(10rem, 1fr)) auto auto;
  align-items: end;
  gap: .75rem;
  margin: 0 0 1rem;
  padding: 1rem;
  border: 1px solid var(--wcob-customer-border);
  border-radius: .75rem;
  background: rgba(127, 127, 127, .04);
}

.wcob-list-filters label,
.wcob-account-form label,
.wcob-action-dialog label {
  display: grid;
  gap: .35rem;
  font-weight: 600;
}

.wcob-list-filters input,
.wcob-list-filters select,
.wcob-account-form input,
.wcob-location-editor input,
.wcob-action-dialog input,
.wcob-action-dialog select {
  width: 100%;
  min-height: 44px;
}

.wcob-list-actions {
  justify-content: flex-end;
  margin: 0 0 1rem;
}

.wcob-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .55rem .85rem;
}

.wcob-icon-button::before { font-size: 1.1em; line-height: 1; }
.wcob-icon-button[data-wcob-action="print"]::before { content: "\2399"; }
.wcob-icon-button[data-wcob-action="download"]::before { content: "\21E9"; }
.wcob-icon-button[data-wcob-action="email"]::before { content: "\2709"; }

.wcob-order-list,
.wcob-download-list { display: grid; gap: .75rem; }

.wcob-order-row,
.wcob-download-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: .75rem;
}

.wcob-order-status { font-weight: 600; }
.wcob-download-row > :last-child { display: grid; justify-items: end; gap: .5rem; }

.wcob-record-select {
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
  min-width: 32px;
  padding-top: .15rem;
}
.wcob-record-select input { width: 20px; height: 20px; margin: 0; }

.wcob-customer-empty {
  padding: 2rem 1rem;
  text-align: center;
  border: 1px dashed rgba(0, 0, 0, .25);
  border-radius: .75rem;
}
.wcob-customer-loading { opacity: .75; }

.wcob-address-workspace > [data-wcob-address-panel] { min-width: 0; }
.wcob-address-workspace > [data-wcob-address-panel][hidden] { display: none !important; }
.wcob-map-location-root { min-height: 18rem; }

.wcob-account-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  max-width: 56rem;
}
.wcob-account-form fieldset {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 1rem;
  border: 1px solid var(--wcob-customer-border);
  border-radius: .75rem;
}
.wcob-account-form > button { justify-self: start; }
.wcob-account-logout { min-height: 44px; display: inline-flex; align-items: center; }

.wcob-customer-dialog {
  width: min(48rem, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  overflow: auto;
  border: 0;
  border-radius: .75rem;
  padding: 0;
  box-shadow: 0 1.25rem 4rem rgba(0, 0, 0, .28);
}
.wcob-customer-dialog::backdrop { background: rgba(0, 0, 0, .55); }
.wcob-customer-dialog__body { position: relative; display: grid; gap: 1rem; padding: 1.25rem; }
.wcob-customer-dialog__body h2 { margin: 0; padding-right: 3rem; }
.wcob-customer-dialog__body fieldset {
  display: grid;
  gap: .55rem;
  margin: 0;
  padding: .85rem 1rem;
  border: 1px solid var(--wcob-customer-border);
  border-radius: .6rem;
}
.wcob-customer-dialog__body fieldset label { display: flex; grid-template-columns: auto 1fr; align-items: center; gap: .55rem; font-weight: 400; }
.wcob-customer-dialog__body fieldset input { width: auto; min-height: 0; }
.wcob-dialog-close {
  position: absolute;
  top: .75rem;
  right: .75rem;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
}

.wcob-customer-timeline { display: grid; gap: .5rem; list-style: none; padding: 0; }
.wcob-customer-timeline li { padding: .65rem; border-left: 3px solid rgba(0, 0, 0, .2); }
.wcob-customer-timeline li.is-complete { border-left-color: currentColor; font-weight: 600; }

.wcob-customer-dashboard :focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .wcob-list-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wcob-account-form fieldset { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .wcob-order-row,
  .wcob-download-row { grid-template-columns: auto minmax(0, 1fr); }
  .wcob-order-row > :last-child,
  .wcob-download-row > :last-child { grid-column: 2; justify-items: start; }
  .wcob-customer-dashboard__header { align-items: flex-start; }
  .wcob-account-form { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .wcob-list-filters { grid-template-columns: 1fr; }
  .wcob-list-actions { justify-content: flex-start; }
  .wcob-order-tabs button,
  .wcob-workspace-tabs button { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  .wcob-customer-dashboard *,
  .wcob-customer-dashboard *::before,
  .wcob-customer-dashboard *::after { scroll-behavior: auto !important; transition-duration: .001ms !important; animation-duration: .001ms !important; }
}
