/* Cookie consent bar (consent.js): full width along the bottom, like Cookiebot. Accept and reject stay one click away. */
.cookie { position: fixed; z-index: 60; left: 50%; bottom: 16px; width: min(100% - 32px, 1240px); translate: -50% 0; max-height: 92vh; overflow-y: auto; padding: 28px clamp(18px, 3.2vw, 56px); border-radius: 26px; background: #fff; color: #111; font-family: "Manrope", "Helvetica Neue", Arial, sans-serif; font-size: 14.5px; line-height: 1.55; letter-spacing: -0.01em; box-shadow: 0 24px 60px -24px rgba(20, 22, 30, 0.35), 0 0 0 1px rgba(17, 17, 17, 0.06); animation: cookieIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) both; }
.cookie[hidden] { display: none; }
.cookie-in { display: grid; grid-template-columns: minmax(0, 1fr) 260px; align-items: center; gap: 24px clamp(24px, 4vw, 64px); width: min(100%, 1440px); margin: 0 auto; }
.cookie-body { display: grid; justify-items: start; gap: 8px; }
.cookie-title { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.3; letter-spacing: -0.02em; }
.cookie-text { margin: 0; max-width: 92ch; color: #333; }
.cookie-text a { color: #111; }
.cookie-btn svg { width: 16px; height: 16px; }
.cookie-prefs { display: grid; gap: 8px; width: 100%; }
.cookie-cat { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 14px 16px; border-radius: 16px; background: #f4f4f4; cursor: pointer; }
.cookie-cat-txt { display: grid; gap: 2px; }
.cookie-cat b { font-weight: 600; }
.cookie-cat small { font-size: 12.5px; line-height: 1.45; color: #5c5c5c; }
.cookie-cat input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cookie-switch { position: relative; flex: 0 0 auto; width: 42px; height: 24px; margin-top: 2px; border-radius: 999px; background: #cfcfcf; transition: background 0.2s; }
.cookie-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1); }
.cookie-cat input:checked + .cookie-switch { background: var(--blue, #2f6bff); }
.cookie-cat input:checked + .cookie-switch::after { transform: translateX(18px); }
.cookie-cat input:disabled + .cookie-switch { opacity: 0.55; }
.cookie-cat input:focus-visible + .cookie-switch { outline: 2px solid #111; outline-offset: 3px; }
.cookie-actions { display: grid; gap: 10px; align-self: center; }
/* same look as the site buttons: pill (or the Style tab choice), accent colour for the main action */
.cookie-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 50px; padding: 0 22px; border: 0; border-radius: var(--btn-radius, 999px); font: inherit; font-size: 15px; font-weight: var(--btn-weight, 500); color: #111; background: #f1f1f1; cursor: pointer; transition: background 0.2s, color 0.2s, transform 0.1s; }
.cookie-btn:hover { background: #e6e6e6; }
.cookie-btn:active { transform: translateY(1px); }
.cookie-btn.is-primary { color: #fff; background: var(--blue, #2f6bff); box-shadow: 0 14px 30px -16px color-mix(in srgb, var(--blue, #2f6bff) 70%, transparent); }
.cookie-btn.is-primary:hover { background: var(--blue-2, #1f55e8); }
.cookie-btn[hidden] { display: none; }
.cookie :focus-visible { outline: 2px solid #111; outline-offset: 3px; }
@keyframes cookieIn { from { opacity: 0; transform: translateY(24px); } }
/* the preferences popup */
.cookie-modal { position: fixed; z-index: 70; inset: 0; display: grid; place-items: center; padding: 16px; font-family: "Manrope", "Helvetica Neue", Arial, sans-serif; letter-spacing: -0.01em; color: #111; }
.cookie-modal[hidden] { display: none; }
.cookie-backdrop { position: absolute; inset: 0; background: rgba(12, 12, 14, 0.5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: cookieFade 0.4s ease both; }
.cookie-dialog { position: relative; display: grid; gap: 16px; width: min(100%, 560px); max-height: calc(100vh - 32px); overflow-y: auto; padding: clamp(22px, 3vw, 32px); border-radius: 26px; background: #fff; font-size: 14.5px; line-height: 1.55; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.5); animation: cookiePop 0.5s cubic-bezier(0.16, 1, 0.3, 1) both; }
.cookie-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.cookie-dialog .cookie-title { font-size: 20px; }
.cookie-x { display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: #f4f4f4; font: inherit; font-size: 22px; line-height: 1; color: #111; cursor: pointer; }
.cookie-x:hover { background: #e7e7e7; }
.cookie-modal-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 4px; }
.cookie-modal-actions .cookie-btn { padding: 0 12px; font-size: 14px; }
html.cookie-lock { overflow: hidden; }
@keyframes cookieFade { from { opacity: 0; } }
@keyframes cookiePop { from { opacity: 0; transform: translateY(16px) scale(0.98); } }
@media (prefers-reduced-motion: reduce) { .cookie, .cookie-backdrop, .cookie-dialog { animation: none; } .cookie-switch, .cookie-switch::after { transition: none; } }
@media (max-width: 1080px) { .cookie-in { grid-template-columns: minmax(0, 1fr) 220px; } }
@media (max-width: 720px) {
  .cookie { bottom: 10px; width: calc(100% - 20px); padding: 20px 18px 18px; border-radius: 22px; font-size: 14px; }
  .cookie-in { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .cookie-btn { height: 46px; }
  .cookie-actions { grid-template-columns: 1fr 1fr; }
  .cookie-modal-actions { grid-template-columns: minmax(0, 1fr); }
}

/* Cookie overview on the cookie policy page */
.cookie-table-wrap { overflow-x: auto; margin: 16px 0; }
.cookie-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 14px; line-height: 1.5; }
.cookie-table th, .cookie-table td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid rgba(17, 17, 17, 0.08); }
.cookie-table th { font-weight: 600; background: #f4f4f4; }
