/* BossAI family layer v1. Colours come from each store's own footer via
 * --bossai-family-bg / --bossai-family-fg set by bossai-family-v1.js. */

.bossai-family {
  --bossai-family-line: color-mix(in srgb, var(--bossai-family-fg, #333) 16%, transparent);
  display: block;
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 14px 16px 18px;
  background: var(--bossai-family-bg, #fff);
  color: var(--bossai-family-fg, #333);
  font-family: var(--bossai-family-font, system-ui, sans-serif);
  font-size: 13px;
  line-height: 1.5;
  text-align: left;
  border-top: 1px solid var(--bossai-family-line);
  position: relative;
  z-index: 1;
}
.bossai-family *,
.bossai-family *::before,
.bossai-family *::after { box-sizing: border-box; }
.bossai-family__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
}
.bossai-family p,
.bossai-family ul { margin: 0; padding: 0; }
.bossai-family__brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.bossai-family__mark {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: var(--bossai-family-fg, #333);
  color: var(--bossai-family-bg, #fff);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}
.bossai-family__sep { opacity: 0.5; }
.bossai-family__stores {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
}
.bossai-family__label { opacity: 0.7; }
.bossai-family__stores ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
}
.bossai-family__stores li { margin: 0; padding: 0; list-style: none; }
.bossai-family a,
.bossai-family a:visited {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--bossai-family-line);
  text-underline-offset: 3px;
  opacity: 0.85;
}
.bossai-family a:hover,
.bossai-family a:focus-visible { opacity: 1; text-decoration-color: currentColor; }
.bossai-family__home { margin-left: 4px; font-weight: 500; }
.bossai-family__current { font-weight: 700; }

@media (max-width: 640px) {
  .bossai-family { padding: 14px 16px 22px; }
  .bossai-family__inner { flex-direction: column; align-items: flex-start; }
}

/* ---------- DestinyKit region status ---------- */

.bossai-dk-status {
  display: inline-block;
  margin: 4px 0 0;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.02em;
  white-space: nowrap;
  font-style: normal;
}
.bossai-dk-status--browse { background: #e7f0ff; color: #1d4ed8; }
.bossai-dk-status--inactive { background: #f1f1f1; color: #6b6b6b; border: 1px dashed #b5b5b5; }
/* Narrow country cards (3 columns on phones): let long labels such as
   "Noch nicht aktiv" wrap inside the card instead of overflowing it. */
a.market-directory-card .bossai-dk-status {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: break-word;
  border-radius: 10px;
}

a.market-directory-card.bossai-dk-card--inactive {
  opacity: 0.72;
  border-style: dashed !important;
  filter: grayscale(0.6);
}
a.market-directory-card.bossai-dk-card--inactive:hover { opacity: 0.9; }

.bossai-dk-strip {
  box-sizing: border-box;
  width: 100%;
  padding: 8px 16px;
  background: #f6f7f9;
  color: #333;
  border-bottom: 1px solid #e3e5e8;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.5;
  position: relative;
  z-index: 50;
}
.bossai-dk-strip__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bossai-dk-strip__regions {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 14px;
}
.bossai-dk-strip__regions li { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.bossai-dk-strip__label { font-weight: 600; opacity: 0.75; }
.bossai-dk-strip__region a { color: inherit; text-underline-offset: 3px; }
.bossai-dk-strip__region [aria-current] { font-weight: 700; }
.bossai-dk-strip .bossai-dk-status { margin: 0; }

.bossai-dk-strip__notice {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
}
.bossai-dk-strip__notice strong { font-size: 15px; }
.bossai-dk-strip__back { font-weight: 700; color: inherit; }

.bossai-dk-strip--inactive {
  background: #fff4d6;
  color: #5c4300;
  border-bottom: 2px solid #e0b100;
  padding: 12px 16px;
}
.bossai-dk-strip--inactive .bossai-dk-strip__notice strong { font-size: 17px; }

/* On a store that is not active, make the order affordances read as disabled. */
body[data-bossai-dk-region="inactive"] .product-card button,
body[data-bossai-dk-region="inactive"] [data-action="add-to-cart"],
body[data-bossai-dk-region="inactive"] #market-primary-cta {
  opacity: 0.55;
}

/* 2026-11-22 site review: on phones a closed DestinyKit store said "not open" five times above the
   fold. Keep the one region notice; drop the per-region list, the store's own browse-only badge
   bar and the promo line, which repeat the same fact. */
@media (max-width: 720px) {
  .bossai-dk-strip .bossai-dk-strip__regions { display: none; }
  body:has(#bossai-dk-region-status) #browse-only-banner,
  body:has(#bossai-dk-region-status) > .promo { display: none !important; }
}

.bossai-family__seller { margin: 8px 0 0; font-size: 12px; opacity: 0.85; display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; }
.bossai-family__seller a { color: inherit; text-underline-offset: 3px; }

/* Password show/hide toggle (overlay positioned by bossai-family-v1.js). */
.bossai-eye { position: absolute; display: inline-flex; align-items: center; justify-content: center; padding: 0; margin: 0; border: 0; border-radius: 8px; background: transparent; color: #555; cursor: pointer; }
.bossai-eye:hover { opacity: 0.75; }
.bossai-eye:focus-visible { outline: 2px solid #2563eb; outline-offset: 1px; }
.bossai-eye[hidden] { display: none; }
