/* =============================================================
   Complete Shop Manager — Marketing Website Styles
   Uses CSM brand palette (defined in app.css :root and
   mirrored in tailwind_config.php).
   ============================================================= */

/* ---- Typography -------------------------------------------- */
.ws-body {
  font-family: 'DM Sans', system-ui, sans-serif;
  color: #1e293b; /* slate-800 */
  background: #ffffff;
}

h1, h2, h3, h4, .ws-heading {
  font-family: 'Montserrat', 'DM Sans', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.15;
}


/* ---- Layout helpers --------------------------------------- */
.ws-main {
  min-height: calc(100vh - 72px);
}

.ws-container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.ws-section {
  padding-block: 5rem;
}

.ws-section--sm {
  padding-block: 3rem;
}

.ws-section--dark {
  background: #0d1c32; /* brand-900 */
  color: #ffffff;
}

.ws-section--navy {
  background: #142a4b; /* brand-850 */
  color: #ffffff;
}

.ws-section--tint {
  background: #f5f9fe; /* brand-50 */
}


/* ---- Buttons ---------------------------------------------- */
.ws-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.375rem;
  border-radius: 0.5rem;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}

.ws-btn--primary {
  background: #448cfb; /* brand-500 */
  color: #ffffff;
  border-color: #448cfb;
}
.ws-btn--primary:hover {
  background: #3670c8; /* brand-600 */
  border-color: #3670c8;
}

.ws-btn--ghost {
  background: transparent;
  color: #1b3864; /* brand-800 */
  border-color: transparent;
}
.ws-btn--ghost:hover {
  background: #d9e8fe; /* brand-100 */
}

.ws-btn--outline {
  background: transparent;
  color: #448cfb;
  border-color: #448cfb;
}
.ws-btn--outline:hover {
  background: #d9e8fe;
}

.ws-btn--outline-light {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255,255,255,0.6);
}
.ws-btn--outline-light:hover {
  background: rgba(255,255,255,0.1);
  border-color: #ffffff;
}

.ws-btn--full {
  width: 100%;
}

.ws-btn--lg {
  padding: 0.875rem 2rem;
  font-size: 1.0625rem;
}


/* ---- Header / Nav ---------------------------------------- */
.ws-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ws-header--scrolled {
  border-color: #e2e8f0;
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}

.ws-header__inner {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.5rem;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.ws-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  flex-shrink: 0;
}

.ws-logo__mark {
  background: #142a4b; /* brand-850 */
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.5rem;
  border-radius: 0.375rem;
}

.ws-logo__mark--light {
  background: #448cfb;
}

.ws-logo__text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: #0d1c32; /* brand-900 */
  line-height: 1;
}

.ws-nav {
  display: none;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
}

@media (min-width: 1024px) {
  .ws-nav { display: flex; }
}

.ws-nav__link {
  padding: 0.5rem 0.875rem;
  border-radius: 0.375rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #334155; /* slate-700 */
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s;
}

.ws-nav__link:hover {
  background: #f1f5f9;
  color: #0d1c32;
}

.ws-header__ctas {
  display: none;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

@media (min-width: 1024px) {
  .ws-header__ctas { display: flex; }
}

/* Hamburger */
.ws-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
  border-radius: 0.375rem;
}

.ws-hamburger:hover { background: #f1f5f9; }

@media (min-width: 1024px) {
  .ws-hamburger { display: none; }
}

.ws-hamburger__bar {
  display: block;
  width: 100%;
  height: 2px;
  background: #334155;
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* Mobile menu */
.ws-mobile-menu {
  position: absolute;
  top: 72px;
  left: 0;
  right: 0;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

@media (min-width: 1024px) {
  .ws-mobile-menu { display: none !important; }
}

.ws-mobile-menu__nav {
  max-width: 1200px;
  margin-inline: auto;
  padding: 1.25rem 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.ws-mobile-menu__link {
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 500;
  color: #334155;
  text-decoration: none;
  transition: background 0.15s;
}

.ws-mobile-menu__link:hover {
  background: #f1f5f9;
}

.ws-mobile-menu__ctas {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
}

[x-cloak] { display: none !important; }


/* ---- Footer ---------------------------------------------- */
.ws-footer {
  background: #0d1c32; /* brand-900 */
  color: #cbd5e1; /* slate-300 */
  padding-top: 4rem;
}

.ws-footer__inner {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 768px) {
  .ws-footer__inner {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ws-footer__col {}

.ws-footer__logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  margin-bottom: 1rem;
}

.ws-footer__brand {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.9375rem;
  color: #ffffff;
}

.ws-footer__tagline {
  font-size: 0.875rem;
  color: #94a3b8; /* slate-400 */
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.ws-footer__heading {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b; /* slate-500 */
  margin-bottom: 0.75rem;
}

.ws-footer__heading--spaced {
  margin-top: 2rem;
}

.ws-footer__nav {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.ws-footer__link {
  font-size: 0.9375rem;
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.15s;
}

.ws-footer__link:hover {
  color: #ffffff;
}

.ws-footer__contact-link {
  font-size: 0.9375rem;
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.15s;
}

.ws-footer__contact-link:hover { color: #ffffff; }

.ws-footer__socials {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.ws-footer__social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 0.375rem;
  background: rgba(255,255,255,0.07);
  color: #ffffff;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.ws-footer__social svg {
  width: 18px;
  height: 18px;
}

.ws-footer__social:hover {
  background: #448cfb;
  color: #ffffff;
}

.ws-footer__cta-text {
  font-size: 0.875rem;
  color: #94a3b8;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.ws-footer__cta-btn {}

.ws-footer__shop-cta {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.6;
}

.ws-footer__bottom {
  max-width: 1200px;
  margin-inline: auto;
  padding: 1.5rem;
  margin-top: 3rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: #475569; /* slate-600 */
}


/* ---- Common marketing section components ------------------ */

/* Section heading pattern */
.ws-section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #448cfb;
  margin-bottom: 0.75rem;
}

.ws-section-heading {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  color: #0d1c32;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.ws-section-heading--light {
  color: #ffffff;
}

.ws-section-subhead {
  font-size: 1.125rem;
  color: #475569;
  max-width: 620px;
  line-height: 1.65;
}

.ws-section-subhead--light {
  color: #94a3b8;
}

/* Feature card */
.ws-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1.75rem;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.ws-card:hover {
  box-shadow: 0 4px 24px rgba(68,140,251,0.1);
  border-color: #b4d1fd;
}

.ws-card--dark {
  background: #142a4b;
  border-color: rgba(255,255,255,0.08);
  color: #cbd5e1;
}

/* Pill / badge */
.ws-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
}

.ws-pill--blue {
  background: #d9e8fe;
  color: #285496;
}

/* Checklist items */
.ws-check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.ws-check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.ws-check-list li::before {
  content: '';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23448cfb'%3E%3Ccircle cx='10' cy='10' r='10' fill='%23d9e8fe'/%3E%3Cpath d='M6 10l3 3 5-5' stroke='%23448cfb' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ---- Features two-column layout -------------------------- */
.ws-feat-wrap {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.5rem;
  display: flex;
  gap: 3rem;
  align-items: flex-start;
  padding-top: 3rem;
  padding-bottom: 5rem;
}

.ws-feat-sidebar {
  flex: 0 0 220px;
  position: sticky;
  top: 88px;
  align-self: flex-start;
}

.ws-feat-content {
  flex: 1;
  min-width: 0;
}

@media (max-width: 900px) {
  .ws-feat-wrap { flex-direction: column; gap: 2rem; }
  .ws-feat-sidebar { position: static; width: 100%; }
}

/* Features nav */
.ws-feat-nav {
  background: #f8f9fb;
  border-left: 3px solid #448cfb;
  padding: 1rem 1.125rem 1.25rem;
  font-size: 0.875rem;
}

.ws-feat-nav__heading {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #64748b;
  margin: 0 0 0.75rem;
}

.ws-feat-nav__link {
  display: block;
  padding: 0.3rem 0;
  color: #334155;
  text-decoration: none;
  font-size: 0.875rem;
  border-radius: 0.25rem;
  transition: color 0.12s;
  margin-bottom: 0.1rem;
}
.ws-feat-nav__link:hover { color: #448cfb; }
.ws-feat-nav__link--active {
  color: #0d1c32;
  font-weight: 700;
  pointer-events: none;
}
.ws-feat-nav__link--sub {
  padding-left: 0.625rem;
  font-size: 0.8125rem;
  color: #475569;
}
.ws-feat-nav__link--section {
  font-weight: 600;
  color: #1e293b;
}

.ws-feat-nav__section { margin-top: 0.5rem; }
.ws-feat-nav__children {
  list-style: none;
  margin: 0.2rem 0 0.2rem 0.5rem;
  padding: 0;
  padding-left: 0.5rem;
  border-left: 1px solid #cbd5e1;
  display: none;
}
.ws-feat-nav__section.open .ws-feat-nav__children { display: block; }
.ws-feat-nav__children li { margin: 0; }

/* Features page content */
.ws-feat-title {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 800;
  color: #0d1c32;
  margin: 0 0 1.5rem;
  line-height: 1.1;
}

.csm-feat-section { margin-bottom: 2.5rem; }

.csm-feat-h2 {
  font-size: 1.375rem;
  font-weight: 700;
  color: #0d1c32;
  margin: 0 0 0.75rem;
  line-height: 1.2;
}

.csm-feat-tagline {
  font-size: 1.0625rem;
  font-style: italic;
  color: #475569;
  margin-bottom: 1rem;
}

.csm-feat-p {
  font-size: 1rem;
  line-height: 1.75;
  color: #334155;
  margin-bottom: 0.875rem;
}

.csm-feat-benefits {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}
.csm-feat-benefits li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.75rem;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.9375rem;
  color: #334155;
  line-height: 1.5;
}
.csm-feat-benefits li:last-child { border-bottom: none; }
.csm-feat-benefits li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #448cfb;
  font-weight: 700;
}

/* Child card grid (parent section pages) */
.ws-feat-card-grid {
  border: 1px solid #e2e8f0;
  border-radius: 0.625rem;
  overflow: hidden;
  margin: 1.5rem 0 2rem;
}
.ws-feat-card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 1.25rem;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  text-decoration: none;
  color: #1e293b;
  transition: background 0.12s;
}
.ws-feat-card-row:last-child { border-bottom: none; }
.ws-feat-card-row:hover { background: #f0f7ff; }
.ws-feat-card-row__body { display: flex; flex-direction: column; gap: 0.15rem; flex: 1; }
.ws-feat-card-row__title { font-weight: 600; font-size: 0.9375rem; color: #0d1c32; }
.ws-feat-card-row__desc { font-size: 0.8125rem; color: #64748b; line-height: 1.4; }
.ws-feat-card-row__arrow { color: #94a3b8; flex-shrink: 0; font-size: 1rem; }
.ws-feat-card-row:hover .ws-feat-card-row__arrow { color: #448cfb; }

/* Divider */
.ws-divider {
  border: none;
  border-top: 1px solid #e2e8f0;
  margin-block: 3rem;
}

/* ============================================================
   Manual / Docs pages  (csm-manual-* content classes)
   ============================================================ */
.csm-manual-section { margin-bottom: 2.5rem; }

.csm-manual-h2 {
  font-size: 1.35rem; font-weight: 700; color: #0d1c32;
  margin-bottom: 0.875rem; line-height: 1.3;
}
.csm-manual-h3 {
  font-size: 1rem; font-weight: 600; color: #1e3a5f;
  margin-bottom: 0.5rem;
}
.csm-manual-p {
  font-size: 0.9375rem; color: #334155; line-height: 1.75;
  margin-bottom: 0.875rem;
}
.csm-manual-feature {
  padding: 1.125rem 1.25rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}
.csm-manual-note {
  background: #eff6ff;
  border-left: 3px solid #448cfb;
  padding: 0.75rem 1rem;
  border-radius: 0 0.375rem 0.375rem 0;
  font-size: 0.875rem; color: #1e40af;
  margin: 1rem 0;
}
.csm-manual-warn {
  background: #fffbeb;
  border-left: 3px solid #f59e0b;
  padding: 0.75rem 1rem;
  border-radius: 0 0.375rem 0.375rem 0;
  font-size: 0.875rem; color: #92400e;
  margin: 1rem 0;
}
.csm-manual-list {
  padding-left: 1.5rem; margin-bottom: 1rem;
}
.csm-manual-list li {
  margin-bottom: 0.375rem;
  font-size: 0.9375rem; color: #334155; line-height: 1.6;
}
.csm-manual-code {
  display: block;
  background: #0d1c32; color: #e2e8f0;
  padding: 1.125rem 1.25rem;
  border-radius: 0.5rem;
  font-size: 0.8125rem; font-family: monospace;
  overflow-x: auto; white-space: pre;
  margin: 1rem 0;
}
.csm-manual-table {
  width: 100%; border-collapse: collapse;
  margin: 1rem 0; font-size: 0.875rem;
}
.csm-manual-table th {
  background: #f1f5f9; font-weight: 600; color: #0d1c32;
  padding: 0.5rem 0.875rem; text-align: left;
  border-bottom: 2px solid #cbd5e1;
}
.csm-manual-table td {
  padding: 0.45rem 0.875rem;
  border-bottom: 1px solid #e2e8f0; color: #334155;
  vertical-align: top;
}
.csm-manual-table code {
  font-size: 0.8rem; background: #f1f5f9;
  padding: 0.1rem 0.35rem; border-radius: 0.25rem;
  font-family: monospace;
}
.csm-manual-screenshot {
  max-width: 100%; display: block;
  border: 1px solid #e2e8f0; border-radius: 0.5rem;
  margin: 1rem 0;
}
/* YouTube / video embed */
.csm-manual-video {
  position: relative; padding-bottom: 56.25%;
  height: 0; overflow: hidden;
  border-radius: 0.5rem; margin: 1rem 0;
  background: #0d1c32;
}
.csm-manual-video iframe {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%; border: none;
}
/* Numbered steps */
.csm-manual-steps {
  list-style: none; padding-left: 0;
  margin-bottom: 1rem; counter-reset: man-step;
}
.csm-manual-step {
  counter-increment: man-step;
  display: flex; gap: 0.875rem;
  margin-bottom: 0.75rem;
}
.csm-manual-step::before {
  content: counter(man-step);
  min-width: 1.625rem; height: 1.625rem;
  background: #448cfb; color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 700; flex-shrink: 0;
  margin-top: 0.2rem;
}
.csm-manual-step-body {
  font-size: 0.9375rem; color: #334155; line-height: 1.65;
}
.csm-manual-step-body strong { color: #0d1c32; }
/* Manual index card grid (used on csm-user-manual root page) */
.ws-manual-topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem; margin-top: 1.5rem;
}
.ws-manual-topic-card {
  display: flex; flex-direction: column; gap: 0.25rem;
  padding: 1rem 1.125rem;
  border: 1px solid #e2e8f0; border-radius: 0.5rem;
  background: #fff; text-decoration: none; color: #1e293b;
  transition: box-shadow 0.14s, border-color 0.14s;
}
.ws-manual-topic-card:hover {
  border-color: #448cfb;
  box-shadow: 0 2px 8px rgba(68,140,251,.12);
}
.ws-manual-topic-card__title {
  font-weight: 600; font-size: 0.9375rem; color: #0d1c32;
}
.ws-manual-topic-card__desc {
  font-size: 0.8125rem; color: #64748b; line-height: 1.4;
}


/* ---- App store badges ------------------------------------ */
.ws-app-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 1.25rem;
  background: #0d1c32;
  color: #ffffff;
  border-radius: 0.625rem;
  text-decoration: none;
  border: 1.5px solid rgba(255,255,255,0.15);
  min-width: 160px;
  transition: background 0.15s, border-color 0.15s;
}
.ws-app-badge:hover {
  background: #1b3864;
  border-color: rgba(255,255,255,0.3);
}
.ws-app-badge small {
  display: block;
  font-size: 0.625rem;
  font-weight: 500;
  opacity: 0.65;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.ws-app-badge strong {
  display: block;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.25;
}
.ws-app-badge--lg {
  padding: 0.875rem 1.5rem;
  min-width: 180px;
}
.ws-app-badge--lg strong { font-size: 1.0625rem; }
.ws-app-badge--soon {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}


/* ---- Language switcher (desktop nav) ---------------------- */
.ws-lang-switcher {
  position: relative;
  flex-shrink: 0;
}

.ws-lang-btn {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.4375rem 0.75rem;
  border: none;
  border-radius: 0.375rem;
  background: transparent;
  color: #334155;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.ws-lang-btn:hover { background: #f1f5f9; color: #0d1c32; }
.ws-lang-btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.ws-lang-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  min-width: 164px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  padding: 0.375rem;
  z-index: 200;
}

.ws-lang-option {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: #334155;
  text-decoration: none;
  border-radius: 0.375rem;
  transition: background 0.1s, color 0.1s;
}
.ws-lang-option:hover { background: #f1f5f9; color: #0d1c32; }
.ws-lang-option--active {
  background: #d9e8fe;
  color: #1e40af;
  font-weight: 600;
  pointer-events: none;
}

/* Mobile lang pills */
.ws-mobile-lang {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  padding-top: 0.875rem;
  margin-top: 0.875rem;
  border-top: 1px solid #e2e8f0;
}
.ws-mobile-lang__pill {
  padding: 0.3125rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #334155;
  text-decoration: none;
  background: #f1f5f9;
  border: 1px solid transparent;
  transition: background 0.12s, border-color 0.12s;
}
.ws-mobile-lang__pill:hover { background: #e2e8f0; }
.ws-mobile-lang__pill--active {
  background: #d9e8fe;
  color: #1e40af;
  font-weight: 600;
  border-color: #93c5fd;
}

/* ============================================================
   WEBSITE USER AREA (#560) — sign-in, Workplaces, Account Settings
   ============================================================ */
.ws-ua { max-width: 48rem; margin: 0 auto; padding: 2rem 1rem 4rem; }
.ws-ua--narrow { max-width: 28rem; }
.ws-ua__title { font-family: 'Montserrat', sans-serif; font-size: 1.5rem; font-weight: 800; color: #0f172a; letter-spacing: -0.01em; }
.ws-ua__sub { margin-top: .25rem; font-size: .875rem; color: #64748b; }
.ws-ua__tabs { display: flex; gap: .25rem; margin: 1.25rem 0; border-bottom: 1px solid #e2e8f0; overflow-x: auto; }
.ws-ua__tab { padding: .6rem 1rem; font-size: .875rem; font-weight: 600; color: #64748b; border-bottom: 2px solid transparent; white-space: nowrap; }
.ws-ua__tab:hover { color: #0f172a; }
.ws-ua__tab--active { color: #1d4ed8; border-color: #1d4ed8; }
.ws-ua__panel { background: #fff; border: 1px solid #e2e8f0; border-radius: .875rem; overflow: hidden; }
.ws-ua__panel + .ws-ua__panel { margin-top: 1rem; }
.ws-ua__panel-head { padding: .75rem 1.25rem; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #94a3b8; border-bottom: 1px solid #f1f5f9; }
.ws-ua__body { padding: 1.25rem; }
.ws-ua__row { display: flex; align-items: center; gap: .75rem; padding: .85rem 1.25rem; border-top: 1px solid #f1f5f9; color: #0f172a; }
.ws-ua__row:first-child { border-top: 0; }
a.ws-ua__row:hover, button.ws-ua__row:hover { background: #f8fafc; }
/* Workplaces panels (My Shops): hover keeps the row white and outlines it, same as the Vehicles / My Shops list cards */
.ws-ua__panel--outline a.ws-ua__row:hover, .ws-ua__panel--outline button.ws-ua__row:hover { background: #fff; box-shadow: inset 0 0 0 1px #94a3b8; border-radius: calc(.875rem - 1px); }
.ws-ua__row-icon { display: flex; height: 2.1rem; width: 2.1rem; flex-shrink: 0; align-items: center; justify-content: center; border-radius: .6rem; background: #ebf5ff; color: #1d4ed8; }
.ws-ua__row-label { flex: 1; min-width: 0; font-size: .925rem; font-weight: 500; }
.ws-ua__row-desc { display: block; font-size: .75rem; font-weight: 400; color: #94a3b8; }
.ws-ua__row--danger { color: #dc2626; }
.ws-ua__row--danger .ws-ua__row-icon { background: #fef2f2; color: #dc2626; }
.ws-ua__label { display: block; margin-bottom: .25rem; font-size: .8125rem; font-weight: 500; color: #334155; }
.ws-ua__hint { margin-top: .25rem; font-size: .75rem; color: #64748b; }
.ws-ua__input { display: block; width: 100%; border-radius: .5rem; border: 1px solid #cbd5e1; background: #fff; padding: .5rem .75rem; font-size: .875rem; color: #0f172a; outline: none; }
.ws-ua__input:focus { border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,.15); }
.ws-ua__alert { margin-bottom: 1rem; border-radius: .5rem; border: 1px solid; padding: .75rem 1rem; font-size: .875rem; }
.ws-ua__alert--error { border-color: #fecaca; background: #fef2f2; color: #b91c1c; }
.ws-ua__alert--success { border-color: #bbf7d0; background: #f0fdf4; color: #15803d; }
.ws-ua__alert--info { border-color: #bfdbfe; background: #eff6ff; color: #1e40af; }
.ws-ua__alert--warn { border-color: #fde68a; background: #fffbeb; color: #92400e; }
/* Workplaces: one <details> per shop */
.ws-ua__shop > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .75rem; padding: .9rem 1.25rem; }
.ws-ua__shop > summary::-webkit-details-marker { display: none; }
.ws-ua__shop-logo { height: 2.5rem; width: 2.5rem; flex-shrink: 0; border-radius: .6rem; background: #f1f5f9; object-fit: cover; display: flex; align-items: center; justify-content: center; color: #64748b; font-weight: 700; }
.ws-ua__shop-chev { color: #94a3b8; transition: transform .15s; }
.ws-ua__shop[open] .ws-ua__shop-chev { transform: rotate(90deg); }
.ws-ua__menu-btn { display: flex; height: 2.25rem; width: 2.25rem; align-items: center; justify-content: center; border-radius: .5rem; color: #64748b; }
.ws-ua__menu-btn:hover { background: #f1f5f9; color: #0f172a; }

/* My Shops on phones: one edge-to-edge list instead of cards. Blocks run to the screen edges (cancelling the page's
   1rem side padding), lose their rounded corners and side borders, and stack with a shared divider line. */
@media (max-width: 639px) {
  .ws-ua__shops .ws-ua__panel,
  .ws-ua__shops .ws-app__group { margin-inline: -1rem; border-radius: 0; border-left: 0; border-right: 0; }
  .ws-ua__shops .ws-ua__panel + .ws-ua__panel { margin-top: -1px; }
  .ws-ua__shops .ws-ua__shop > summary,
  .ws-ua__shops .ws-ua__row,
  .ws-ua__shops .ws-app__row { padding-inline: 1rem; }
  .ws-ua__shops .ws-ua__shop > summary { gap: .625rem; }
  .ws-ua__shops .ws-ua__panel--outline a.ws-ua__row:hover,
  .ws-ua__shops .ws-ua__panel--outline button.ws-ua__row:hover,
  .ws-ua__shops .ws-app__group--cols > a.ws-app__row:hover { border-radius: 0; }
}
.ws-ua__level { font-size: .875rem; font-weight: 600; }
.ws-ua__level--none { color: #94a3b8; }
.ws-ua__level--view { color: #1d4ed8; }
.ws-ua__level--edit { color: #047857; }
/* Header: signed-in name */
.ws-user-link { display: inline-flex; align-items: center; gap: .4rem; font-size: .875rem; font-weight: 600; color: #0f172a; padding: .4rem .6rem; border-radius: .5rem; }
.ws-user-link:hover { background: #f1f5f9; }

/* ============================================================
   WEBSITE USER AREA — SIGNED-IN LAYOUT (#566: My Shop on the web)
   Phone + tablet: bottom tab bar like the My Shop app.
   Larger than tablet (1024px+): desktop tabs under the header, wider page, no bottom bar.
   ============================================================ */
.ws-app { background: #f8fafc; min-height: 100vh; display: flex; flex-direction: column; }
/* No pull/rubber-band bounce on the signed-in pages: the page bouncing past its edge dragged the bottom tab bar
   with it */
html:has(> body.ws-app), body.ws-app { overscroll-behavior-y: none; }
.ws-app__header { border-color: #e2e8f0; }
.ws-app__header-inner { gap: 1rem; height: 64px; }
.ws-app__header-actions { display: flex; align-items: center; gap: .375rem; margin-left: auto; }
.ws-app__icon-btn { position: relative; display: flex; height: 2.5rem; width: 2.5rem; align-items: center; justify-content: center; border-radius: .5rem; color: #475569; }
.ws-app__icon-btn:hover, .ws-app__icon-btn--active { background: #f1f5f9; color: #0f172a; }
.ws-app__badge { position: absolute; top: .2rem; right: .15rem; min-width: 1.05rem; padding: 0 .25rem; border-radius: 9999px; background: #ef4444; color: #fff; font-size: .625rem; font-weight: 700; line-height: 1.05rem; text-align: center; }
.ws-user-link--active { background: #f1f5f9; }

/* Desktop tabs (hidden below lg) */
.ws-app__tabs { display: none; border-top: 1px solid #f1f5f9; background: #fff; }
.ws-app__tabs-inner { max-width: 1200px; margin-inline: auto; padding-inline: 1.5rem; display: flex; gap: .25rem; }
.ws-app__tab { display: inline-flex; align-items: center; gap: .5rem; padding: .8rem 1rem; font-size: .9rem; font-weight: 600; color: #64748b; border-bottom: 2px solid transparent; white-space: nowrap; }
.ws-app__tab:hover { color: #0f172a; }
.ws-app__tab--active { color: #3670c8; border-color: #3670c8; }

/* Page */
.ws-app__main { flex: 1; width: 100%; }
.ws-app__page { max-width: 48rem; margin: 0 auto; padding: 1.5rem 1rem 2rem; }
.ws-app__page--narrow { max-width: 30rem; }
.ws-app__page--wide { max-width: 1200px; }

/* Slim footer: desktop only. Phones and tablets have the bottom tab bar instead (like the app); the page leaves
   room for that bar. */
.ws-app__footer { display: none; border-top: 1px solid #e2e8f0; background: #fff; }
.ws-app__main { padding-bottom: 4.25rem; }
.ws-app__footer-inner { max-width: 1200px; margin-inline: auto; padding: 1rem 1.5rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; font-size: .8rem; color: #94a3b8; }
.ws-app__footer-links { display: flex; flex-wrap: wrap; gap: .25rem 1rem; }
.ws-app__footer-links a { color: #64748b; }
.ws-app__footer-links a:hover { color: #0f172a; }

/* Bottom tab bar (phones and tablets). No safe-area padding: the page does not draw under the system bars
   (no viewport-fit=cover), yet Chrome on Android sometimes reports the navigation bar's height while its address
   bar shows or hides, which grew the bar by ~48px and left a white strip under the tabs. */
.ws-app__bottombar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: flex; border-top: 1px solid #e2e8f0; background: #fff; }
.ws-app__bottomtab { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .45rem .1rem .5rem; font-size: .68rem; font-weight: 500; color: #94a3b8; }
.ws-app__bottomtab span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-app__bottomtab:hover { color: #475569; }
.ws-app__bottomtab--active { color: #3670c8; }

@media (min-width: 1024px) {
  .ws-app__tabs { display: block; }
  .ws-app__bottombar { display: none; }
  .ws-app__footer { display: block; }
  .ws-app__main { padding-bottom: 0; }
  .ws-app__page { padding: 2rem 1.5rem 3rem; max-width: 64rem; }
  .ws-app__page--narrow { max-width: 30rem; }
  .ws-app__page--wide { max-width: 1200px; }
}

/* Shared list pieces for the My Shop pages */
.ws-app__group { background: #fff; border: 1px solid #e2e8f0; border-radius: 1rem; overflow: hidden; }
.ws-app__group + .ws-app__group { margin-top: 1rem; }
.ws-app__row { display: flex; align-items: center; gap: .875rem; padding: .95rem 1.1rem; border-top: 1px solid #f1f5f9; color: #0f172a; }
.ws-app__row:first-child { border-top: 0; }
a.ws-app__row:hover, button.ws-app__row:hover { background: #f8fafc; }
/* Two-column list cards (Vehicles, My Shops): hover keeps the row white and outlines it instead */
.ws-app__group--cols > a.ws-app__row:hover { background: #fff; box-shadow: inset 0 0 0 1px #94a3b8; border-radius: calc(1rem - 1px); }
.ws-app__row-icon { display: flex; height: 2.6rem; width: 2.6rem; flex-shrink: 0; align-items: center; justify-content: center; border-radius: .75rem; background: #ebf5ff; color: #208aef; }
.ws-app__row-body { flex: 1; min-width: 0; }
.ws-app__row-title { display: block; font-size: .95rem; font-weight: 700; color: #111827; }
.ws-app__row-sub { display: block; margin-top: .1rem; font-size: .8rem; color: #94a3b8; }
.ws-app__row-sub--active { color: #208aef; }
.ws-app__row-meta { display: block; margin-top: .1rem; font-size: .75rem; color: #64748b; }
.ws-app__section-title { margin: 1.5rem 0 .6rem; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #64748b; }
.ws-app__empty { padding: 2.5rem 1.25rem; text-align: center; }
.ws-app__empty-icon { margin: 0 auto .75rem; display: flex; height: 3rem; width: 3rem; align-items: center; justify-content: center; border-radius: 9999px; background: #f1f5f9; color: #94a3b8; }
.ws-app__empty-title { font-size: .95rem; font-weight: 600; color: #0f172a; }
.ws-app__empty-sub { margin-top: .25rem; font-size: .85rem; color: #64748b; }
.ws-app__switch { display: flex; margin-bottom: 1rem; border-bottom: 1px solid #e2e8f0; }
.ws-app__switch a { position: relative; flex: 1; padding: .7rem .5rem; text-align: center; font-size: .9rem; font-weight: 600; color: #94a3b8; border-bottom: 2px solid transparent; }
.ws-app__switch a:hover { color: #475569; }
.ws-app__switch a.ws-app__switch--active { color: #3670c8; border-color: #3670c8; }
.ws-app__count { display: inline-flex; min-width: 1.4rem; height: 1.4rem; padding: 0 .4rem; align-items: center; justify-content: center; border-radius: 9999px; background: #208aef; color: #fff; font-size: .72rem; font-weight: 700; }
.ws-app__count--amber { background: #f59e0b; }
.ws-app__pill { display: inline-block; border-radius: 9999px; padding: .1rem .55rem; font-size: .7rem; font-weight: 600; }
.ws-app__head-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.ws-app__btn { display: inline-flex; align-items: center; gap: .35rem; border-radius: .6rem; background: #3670c8; padding: .45rem .85rem; font-size: .85rem; font-weight: 600; color: #fff; }
.ws-app__btn:hover { background: #2c5ca6; }
.ws-app__btn--ghost { background: #fff; color: #334155; border: 1px solid #cbd5e1; }
.ws-app__btn--ghost:hover { background: #f8fafc; }
@media (min-width: 1024px) {
  .ws-app__grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
  .ws-app__grid-3 > .ws-app__group { margin-top: 0; }
  .ws-app__grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
  /* A list card split into two columns. Dividers are row borders (not a gray gap background); with an odd count the last row spans both columns, so a lone row reaches the card's right edge */
  .ws-app__group--cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ws-app__group--cols > .ws-app__row:nth-child(-n+2) { border-top: 0; }
  .ws-app__group--cols > .ws-app__row:nth-child(odd):not(:last-child) { border-right: 1px solid #f1f5f9; }
  .ws-app__group--cols > .ws-app__row:nth-child(odd):last-child { grid-column: 1 / -1; }
}

/* Conversation (website user area Messages, #566): a chat box inside the page */
.ws-chat { display: flex; flex-direction: column; height: calc(100dvh - 22rem); min-height: 22rem; background: #f8fafc; }
.ws-chat__scroll { flex: 1 1 0; min-height: 0; overflow-y: auto; padding: 1rem; overscroll-behavior: contain; }
.ws-chat__bar { flex-shrink: 0; display: flex; align-items: flex-end; gap: .5rem; padding: .625rem .875rem; background: #fff; border-top: 1px solid #e2e8f0; }
.ws-chat__input { flex: 1; border: 1.5px solid #cbd5e1; border-radius: 1.25rem; padding: .5rem .875rem; font-size: .875rem; line-height: 1.5; max-height: 140px; resize: none; outline: none; font-family: inherit; }
.ws-chat__input:focus { border-color: #448cfb; }
.ws-chat__send { flex-shrink: 0; display: flex; height: 2.25rem; width: 2.25rem; align-items: center; justify-content: center; border-radius: 9999px; background: #448cfb; }
.ws-chat__send:hover { background: #3670c8; }
@media (min-width: 1024px) { .ws-chat { height: calc(100dvh - 20rem); } }

/* Discover (website user area, #566): on phones and tablets it looks like the My Shop app's Discover tab — no page
   title, a grey rounded search box (Enter searches), a short full-width map and a flat list of shops. Desktop keeps
   the finder's side-by-side map and results. */
@media (max-width: 1023px) {
  .ws-app__page:has(.ws-app__discover) { padding-top: 0; padding-left: 0; padding-right: 0; }
  .ws-app__page:has(.ws-app__discover) > .ws-app__head-row,
  .ws-app__page:has(.ws-app__discover) > .ws-app__head-row + .mb-5 { display: none; }
  .ws-app__discover { background: #fff; min-height: calc(100dvh - 8rem); }
  .ws-app__discover .csm-sf-search-form { margin: 0; padding: 12px 12px 8px; }
  .ws-app__discover .csm-sf-search-row { gap: 8px; }
  .ws-app__discover .csm-sf-input-wrap { flex: 1 1 100%; }
  .ws-app__discover .csm-sf-input { background: #f2f2f2; border-color: transparent; border-radius: 12px; height: 42px; font-size: 15px; }
  .ws-app__discover .csm-sf-input:focus { background: #fff; }
  .ws-app__discover .csm-sf-btn { display: none; }
  .ws-app__discover .csm-sf-type-select { flex: 1; border-radius: 20px; background: #f0f0f0; border-color: transparent; font-size: 13px; padding: 6px 12px; }
  .ws-app__discover .csm-sf-locate-btn { border-radius: 20px; border-color: transparent; padding: 6px 12px; }
  .ws-app__discover .csm-sf-body { display: block; height: auto; gap: 0; border-top: 1px solid #f1f5f9; }
  .ws-app__discover .csm-sf-map-pane { height: 220px; border: 0; border-radius: 0; }
  .ws-app__discover .csm-sf-results { height: auto; max-height: none; gap: 0; overflow: visible; padding: 4px 0; }
  .ws-app__discover .csm-sf-result-item { border: 0; border-bottom: 1px solid #f1f5f9; border-radius: 0; padding: 12px 16px; box-shadow: none; }
  .ws-app__discover .csm-sf-result-item:hover { background: #ebf5ff; box-shadow: none; }
  .ws-app__discover .csm-sf-empty { height: auto; padding: 32px 16px; }
}
