/* Cookie consent UI — matches the Intelysource "Bearing" system */

.cc-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 300;
  background: var(--navy-900); color: rgba(255,255,255,0.86);
  border-top: 3px solid var(--navy-700);
  transform: translateY(105%); transition: transform 0.45s var(--ease);
  box-shadow: 0 -12px 40px rgba(0,0,0,0.28);
}
.cc-bar.is-open { transform: translateY(0); }
.cc-bar__inner {
  width: min(1140px, 100% - 40px); margin-inline: auto; padding: 18px 0 20px;
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
}
.cc-bar__text { margin: 0; font-size: 0.92rem; line-height: 1.55; flex: 1 1 460px; color: rgba(255,255,255,0.78); }
.cc-bar__text a { color: var(--brass-300); text-decoration: underline; text-underline-offset: 2px; }
.cc-bar__actions { display: flex; gap: 10px; flex-wrap: wrap; }

.cc-btn {
  font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  background: #eef1f4; color: #14202c; border: 1px solid transparent;
  padding: 11px 20px; border-radius: 3px; cursor: pointer; transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.cc-btn:hover { background: #ffffff; border-color: transparent; }
.cc-btn--ghost { background: transparent; color: rgba(255,255,255,0.82); border-color: rgba(255,255,255,0.28); }
.cc-btn--ghost:hover { background: rgba(255,255,255,0.1); color: #fff; }

.cc-modal { position: fixed; inset: 0; z-index: 320; display: none; }
.cc-modal.is-open { display: block; }
.cc-modal__backdrop { position: absolute; inset: 0; background: rgba(6,25,46,0.55); backdrop-filter: blur(2px); }
.cc-modal__dialog {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(560px, calc(100% - 32px)); max-height: calc(100vh - 48px); overflow-y: auto;
  background: var(--paper); border-radius: 6px; padding: 34px 34px 30px; border-top: 3px solid var(--navy-700);
  box-shadow: 0 30px 80px rgba(6,25,46,0.4);
}
.cc-modal__close { position: absolute; right: 16px; top: 12px; background: none; border: 0; font-size: 28px; line-height: 1; color: var(--slate); cursor: pointer; }
.cc-modal__close:hover { color: var(--navy); }
.cc-kicker { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass-600); margin: 0 0 6px; }
.cc-modal__dialog h2 { font-family: var(--display); font-size: 1.7rem; color: var(--navy); margin: 0 0 10px; font-weight: 500; }
.cc-modal__intro { font-size: 0.95rem; color: var(--slate); margin: 0 0 20px; line-height: 1.6; }
.cc-cat { border-top: 1px solid var(--line); padding: 16px 0; }
.cc-cat__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cc-cat h3 { font-family: var(--sans); font-size: 1.05rem; color: var(--navy); margin: 0; font-weight: 600; }
.cc-cat p { font-size: 0.88rem; color: var(--slate); margin: 8px 0 0; line-height: 1.55; }
.cc-always { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brass-600); }
.cc-modal__actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; flex-wrap: wrap; }

/* toggle */
.cc-switch { position: relative; display: inline-block; width: 46px; height: 26px; flex: none; }
.cc-switch input { opacity: 0; width: 0; height: 0; }
.cc-slider { position: absolute; inset: 0; background: #c9cdd2; border-radius: 40px; transition: background 0.2s var(--ease); cursor: pointer; }
.cc-slider::before { content: ""; position: absolute; height: 20px; width: 20px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform 0.2s var(--ease); }
.cc-switch input:checked + .cc-slider { background: var(--navy-700); }
.cc-switch input:checked + .cc-slider::before { transform: translateX(20px); }
.cc-switch input:focus-visible + .cc-slider { outline: 2px solid var(--brass); outline-offset: 2px; }

@media (max-width: 620px) {
  .cc-bar__actions { width: 100%; }
  .cc-bar__actions .cc-btn { flex: 1; }
}
