.glue-cookie-tools { padding: 0.9rem 5%; text-align: center; background: var(--paper); }
.glue-cookie-tools:has(button[hidden]) { display: none; }
.glue-cookie-tools button, .glue-cookie-panel button { font: inherit; cursor: pointer; }
.glue-cookie-tools button { padding: 0.5rem; border: 0; background: transparent; color: var(--blue-dark); font-size: 0.875rem; text-decoration: underline; text-underline-offset: 0.2em; }
.glue-cookie-panel[hidden], .glue-cookie-panel [hidden] { display: none !important; }
.glue-cookie-panel { position: fixed; z-index: 90; right: 1.25rem; bottom: 1.25rem; width: min(38rem, calc(100% - 2.5rem)); max-height: 75vh; max-height: 75dvh; overflow: auto; padding: 1.5rem; border: 1px solid var(--line); border-radius: 1.1rem; background: var(--white); color: var(--ink); box-shadow: 0 0.75rem 3rem rgb(20 32 43 / 20%); font-family: var(--sans); text-align: left; }
.glue-cookie-panel h2 { margin: 0 0 0.65rem; max-width: none; width: auto; font-family: var(--sans); font-size: 1.25rem; line-height: 1.3; font-weight: 700; letter-spacing: normal; }
.glue-cookie-panel p { margin: 0.5rem 0; font-size: 1rem; line-height: 1.5; color: var(--ink-soft); }
.glue-cookie-panel [data-cookie-status]:empty { display: none; }
.glue-cookie-choices { display: grid; gap: 0.85rem; margin: 1rem 0; }
.glue-cookie-choices label { display: flex; align-items: flex-start; gap: 0.65rem; font-size: 1rem; line-height: 1.4; cursor: pointer; }
.glue-cookie-choices input { flex: 0 0 auto; width: 1.2rem; height: 1.2rem; margin: 0.15rem 0 0; accent-color: var(--blue-dark); }
.glue-cookie-choices small { display: block; margin-top: 0.25rem; font-size: 0.875rem; color: var(--ink-soft); }
.glue-cookie-choices label:has(input:disabled) { opacity: 0.6; cursor: default; }
.glue-cookie-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.65rem; margin-top: 1rem; }
.glue-cookie-actions button { min-height: 48px; padding: 0.7rem 1rem; border: 1px solid var(--blue-dark); border-radius: 0.65rem; background: var(--white); color: var(--blue-dark); font-size: 0.9375rem; line-height: 1.3; font-weight: 700; }
.glue-cookie-actions button:hover { background: var(--blue-pale); }
.glue-cookie-details { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.7rem; font-size: 0.875rem; }
.glue-cookie-details a { color: var(--blue-dark); text-decoration: underline; text-underline-offset: 0.2em; }
.glue-cookie-details button { padding: 0.65rem; border: 0; background: transparent; color: var(--ink-soft); font-size: 0.875rem; min-height: 44px; }
.glue-cookie-noscript { padding: 1rem 5%; font-size: 0.875rem; }
@media (max-width: 680px) {
  .glue-cookie-panel { right: 0.75rem; bottom: max(0.75rem, env(safe-area-inset-bottom)); width: calc(100% - 1.5rem); padding: 1.1rem; max-height: 65vh; max-height: 65dvh; }
  .glue-cookie-actions { grid-template-columns: 1fr; }
}
