/* Cookie bar and preferences (bos-consent.php). Mockup "Blue Ox Cookie Banner". */
.bos-cc, .bos-cc-dialog { --ink: #0b0f11; --grey: #4a5a60; --line: #e3e9ea; --cyan: #1db9dc; --cyan-dark: #0d7f97;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); }
.bos-cc *, .bos-cc-dialog * { box-sizing: border-box; }
.bos-cc { position: fixed; left: 0; right: 0; bottom: 0; z-index: 99999; background: #fff; border-top: 4px solid var(--cyan);
  box-shadow: 0 -16px 50px rgba(0, 0, 0, 0.35); padding: 22px 40px; }
.bos-cc[hidden] { display: none; }
.bos-cc-in { max-width: 1360px; margin: 0 auto; display: flex; align-items: center; gap: 40px; }
.bos-cc-text { flex: 1 1 auto; min-width: 0; }
.bos-cc h2, .bos-cc-dialog h2 { margin: 0; font-weight: 900; text-transform: uppercase; letter-spacing: 0.02em; line-height: 1.1; color: var(--ink); }
.bos-cc h2 { font-size: 20px; margin-bottom: 8px; }
.bos-cc p { margin: 0; max-width: 720px; font-size: 15px; line-height: 1.55; color: #26333a; }
.bos-cc a, .bos-cc-dialog a, .bos-cc-link { color: var(--cyan-dark); font-weight: 700; text-decoration: underline; }
.bos-cc-actions { flex-shrink: 0; display: flex; align-items: center; gap: 12px; }
.bos-cc-link { min-height: 52px; padding: 0 12px; background: none; border: 0; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.bos-cc-btn { display: inline-flex; align-items: center; justify-content: center; text-align: center; line-height: 1.2; min-height: 52px; min-width: 190px; padding: 0 20px; background: var(--cyan); color: var(--ink); border: 1px solid var(--cyan); border-radius: 0;
  font: inherit; font-size: 15px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; }
.bos-cc-btn:hover { background: #5fd3ec; border-color: #5fd3ec; }
.bos-cc-btn.is-outline { background: #fff; border-color: var(--ink); }
.bos-cc-btn.is-outline:hover { background: #f5f5f5; }
.bos-cc button:focus-visible, .bos-cc-dialog button:focus-visible, .bos-cc a:focus-visible, .bos-cc-dialog a:focus-visible { outline: 2px solid var(--cyan-dark); outline-offset: 2px; }

.bos-cc-dialog { width: min(560px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 0; border: 0; border-radius: 0; background: #fff; overflow: auto; }
.bos-cc-dialog::backdrop { background: rgba(11, 15, 17, 0.6); }
.bos-cc-form { padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.bos-cc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.bos-cc-dialog h2 { font-size: 22px; }
.bos-cc-close { width: 44px; height: 44px; margin: -10px -10px 0 0; display: inline-flex; align-items: center; justify-content: center; background: none; border: 0; color: var(--ink); cursor: pointer; }
.bos-cc-intro, .bos-cc-note { margin: 0; font-size: 14px; line-height: 1.5; color: #26333a; }
.bos-cc-note { font-size: 13px; color: var(--grey); }
.bos-cc-rows { border-bottom: 1px solid var(--line); }
.bos-cc-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 16px 0; border-top: 1px solid var(--line); }
.bos-cc-row > div { display: flex; flex-direction: column; gap: 4px; }
.bos-cc-row strong { font-size: 15px; }
.bos-cc-row span { font-size: 13px; line-height: 1.5; color: var(--grey); }
.bos-cc-row em { flex-shrink: 0; font-style: normal; font-size: 12px; font-weight: 700; color: var(--grey); text-transform: uppercase; letter-spacing: 0.06em; }
.bos-cc-switch { flex-shrink: 0; position: relative; width: 52px; height: 30px; padding: 0; border-radius: 15px; border: 1px solid #8a989d; background: var(--line); cursor: pointer; }
.bos-cc-switch span { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 11px; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); transition: left 0.15s; }
.bos-cc-switch[aria-checked="true"] { background: var(--cyan-dark); border-color: var(--cyan-dark); }
.bos-cc-switch[aria-checked="true"] span { left: 25px; }
.bos-cc-dactions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.bos-cc-dactions .bos-cc-btn { min-width: 0; }

/* Footer link (bos-chrome.php) */
.bos-ft-cookies { padding: 0; background: none; border: 0; font: inherit; color: inherit; cursor: pointer; }
.bos-ft-cookies:hover { color: var(--cyan, #1db9dc); }
/* Keep the page's last lines reachable above the bar */
html.bos-cc-open body { padding-bottom: 140px; }

@media (max-width: 900px) {
  .bos-cc { padding: 18px 16px 20px; }
  .bos-cc-in { flex-direction: column; align-items: stretch; gap: 12px; }
  .bos-cc h2 { font-size: 16px; }
  .bos-cc p { font-size: 13px; }
  .bos-cc-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .bos-cc-actions .bos-cc-link { grid-column: 1 / -1; grid-row: 2; justify-self: center; min-height: 44px; }
  .bos-cc-btn { min-width: 0; min-height: 48px; font-size: 13px; }
  .bos-cc-actions .bos-cc-btn.is-outline { grid-column: 2; grid-row: 1; }
  .bos-cc-actions .bos-cc-btn:not(.is-outline) { grid-column: 1; grid-row: 1; }
  html.bos-cc-open body { padding-bottom: 260px; }
  .bos-cc-dialog { width: 100%; max-width: none; max-height: calc(100% - 64px); margin: auto 0 0; }
  .bos-cc-form { padding: 20px 16px; }
  .bos-cc-dactions { grid-template-columns: minmax(0, 1fr); }
  .bos-cc-dactions .bos-cc-btn:not(.is-outline) { order: -1; }
}
