.cookie-preferences-link {
  border: 0;
  padding: 0;
  margin-top: 18px;
  background: transparent;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
}

.cookie-consent-banner {
  position: fixed;
  z-index: 1100;
  right: 20px;
  bottom: 20px;
  left: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 16px 50px rgba(8, 33, 71, .18);
}

.cookie-consent-banner p { margin: 5px 0 0; }
.cookie-consent-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-consent-modal[hidden], .cookie-consent-banner[hidden] { display: none; }
.cookie-consent-modal { position: fixed; inset: 0; z-index: 1200; display: grid; place-items: center; padding: 20px; }
.cookie-consent-backdrop { position: absolute; inset: 0; background: rgba(8, 33, 71, .58); }
.cookie-consent-dialog { position: relative; width: min(620px, 100%); max-height: min(720px, 90vh); overflow: auto; padding: 30px; border-radius: 12px; background: #fff; box-shadow: 0 20px 70px rgba(8, 33, 71, .28); }
.cookie-consent-close { position: absolute; top: 12px; right: 16px; border: 0; background: transparent; color: var(--navy); font-size: 1.8rem; cursor: pointer; }
.cookie-current-status { margin: 12px 0 18px; color: var(--muted); }
.cookie-category { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 0; border-top: 1px solid var(--line); cursor: pointer; }
.cookie-category p, .cookie-category small { display: block; margin: 5px 0 0; color: var(--muted); }
.cookie-category input { width: 20px; height: 20px; accent-color: var(--turquoise); }
.cookie-category-locked > span { color: var(--turquoise); font-weight: 700; }
.cookie-consent-dialog-actions { display: flex; justify-content: flex-end; margin-top: 20px; }
.cookie-modal-open { overflow: hidden; }

@media (max-width: 640px) {
  .cookie-consent-banner { right: 10px; bottom: 10px; left: 10px; align-items: stretch; flex-direction: column; padding: 18px; }
  .cookie-consent-actions { display: grid; grid-template-columns: 1fr; }
  .cookie-consent-actions .btn { width: 100%; }
  .cookie-consent-dialog { padding: 24px 20px; }
}
