:root {
  font-family: Arial, Tahoma, sans-serif;
  color: #17344e;
  background: #f4f6f9;
  font-synthesis: none;
  --navy: #102e4f;
  --blue: #145daa;
  --orange: #f47c28;
  --teal: #087e74;
  --muted: #63768a;
  --line: #e0e7ee;
  --radius: 18px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
a {
  color: var(--blue);
  text-decoration: none;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
button,
input,
select,
textarea {
  border-radius: 10px;
}
button {
  border: 0;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #1689e7;
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: clamp(1.6rem, 2.7vw, 2.2rem);
  line-height: 1.4;
}
h2 {
  font-size: 1.22rem;
}
h3 {
  font-size: 1.05rem;
}
p {
  line-height: 1.8;
}
.muted,
small {
  color: var(--muted);
}
small {
  line-height: 1.7;
}
img {
  max-width: 100%;
}
svg {
  vertical-align: middle;
}
[hidden] {
  display: none !important;
}
.skip {
  position: fixed;
  top: -100px;
  background: white;
  padding: 16px;
  z-index: 99;
}
.skip:focus {
  top: 0;
}
.initial {
  min-height: 100dvh;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 18px;
}
.initial img {
  margin: auto;
}
.connection {
  background: #fff3d6;
  color: #6c4300;
  padding: 12px;
  text-align: center;
  font-size: 0.9rem;
  position: sticky;
  top: 0;
  z-index: 15;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
}
.brand img {
  width: 45px;
  height: 45px;
}
.brand strong {
  display: block;
  font-size: 1.15rem;
}
.brand small {
  display: block;
  font-size: 0.72rem;
  margin-top: 3px;
}
.btn {
  min-height: 46px;
  padding: 11px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 700;
  background: var(--blue);
  color: #fff;
  border: 1px solid transparent;
}
.btn:hover {
  filter: brightness(0.96);
}
.btn.secondary {
  background: #fff;
  color: var(--navy);
  border-color: var(--line);
}
.btn.soft {
  background: #e9f2fc;
  color: var(--blue);
}
.btn.orange {
  background: var(--orange);
  color: #122b43;
}
.btn.danger {
  background: #fff0f0;
  color: #a42424;
  border-color: #efcccc;
}
.btn.small {
  font-size: 0.85rem;
  min-height: 38px;
  padding: 8px 12px;
}
.icon-button {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: #f1f4f8;
  color: var(--navy);
  font-size: 1.7rem;
}
.actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.space {
  justify-content: space-between;
}
.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 10px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 99px;
  padding: 5px 11px;
  font-size: 0.77rem;
  font-weight: 700;
  background: #edf2f7;
  color: #52677a;
  white-space: nowrap;
}
.pill.green {
  background: #e3f5ec;
  color: #146744;
}
.pill.amber {
  background: #fff2d7;
  color: #84520a;
}
.pill.red {
  background: #fce9e9;
  color: #9b2f2f;
}
.pill.blue {
  background: #e8f1fd;
  color: #235f9d;
}
.auth-page {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  background: #fff;
}
.auth-story {
  background: var(--navy);
  color: #fff;
  padding: 52px clamp(28px, 6vw, 90px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 60px;
  position: relative;
  overflow: hidden;
}
.auth-story::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border: 70px solid #ffffff04;
  border-radius: 50%;
  left: -220px;
  bottom: 40px;
  pointer-events: none;
}
.auth-story .brand,
.auth-story .brand small {
  color: #fff;
}
.auth-story .eyebrow {
  color: #66d5c5;
}
.auth-story > small {
  color: #bbccdb;
}
.auth-story h1 {
  font-size: clamp(2.3rem, 3.7vw, 3.6rem);
  line-height: 1.35;
  max-width: 540px;
  margin-bottom: 22px;
}
.auth-story em {
  color: #ffb273;
  font-style: normal;
}
.auth-story p {
  color: #c3d3e1;
  max-width: 430px;
}
.story-feature {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 22px 0;
}
.story-feature b {
  width: 42px;
  height: 42px;
  border: 1px solid #ffffff20;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: #66d5c5;
}
.story-feature small {
  color: #bbccdb;
  display: block;
  margin-top: 4px;
}
.auth-form-wrap {
  padding: 40px clamp(24px, 5vw, 80px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 650px;
  width: 100%;
  margin: auto;
}
.auth-form-wrap .top-link {
  margin-bottom: 45px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}
.auth-form-wrap h2 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}
.tabs {
  display: flex;
  padding: 5px;
  border-radius: 12px;
  background: #f1f4f8;
  margin: 25px 0;
}
.tabs button {
  flex: 1;
  background: transparent;
  padding: 12px;
  font-weight: 700;
  color: var(--muted);
}
.tabs button.active {
  background: #fff;
  color: var(--blue);
  box-shadow: 0 2px 8px #18324d0c;
}
.auth-note {
  font-size: 0.8rem;
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.form-error,
.phone-error {
  padding: 12px 14px;
  border-radius: 10px;
  background: #fff0ef;
  color: #9b2f2f;
  margin-bottom: 16px;
  line-height: 1.7;
}
.full {
  width: 100%;
}
.layout {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100dvh;
}
.sidebar {
  background: #fff;
  border-left: 1px solid var(--line);
  padding: 30px 18px 20px;
  position: sticky;
  top: 0;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.sidebar .brand {
  padding: 0 8px;
}
.side-label {
  font-size: 0.72rem;
  color: #718295;
  margin: 5px 14px 12px;
}
.side-nav {
  display: grid;
  gap: 7px;
}
.side-nav button {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: right;
  padding: 13px 15px;
  background: transparent;
  color: #627388;
  min-height: 48px;
}
.side-nav button.active {
  background: #eaf2fc;
  color: var(--blue);
  font-weight: 700;
  box-shadow: inset -3px 0 var(--blue);
}
.side-nav button:hover {
  background: #f1f5fa;
}
.nav-icon {
  width: 22px;
  font-size: 1.1rem;
}
.side-bottom {
  margin-top: auto;
  background: #f4f8fb;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 16px;
}
.side-bottom p {
  font-size: 0.82rem;
  margin-bottom: 12px;
}
.side-bottom .btn {
  width: 100%;
  font-size: 0.8rem;
}
.main-area {
  min-width: 0;
}
.topbar {
  background: #fff;
  border-bottom: 1px solid var(--line);
  min-height: 84px;
  padding: 18px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.topbar .context {
  font-size: 0.82rem;
  color: var(--muted);
}
.topbar strong {
  display: block;
  margin-top: 5px;
  font-size: 0.95rem;
}
.topbar strong.mobile-brand {
  display: none;
}
.topbar > div {
  min-width: 0;
  overflow-wrap: anywhere;
}
.topbar {
  flex-wrap: wrap;
}
.topbar select {
  max-width: 260px;
  min-width: 150px;
  background: #f6f8fb;
  border: 1px solid var(--line);
  padding: 10px;
}
.avatar {
  width: 39px;
  height: 39px;
  border-radius: 12px;
  background: #e7f3ef;
  color: var(--teal);
  display: grid;
  place-items: center;
  font-weight: 700;
}
.page {
  padding: 30px 36px 60px;
  max-width: 1500px;
  margin: auto;
}
.page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}
.page-heading h1 {
  margin-bottom: 6px;
}
.page-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.hero-strip {
  background: linear-gradient(115deg, #183e65, #102c4b);
  border-radius: 20px;
  padding: 28px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  margin-bottom: 24px;
  color: #fff;
}
.hero-strip h2 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}
.hero-strip p {
  color: #c0d0df;
  font-size: 0.9rem;
  max-width: 650px;
  margin: 0;
}
.hero-mark {
  font-size: 2.8rem;
  color: #ffb273;
  flex-shrink: 0;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 26px;
}
.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 21px;
}
.stat .label {
  color: var(--muted);
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.stat strong {
  display: block;
  font-size: 2rem;
  margin: 14px 0 7px;
}
.stat small {
  font-size: 0.72rem;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 22px;
}
.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 18px;
}
.panel-heading h2 {
  margin: 0;
}
.two-col {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 22px;
}
.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}
.checklist li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #edf1f5;
}
.checklist li:last-child {
  border: 0;
}
.step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #edf3fa;
  color: var(--blue);
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  flex-shrink: 0;
}
.step-number.done {
  background: #e8f6ef;
  color: #17784d;
}
.checklist small {
  display: block;
}
.empty {
  padding: 48px 22px;
  text-align: center;
}
.empty-symbol {
  font-size: 2.4rem;
  display: block;
  margin-bottom: 14px;
  color: #7594b4;
}
.empty p {
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 470px;
  margin: 10px auto 22px;
}
.info {
  background: #edf5fd;
  color: #2f567b;
  border: 1px solid #d9e8f6;
  border-radius: 12px;
  padding: 15px 18px;
  font-size: 0.87rem;
  line-height: 1.8;
  margin-bottom: 20px;
}
.warning {
  background: #fff5df;
  border-color: #f4e2b8;
  color: #7c5519;
}
.field {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}
.field label,
.field > span {
  font-size: 0.88rem;
  font-weight: 700;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #cfdbe6;
  background: #fff;
  padding: 12px 13px;
  min-height: 46px;
  color: var(--navy);
}
.field textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.7;
}
.field small {
  font-size: 0.76rem;
}
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}
.span-2 {
  grid-column: 1/-1;
}
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  line-height: 1.8;
  margin: 14px 0;
  font-size: 0.88rem;
}
.check input {
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
  flex-shrink: 0;
  margin-top: 4px;
}
.section-title {
  margin: 26px 0 18px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.agreement {
  white-space: pre-wrap;
  max-height: 240px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px;
  font-size: 0.85rem;
  line-height: 1.9;
  background: #fafcfe;
}
.form-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  margin-top: 24px;
}
.wallet {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 14px;
}
.wallet .field {
  margin-bottom: 12px;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.toolbar .search {
  flex: 1;
  min-width: 170px;
  border: 1px solid var(--line);
  padding: 12px;
  background: #fff;
}
.toolbar select {
  border: 1px solid var(--line);
  padding: 11px;
}
.table-scroll {
  overflow: auto;
}
.data-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.87rem;
  text-align: right;
}
.data-table th {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 400;
  background: #f7f9fc;
  padding: 13px;
  white-space: nowrap;
}
.data-table td {
  padding: 16px 13px;
  border-bottom: 1px solid #edf1f5;
  vertical-align: middle;
}
.data-table tr:last-child td {
  border: 0;
}
.product-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 200px;
}
.product-cell img {
  width: 54px;
  height: 58px;
  object-fit: cover;
  border-radius: 9px;
  background: #edf2f7;
}
.product-cell small {
  display: block;
  margin-top: 4px;
}
.data-table .actions {
  flex-wrap: nowrap;
}
.pager {
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 0.8rem;
}
.image-list {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}
.image-item {
  position: relative;
}
.image-item img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.image-item button {
  position: absolute;
  top: -7px;
  left: -7px;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  background: #fff;
  color: #ad3838;
  box-shadow: 0 1px 5px #0002;
}
.upload-zone {
  border: 2px dashed #cbd9e8;
  background: #f7fafd;
  border-radius: 14px;
  padding: 22px;
  text-align: center;
}
.upload-zone input {
  max-width: 100%;
  font-size: 0.8rem;
}
.upload-zone small {
  display: block;
  margin-top: 12px;
}
.qr-wrap {
  text-align: center;
  padding: 20px;
}
.qr-wrap img {
  width: 260px;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
}
.details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.details dt {
  color: var(--muted);
  font-size: 0.8rem;
  margin-bottom: 8px;
}
.details dd {
  margin: 0;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.details .wide {
  grid-column: 1/-1;
}
dialog {
  width: min(760px, calc(100vw - 28px));
  max-height: 88dvh;
  overflow: auto;
  border: 1px solid var(--line);
  padding: 26px;
  border-radius: 20px;
  color: var(--navy);
  box-shadow: 0 24px 90px #102e4f30;
}
dialog::backdrop {
  background: #0c223b80;
  backdrop-filter: blur(3px);
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}
.dialog-head h2 {
  margin: 0;
  font-size: 1.3rem;
}
.toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100vw - 35px);
  width: max-content;
  z-index: 50;
  padding: 16px 24px;
  background: var(--navy);
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 35px #102e4f30;
  line-height: 1.7;
}
.install-steps {
  padding-inline-start: 22px;
  line-height: 2.1;
}
.mobile-brand {
  display: none;
}
.side-nav .mobile-install {
  display: none;
}
.pending {
  border-right: 4px solid #cc8a13;
}
.loading {
  padding: 55px;
  text-align: center;
  color: var(--muted);
}
.ltr {
  direction: ltr;
  text-align: right;
}
.numeric {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.export-note {
  font-size: 0.76rem;
  color: var(--muted);
  margin-top: 15px;
}
@media (min-width: 1500px) {
  .page {
    padding-top: 40px;
  }
  .layout {
    grid-template-columns: 270px minmax(0, 1fr);
  }
}
@media (max-width: 1100px) {
  .layout {
    grid-template-columns: 210px minmax(0, 1fr);
  }
  .page {
    padding: 25px 24px;
  }
  .topbar {
    padding: 16px 24px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .two-col {
    grid-template-columns: 1fr;
  }
  .sidebar {
    padding-inline: 12px;
  }
  .auth-story {
    padding: 40px;
  }
  .data-table .actions {
    flex-wrap: wrap;
  }
}
@media (max-width: 760px) {
  .side-nav .mobile-install {
    display: flex;
  }
  .topbar strong.mobile-brand {
    display: block;
  }
  .field input,
  .field select,
  .field textarea {
    font-size: 16px;
  }
  .auth-page {
    grid-template-columns: 1fr;
  }
  .auth-story {
    padding: 26px 24px;
    gap: 25px;
  }
  .auth-story h1 {
    font-size: 1.8rem;
    margin-bottom: 10px;
  }
  .auth-story p,
  .auth-story .features,
  .auth-story > small {
    display: none;
  }
  .auth-story .brand img {
    width: 36px;
    height: 36px;
  }
  .auth-form-wrap {
    padding: 28px 24px;
  }
  .auth-form-wrap .top-link {
    margin-bottom: 25px;
  }
  .layout {
    display: block;
  }
  .sidebar {
    height: auto;
    position: static;
    padding: 0;
    border: 0;
    gap: 0;
    background: var(--navy);
  }
  .sidebar > .brand,
  .sidebar > .side-bottom,
  .sidebar .side-label {
    display: none;
  }
  .side-nav {
    display: flex;
    overflow-x: auto;
    padding: 8px;
    gap: 4px;
  }
  .side-nav button {
    color: #d5e3ef;
    flex-shrink: 0;
    padding: 10px 14px;
    min-height: 44px;
    font-size: 0.8rem;
    gap: 7px;
  }
  .side-nav button.active {
    background: #ffffff1c;
    color: #fff;
    box-shadow: none;
  }
  .side-nav button:hover {
    background: #ffffff12;
  }
  .nav-icon {
    width: auto;
    font-size: 0.9rem;
  }
  .topbar {
    padding: 14px 18px;
    min-height: 78px;
  }
  .topbar select {
    max-width: 170px;
    min-width: 130px;
    font-size: 0.84rem;
  }
  .topbar .context {
    display: none;
  }
  .avatar {
    display: none;
  }
  .page {
    padding: 24px 16px 50px;
  }
  .page-heading {
    gap: 12px;
    flex-wrap: wrap;
  }
  .page-heading h1 {
    font-size: 1.55rem;
  }
  .page-heading p {
    font-size: 0.82rem;
  }
  .hero-strip {
    padding: 23px;
  }
  .hero-mark {
    display: none;
  }
  .hero-strip h2 {
    font-size: 1.12rem;
  }
  .hero-strip p {
    font-size: 0.82rem;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 16px 13px;
  }
  .stat strong {
    font-size: 1.6rem;
    margin-block: 11px 5px;
  }
  .stat .label {
    font-size: 0.74rem;
  }
  .stat small {
    font-size: 0.67rem;
  }
  .panel {
    padding: 18px;
  }
  .fields {
    grid-template-columns: 1fr;
  }
  .span-2 {
    grid-column: auto;
  }
  .data-table {
    min-width: 660px;
  }
  .details {
    grid-template-columns: 1fr;
  }
  .form-footer {
    flex-direction: column;
  }
  .form-footer .btn {
    width: 100%;
  }
  .page-heading > .btn {
    font-size: 0.85rem;
  }
  .topbar .btn {
    min-height: 38px;
    padding: 8px 11px;
    font-size: 0.75rem;
  }
  .mobile-brand {
    display: inline-flex;
    font-weight: 700;
  }
  .panel-heading {
    flex-wrap: wrap;
  }
  .dialog-head h2 {
    font-size: 1.1rem;
  }
  dialog {
    padding: 20px;
    max-height: 92dvh;
  }
  .toolbar .search {
    min-width: 100%;
    flex-basis: 100%;
  }
  .toast {
    bottom: 18px;
    font-size: 0.85rem;
    padding: 12px 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* Keep the locked content readable without adding a nested panel. */
#product-content-fields {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
#product-save-result:not(:empty) {
  padding: 12px;
  background: #eef6fa;
  border-radius: 8px;
}

.store-location {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  margin: 20px 0;
}
.store-location h3 { margin: 0 0 10px; }
.location-benefit { color: var(--navy); line-height: 1.9; }
.location-search { margin-top: 18px; }
.location-search label { display: block; margin-bottom: 8px; font-weight: 700; }
.location-search-row { display: flex; gap: 8px; }
.location-search-row input { flex: 1; min-width: 0; margin: 0; }
.location-search-row button { flex-shrink: 0; }
.location-tools { margin: 12px 0; }
.location-map { height: 330px; width: 100%; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #eef3f5; }
.location-map > .muted { padding: 24px; text-align: center; }
.location-map.leaflet-container { direction: ltr; font-family: Arial, Tahoma, sans-serif; }
.location-map .leaflet-control-zoom a { width: 44px; height: 44px; line-height: 44px; }
.location-map .leaflet-control-attribution { font-size: 11px; }
.store-map-pin { width: 28px; height: 28px; background: var(--orange); border: 4px solid white; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); box-shadow: 0 2px 8px #061d3577; }
.location-status { min-height: 3em; line-height: 1.8; margin: 12px 0; }
.location-confirm { width: 100%; margin-bottom: 20px; }
.location-results { display: grid; gap: 6px; margin-top: 8px; }
.location-result { font: inherit; text-align: start; line-height: 1.7; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; overflow-wrap: anywhere; }
.location-result:hover, .location-result:focus-visible { background: #fff5ec; outline: 2px solid var(--orange); outline-offset: 1px; }
@media (max-width: 760px) {
  .store-location { padding: 14px; }
  .location-map { height: 300px; }
  .location-tools { align-items: stretch; }
}


.merchant-banner-preview{display:flex;align-items:center;aspect-ratio:2/1;overflow:hidden;border-radius:24px;background:#123d4c;color:white;margin-bottom:24px}.merchant-banner-preview[data-color="1"]{background:#743b65}.merchant-banner-preview[data-color="2"]{background:#184e77}.merchant-banner-preview[data-color="3"]{background:#9c4221}.merchant-banner-preview img{width:48%;height:100%;object-fit:contain}.merchant-banner-copy{flex:1;min-width:0;padding:12px}.merchant-banner-copy strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font:700 clamp(18px,4vw,30px)/1.3 Arial}.merchant-banner-copy p{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin:8px 0;font:12px/1.4 Arial}.merchant-banner-copy span{font:12px/1.3 Arial;color:#ffd19b}.merchant-banner-preview[data-layout="poster"] img{width:100%;object-fit:cover}.merchant-banner-preview[data-layout="poster"] .merchant-banner-copy{display:none}


/* Public merchant education; isolated from workspace controls. */
.mg-guide { --mg-ink:#102e4f; color:var(--mg-ink); font-family:Arial,Tahoma,sans-serif; background:#f4f8f8; }
.mg-guide * { box-sizing:border-box; }
.mg-header,.mg-hero,.mg-content { max-width:1240px; margin-inline:auto; padding:28px clamp(20px,4vw,56px); }
.mg-header { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.mg-guide .btn { text-decoration:none; white-space:normal; text-align:center; }
.mg-hero { display:grid; grid-template-columns:1.15fr 1fr; align-items:center; gap:48px; padding-block:44px 60px; }
.mg-label,.mg-section-head>span { color:#16695f; font-size:14px; font-weight:700; }
.mg-hero h1 { font-size:clamp(32px,4.3vw,58px); line-height:1.25; margin:20px 0; letter-spacing:-1px; }
.mg-hero em { font-style:normal; color:#147d70; }
.mg-guide p { line-height:1.85; color:#43596a; }
.mg-hero p { font-size:18px; max-width:600px; }
.mg-actions,.mg-quick { display:flex; flex-wrap:wrap; gap:12px; align-items:center; }
.mg-guide small { display:block; line-height:1.8; margin-top:14px; color:#526675; }
.mg-visual { background:var(--mg-ink); color:#fff; border-radius:32px; padding:32px 22px; text-align:center; box-shadow:0 22px 60px #102e4f18; }
.mg-visual>b { display:block; font-size:30px; padding:30px 0; color:#8de1d2; }
.mg-visual>span,.mg-visual>div>span { display:block; padding:16px 10px; border:1px solid #557185; border-radius:16px; background:#ffffff08; font-weight:700; }
.mg-visual>div { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.mg-visual small { color:#d6e5ee; margin-top:5px; font-weight:400; }
.mg-guide summary { cursor:pointer; font-weight:700; padding:18px 24px; min-height:48px; }
.mg-public-details>summary { max-width:1128px; margin:auto; border-top:1px solid #ccdeda; }
.mg-section-head { margin-bottom:24px; }
.mg-guide h2 { font-size:clamp(23px,2.5vw,32px); line-height:1.5; margin:10px 0; }
.mg-guide h3 { font-size:19px; line-height:1.5; margin:10px 0; }
.mg-roles { display:grid; grid-template-columns:repeat(2,1fr); gap:18px; }
.mg-roles article { background:#fff; border:1px solid #e0e9e8; border-radius:22px; padding:26px; }
.mg-roles .mg-label { color:#16695f; margin-bottom:0; }
.mg-symbol { display:inline-grid; place-items:center; width:46px; height:46px; border-radius:14px; background:#e7f5f1; color:#136b60; font-size:25px; }
.mg-journey { padding-block:42px; }
.mg-journey ol { list-style:none; padding:0; margin:0; display:grid; gap:0; }
.mg-journey li { display:flex; gap:18px; position:relative; padding:0 0 22px; }
.mg-journey li:not(:last-child)::before { content:''; position:absolute; right:21px; top:44px; bottom:0; width:2px; background:#c9ded8; }
.mg-journey li>span { display:grid; place-items:center; flex:0 0 44px; height:44px; background:#147d70; color:#fff; border-radius:50%; font-weight:700; }
.mg-journey h3 { margin:5px 0; }
.mg-journey p { margin:0; }
.mg-apps { display:grid; grid-template-columns:1fr 1fr; gap:24px; padding:28px; border-radius:24px; background:#e7f1ed; }
.mg-apps a:not(.btn) { color:#104e49; font-weight:700; }
.mg-faq { margin-top:24px; border:1px solid #cadcd6; border-radius:16px; }
.mg-faq p { padding:0 24px 18px; }
.mg-signed { margin:20px clamp(16px,3vw,36px) 0; border:1px solid #d5e4df; border-radius:18px; overflow:hidden; }
.mg-quick { padding:16px 24px; justify-content:space-between; }
.mg-quick .btn { font-size:14px; }
.mg-guide a:focus-visible,.mg-guide summary:focus-visible { outline:3px solid #bb680d; outline-offset:4px; }
#merchant-access { scroll-margin-top:16px; }
@media(max-width:760px) {
  .mg-header { flex-wrap:wrap; padding:20px; }
  .mg-header .brand { font-size:15px; }
  .mg-hero { grid-template-columns:1fr; gap:28px; padding-block:20px 28px; }
  .mg-hero h1 { letter-spacing:0; }
  .mg-actions>* { width:100%; }
  .mg-visual { border-radius:22px; padding:24px 14px; }
  .mg-visual>div { grid-template-columns:1fr; }
  .mg-roles,.mg-apps { grid-template-columns:1fr; }
  .mg-content { padding:22px 18px; }
  .mg-roles article,.mg-apps { padding:22px; }
  .mg-quick { padding:16px; }
  .mg-signed .mg-quick .btn { width:100%; }
}

/* Phone-first refinements, adapting join portal's flexible fields,
   independently scrolling dialogs and safe-area spacing. */
.mg-guide { overflow-wrap:anywhere; }
.mg-header>*,.mg-hero>*,.mg-roles>*,.mg-apps>*,.mg-journey li>div { min-width:0; }
.mg-guide a.btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:48px; border-radius:12px; }
.mg-guide summary { min-height:48px; touch-action:manipulation; }
.layout,.auth-page,.initial { min-height:100vh; min-height:100dvh; }
@media(max-width:760px) {
  .mg-header { padding-top:max(16px,env(safe-area-inset-top)); gap:12px; }
  .mg-header .brand { flex:1 1 180px; }
  .mg-header>.btn { flex:1 1 180px; }
  .mg-hero { padding-inline:18px; gap:24px; }
  .mg-hero h1 { font-size:clamp(28px,7.8vw,38px); line-height:1.4; margin-block:14px; }
  .mg-hero p { font-size:16px; line-height:1.85; }
  .mg-guide small { font-size:13px; }
  .mg-visual { box-shadow:none; padding:18px 14px; }
  .mg-visual>b { font-size:24px; padding-block:18px; }
  .mg-visual>div>span { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:4px 12px; text-align:start; padding:12px; }
  .mg-visual small { margin-top:0; }
  .mg-content { padding-inline:16px; }
  .mg-roles article { padding:20px; }
  .mg-apps { padding:20px 16px; }
  .mg-apps .btn { width:100%; }
  .mg-apps a:not(.btn) { display:inline-flex; align-items:center; min-height:48px; }
  .mg-signed { margin-inline:12px; }
  .mg-journey li { gap:12px; }
  .mg-journey h3 { font-size:18px; }
  .mg-journey p,.mg-roles p,.mg-apps p { font-size:16px; }
  .topbar { flex-wrap:wrap; height:auto; gap:12px; padding:14px 16px; position:static; }
  .topbar>*,.topbar .actions,.auth-form-wrap,.field,.fields>* { min-width:0; }
  .topbar .actions { flex-wrap:wrap; flex:1 1 100%; }
  .topbar select { min-width:0; max-width:100%; flex:1; font-size:16px; }
  .topbar .btn,.side-nav button,.tabs button,.icon-button,.auth-form-wrap .btn { min-height:48px; }
  .icon-button { min-width:48px; flex-shrink:0; }
  .field input,.field select,.field textarea { font-size:16px; max-width:100%; }
  .auth-form-wrap { padding-inline:18px; padding-bottom:calc(28px + env(safe-area-inset-bottom)); }
  .auth-form-wrap .top-link { flex-wrap:wrap; gap:12px; }
  .page { padding-bottom:calc(32px + env(safe-area-inset-bottom)); }
  dialog { max-height:90vh; max-height:90dvh; padding:0; }
  dialog[open] { display:flex; flex-direction:column; }
  .dialog-head { flex:0 0 auto; margin:0; padding:16px; border-bottom:1px solid var(--line); }
  #dialog-content { min-height:0; overflow-y:auto; overscroll-behavior-y:contain; -webkit-overflow-scrolling:touch; padding:16px 16px calc(16px + env(safe-area-inset-bottom)); }
  .form-footer { gap:12px; }
  .form-footer .btn { min-height:48px; }
  .toast { bottom:max(18px,env(safe-area-inset-bottom)); }
}
@media(max-width:380px) {
  .mg-header,.mg-hero { padding-inline:14px; }
  .mg-content { padding-inline:12px; }
  .mg-guide h2 { font-size:23px; }
  .mg-quick { padding:14px; }
}

.mg-payments { margin-top:32px; padding-top:28px; border-top:1px solid #cadcd6; }
.mg-payments>.btn { min-height:48px; white-space:normal; }
@media(max-width:760px) { .mg-payments>.btn { width:100%; } }

/* Merchant WhatsApp support, visible outside the collapsible guide. */
.mg-guide a.mg-whatsapp { background:#087c45; color:#fff; border:1px solid #087c45; }
.mg-guide a.mg-whatsapp:hover { background:#066638; }
.mg-whatsapp svg { flex:0 0 28px; }
.mg-whatsapp span { min-width:0; }
.mg-whatsapp bdi { display:block; margin-top:4px; font-size:14px; font-weight:400; white-space:nowrap; }

