/* Sample tours only: switcher between the service-business and salon samples. Navy, blue, gold and white. */
.sample-switch {
  position: relative;
  z-index: 39;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 8px 12px;
  background: #ffffff;
  border-bottom: 1px solid #dfe5ef;
  font-family: "Plus Jakarta Sans", Inter, system-ui, sans-serif;
  box-sizing: border-box;
}
.sample-switch .ss-label {
  font-size: 13px;
  font-weight: 700;
  color: #0b1b3a;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.sample-switch .ss-seg {
  display: flex;
  gap: 8px;
  min-width: 0;
}
.sample-switch .ss-opt {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  width: 300px;
  max-width: 100%;
  padding: 7px 12px 8px;
  border-radius: 12px;
  border: 1px solid #d5ddea;
  background: #f5f7fb;
  color: #1d3a6b;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
  min-width: 0;
}
.sample-switch .ss-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.2;
}
.sample-switch .ss-top .ico { font-size: 16px; }
.sample-switch .ss-fit {
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.35;
  color: #4a5b78;
}
.sample-switch .ss-opt:hover { background: #ffffff; border-color: #9fb3d4; }
.sample-switch .ss-opt.on {
  background: #0b1b3a;
  border-color: #0b1b3a;
  color: #ffffff;
  box-shadow: inset 0 -3px 0 #f2a516, 0 2px 8px rgba(11, 27, 58, 0.18);
  cursor: default;
}
.sample-switch .ss-opt.on .ss-fit { color: #c9d5ea; }
.sample-switch .ss-opt:focus-visible { outline: 2px solid #1f6feb; outline-offset: 2px; }
@media (max-width: 760px) {
  .sample-switch { padding: 8px; }
  .sample-switch .ss-label { display: none; }
  .sample-switch .ss-seg { width: 100%; }
  .sample-switch .ss-opt { flex: 1 1 50%; width: auto; padding: 7px 9px 8px; }
  .sample-switch .ss-top { font-size: 13px; }
  .sample-switch .ss-fit { font-size: 11px; }
}
/* Same in-flow layout as the trial bar, so the desk never sits under the switcher (also after the trial bar is closed). */
body.has-sample-switch {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
@media (min-width: 761px) {
  html:has(body.has-sample-switch),
  body.has-sample-switch {
    height: 100%;
    overflow: hidden;
  }
  body.has-sample-switch .shell {
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
  }
}
/* View as: Owner | Employee (compact, one line, next to the two business choices). */
.sample-switch { flex-wrap: wrap; row-gap: 6px; }
.sample-switch .ss-role .ss-opt { width: auto; flex-direction: row; align-items: center; padding: 8px 14px; min-height: 40px; }
.sample-switch .ss-role .ss-name { font-size: 13.5px; font-weight: 800; }
@media (max-width: 760px) {
  .sample-switch .ss-label.ss-view-label { display: none; }
  .sample-switch .ss-role { width: 100%; }
  .sample-switch .ss-role .ss-opt { flex: 1 1 50%; justify-content: center; }
}

/* Employee sample: no booking rail for owners/managers. */
/* Nov 28: a teammate who can schedule gets the customer panel too; yfd-dnd.js hides it (and says why) when the owner turned scheduling off. */
body.sample-employee #bigjob-banner { display: none !important; }

/* Reset sample data (Dec 4, 2026): small, always visible in the sample bar. */
.sample-switch .ss-reset {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid #9fb3d4;
  background: #ffffff;
  color: #0b1b3a;
  font: 700 13px/1 "Plus Jakarta Sans", Inter, system-ui, sans-serif;
  cursor: pointer;
  white-space: nowrap;
}
.sample-switch .ss-reset:hover { background: #eef3fb; }
.sample-switch .ss-reset:focus-visible { outline: 2px solid #1f6feb; outline-offset: 2px; }
@media (max-width: 760px) { .sample-switch .ss-reset { width: 100%; } }

/* Slim sample bar (Dec 4, 2026, Ryan): one thin line. The long "Best for ..." lines moved to each button's tooltip (title).
   The label stays clear: "Sample tour:". Phones use short names (Service, Salon, Owner, Employee, Reset) so it stays one line. */
.sample-switch .ss-short { display: none; }
.sample-switch { padding: 3px 10px; gap: 8px; flex-wrap: nowrap; row-gap: 0; min-height: 0; }
.sample-switch .ss-label { font-size: 12px; }
.sample-switch .ss-seg { gap: 4px; }
.sample-switch .ss-opt,
.sample-switch .ss-role .ss-opt { width: auto; min-height: 28px; padding: 3px 10px; border-radius: 999px; flex-direction: row; align-items: center; gap: 0; }
.sample-switch .ss-fit { display: none; }
.sample-switch .ss-top { font-size: 12.5px; gap: 5px; }
.sample-switch .ss-top .ico { font-size: 14px; }
.sample-switch .ss-role .ss-name { font-size: 12.5px; }
.sample-switch .ss-opt.on { box-shadow: inset 0 -2px 0 #f2a516; }
.sample-switch .ss-reset { min-height: 28px; padding: 3px 11px; font-size: 12px; }
@media (max-width: 760px) {
  .sample-switch { padding: 3px 6px; gap: 5px; overflow-x: auto; scrollbar-width: none; }
  .sample-switch::-webkit-scrollbar { display: none; }
  .sample-switch .ss-label { display: inline; font-size: 11.5px; }
  .sample-switch .ss-label[data-short] { font-size: 0; }
  .sample-switch .ss-label[data-short]::after { content: attr(data-short) ":"; font-size: 11.5px; }
  .sample-switch .ss-label.ss-view-label { display: none; }
  .sample-switch .ss-seg { width: auto; flex: 0 0 auto; }
  .sample-switch .ss-opt,
  .sample-switch .ss-role .ss-opt { flex: 0 0 auto; padding: 3px 8px; min-height: 28px; }
  .sample-switch .ss-role { width: auto; }
  .sample-switch .ss-name { display: none; }
  .sample-switch .ss-short { display: inline; font-size: 12px; font-weight: 800; }
  .sample-switch .ss-top .ico { display: none; }
  .sample-switch .ss-reset { width: auto; font-size: 0; padding: 3px 8px; }
  .sample-switch .ss-reset::before { content: "Reset"; font: 700 12px/1 "Plus Jakarta Sans", Inter, system-ui, sans-serif; }
}
/* Wide desktop: the sample bar and the trial strip share ONE line (switcher left, trial offer right). */
@media (min-width: 1280px) {
  body.has-sample-switch.has-sample-trial-bar { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  body.has-sample-switch.has-sample-trial-bar > .sample-switch { grid-column: 1; grid-row: 1; justify-content: flex-start; border-bottom: 1px solid #dfe5ef; }
  body.has-sample-switch.has-sample-trial-bar > .sample-trial-bar { grid-column: 2; grid-row: 1; }
  body.has-sample-switch.has-sample-trial-bar > .shell { grid-column: 1 / -1; grid-row: 2; }
  body.has-sample-switch.has-sample-trial-bar .sample-trial-bar .stb-cluster:first-child p { display: none; }
}
@media (min-width: 1280px) {
  body.has-sample-switch.has-sample-trial-bar .sample-trial-bar p { white-space: nowrap; font-size: 11.5px; }
  body.has-sample-switch.has-sample-trial-bar .sample-trial-bar .stb-main { justify-content: flex-end; flex-wrap: nowrap; }
}
