/*
 * Region banner — ONE stylesheet for both sites: the Quick AI POS site (/ai/) links it
 * from its layout, the WordPress site loads https://www.quickdrycleaning.com/ai/region-switcher.css
 * (website/wordpress/region-switcher.js). Behaviour: region-switcher.js.
 *
 * The banner lives inside other sites' pages (the WordPress theme styles every button,
 * select and paragraph, some with !important), so the properties a theme touches are pinned.
 */
#qdc-region:empty { display: none; }
/*
 * Pinned: a visitor on the wrong site keeps the way out in view until they choose or close.
 * The bar is position: fixed (sticky breaks under the WordPress theme's overflow-x: hidden on
 * html/body); #qdc-region stays in the page as a spacer of the bar's height (set by the script).
 */
#qdc-region .qdc-rb-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100000;
  background: #1E1B16;
  color: #E9E1D3;
  font: 400 13px/1.4 Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}
#qdc-region * { box-sizing: border-box; text-transform: none !important; letter-spacing: normal !important; text-shadow: none !important; }
#qdc-region .qdc-rb-in {
  max-width: 1080px;
  margin: 0 auto;
  padding: 12px clamp(16px, 3.5vw, 48px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 32px;
}
#qdc-region .qdc-rb-text {
  flex: 1 1 280px;
  max-width: 460px;
  margin: 0 !important;
  padding: 0 !important;
  color: #E9E1D3 !important;
  font: inherit !important;
}
#qdc-region .qdc-rb-actions { flex: 0 1 auto; display: flex; align-items: center; gap: 10px; min-width: 0; }
#qdc-region .qdc-rb-select { position: relative; display: block; flex: 1 1 260px; min-width: 0; margin: 0; }
#qdc-region .qdc-rb-select::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid #E9E1D3;
  border-bottom: 1.5px solid #E9E1D3;
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
#qdc-region select {
  -webkit-appearance: none;
  appearance: none;
  width: 100% !important;
  min-width: 220px;
  height: 36px !important;
  margin: 0 !important;
  padding: 0 36px 0 12px !important;
  border: 1px solid rgba(255, 255, 255, .18) !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, .08) !important;
  box-shadow: none !important;
  color: #fff !important;
  font: 500 14px/1 Inter, system-ui, -apple-system, 'Segoe UI', sans-serif !important;
  cursor: pointer;
}
#qdc-region select option { color: #1E1B16; background: #fff; }
#qdc-region .qdc-rb-go,
#qdc-region .qdc-rb-close {
  flex: none;
  margin: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  font: 600 14px/1 Inter, system-ui, -apple-system, 'Segoe UI', sans-serif !important;
  cursor: pointer;
  min-height: 0;
  width: auto;
}
#qdc-region .qdc-rb-go {
  height: 36px;
  padding: 0 16px !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: #1E1B16 !important;
}
#qdc-region .qdc-rb-go:hover { background: #FBF6EE !important; }
#qdc-region .qdc-rb-close {
  width: 32px;
  height: 32px;
  padding: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: #E9E1D3 !important;
  font-size: 16px !important;
}
#qdc-region .qdc-rb-close:hover { background: rgba(255, 255, 255, .12) !important; }
#qdc-region select:focus-visible,
#qdc-region button:focus-visible { outline: 2px solid #F0A673 !important; outline-offset: 2px; }
#qdc-region .qdc-rb-sr {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
@media (max-width: 640px) {
  #qdc-region .qdc-rb-in { padding-top: 12px; padding-bottom: 14px; }
  #qdc-region .qdc-rb-text { flex-basis: 100%; max-width: none; padding-right: 36px !important; }
  #qdc-region .qdc-rb-actions { flex-basis: 100%; }
  #qdc-region select { min-width: 0; }
  #qdc-region .qdc-rb-close { position: absolute; top: 8px; right: 8px; }
}

/* WordPress, signed-in admins: below the fixed admin bar. */
body.admin-bar #qdc-region .qdc-rb-bar { top: 32px; }
@media (max-width: 782px) { body.admin-bar #qdc-region .qdc-rb-bar { top: 46px; } }

/* /ai/ only: the floating nav sits below the banner while it is shown. */
[data-site-nav] { top: calc(clamp(12px, 1.6vw, 20px) + var(--qdc-region-offset, 0px)) !important; }
