/* Cookie choices (consent.js). A slim, quiet card bottom left on desktop and a
   short strip on phones; the settings view opens in the same card. */
.dvc {
  position: fixed; left: 20px; bottom: 20px; z-index: 9000; width: min(388px, calc(100vw - 24px));
  font-family: 'Inter', -apple-system, sans-serif; color: #fff;
  opacity: 0; transform: translateY(8px); transition: opacity 0.22s ease, transform 0.3s cubic-bezier(0.16,1,0.3,1);
}
.dvc.is-in { opacity: 1; transform: none; }
.dvc[hidden] { display: none; }
.dvc-card {
  position: relative; max-height: calc(100vh - 40px); overflow: auto; overscroll-behavior: contain;
  padding: 14px 16px 12px; border-radius: 14px;
  background: #0d0e1a; border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 12px 32px rgba(0,0,0,0.28);
}
.dvc-card:focus { outline: none; }
.dvc-card:focus-visible, .dvc :focus-visible { outline: 2px solid #8c8eff; outline-offset: 2px; }

.dvc-desc { margin: 0; color: rgba(255,255,255,0.72); font-size: 12.5px; line-height: 1.5; }
.dvc a { color: #fff; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,0.35); transition: text-decoration-color 0.2s; }
.dvc a:hover { text-decoration-color: #fff; }

.dvc-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.dvc-bar-r { display: flex; gap: 6px; }
.dvc-btn {
  min-height: 32px; padding: 7px 14px; border-radius: 999px; cursor: pointer;
  font: 500 12.5px/1.2 'Inter', -apple-system, sans-serif; color: #fff; white-space: nowrap;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.16);
  transition: background 0.2s, border-color 0.2s, transform 0.2s cubic-bezier(0.16,1,0.3,1);
}
.dvc-btn:hover { background: rgba(255,255,255,0.13); border-color: rgba(255,255,255,0.32); }
.dvc-btn:active { transform: scale(0.97); }
.dvc-btn--save { background: #fff; color: #05060c; border-color: #fff; }
.dvc-btn--save:hover { background: #e9e9f2; border-color: #e9e9f2; }

.dvc-link {
  padding: 6px 2px; border: 0; background: none; cursor: pointer; border-radius: 6px;
  color: rgba(255,255,255,0.62); font: 500 12.5px/1.2 'Inter', -apple-system, sans-serif;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,0.25);
  transition: color 0.2s, text-decoration-color 0.2s;
}
.dvc-link:hover { color: #fff; text-decoration-color: #fff; }

/* settings view */
.dvc-title { margin: 0 34px 6px 0; font-family: 'Chakra Petch', 'Inter', sans-serif; font-size: 15px; font-weight: 600; letter-spacing: 0.01em; line-height: 1.3; }
.dvc-title:focus { outline: none; }
.dvc-x {
  position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; display: grid; place-items: center;
  border-radius: 50%; border: 0; background: transparent; color: rgba(255,255,255,0.6);
  cursor: pointer; transition: background 0.2s, color 0.2s;
}
.dvc-x[hidden] { display: none; }
.dvc-x:hover { background: rgba(255,255,255,0.1); color: #fff; }
.dvc-x:active { transform: scale(0.92); }
.dvc-x svg { width: 14px; height: 14px; }

.dvc-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,0.08); }
.dvc-row-h { display: block; margin: 0 0 2px; font-size: 13px; font-weight: 600; color: #fff; cursor: default; }
label.dvc-row-h { cursor: pointer; }
.dvc-row-p { margin: 0; color: rgba(255,255,255,0.58); font-size: 12px; line-height: 1.5; }
.dvc-always { flex: none; margin-top: 1px; font-size: 11.5px; font-weight: 500; color: rgba(255,255,255,0.55); white-space: nowrap; }
.dvc-switch {
  appearance: none; -webkit-appearance: none; flex: none; position: relative; width: 36px; height: 20px; margin: 1px 0 0; cursor: pointer;
  border-radius: 999px; background: rgba(255,255,255,0.16); border: 1px solid rgba(255,255,255,0.22);
  transition: background 0.2s, border-color 0.2s;
}
.dvc-switch::before {
  content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff;
  transition: transform 0.24s cubic-bezier(0.16,1,0.3,1);
}
.dvc-switch:checked { background: #6a6cff; border-color: #6a6cff; }
.dvc-switch:checked::before { transform: translateX(16px); }
.dvc-switch:focus-visible { outline: 2px solid #8c8eff; outline-offset: 3px; }
.dvc-actions { display: flex; justify-content: flex-end; gap: 6px; margin-top: 12px; }
.dvc-foot { display: flex; gap: 14px; margin: 10px 0 0; font-size: 12px; }
.dvc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; }

@media (max-width: 600px) {
  .dvc { left: 8px; right: 8px; bottom: 8px; width: auto; }
  .dvc-card { padding: 12px 14px 10px; border-radius: 12px; max-height: calc(100vh - 16px); max-height: calc(100dvh - 16px); }
  .dvc-desc { font-size: 12px; }
  .dvc-bar { margin-top: 8px; }
  .dvc-btn { padding: 7px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .dvc, .dvc-btn, .dvc-switch, .dvc-switch::before, .dvc-x { transition: none; }
  .dvc { transform: none; }
}
