.mp3d-cookie-preferences-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: inherit;
  font: inherit;
  font-size: .78rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  opacity: .86;
}
.mp3d-cookie-preferences-link:hover { opacity: 1; }

.mp3d-cookie-banner {
  position: fixed;
  z-index: 10000;
  right: 18px;
  bottom: 18px;
  left: 18px;
  margin: 0 auto;
  max-width: 1120px;
  color: #163541;
}
.mp3d-cookie-banner[hidden],
.mp3d-cookie-modal[hidden] { display: none !important; }
.mp3d-cookie-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 18px 20px;
  border: 1px solid rgba(0, 145, 183, .2);
  border-radius: 18px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 18px 60px rgba(6, 48, 64, .22);
  backdrop-filter: blur(12px);
}
.mp3d-cookie-banner__inner h2 {
  margin: 0 0 5px;
  color: #082f40;
  font-size: 1rem;
  font-weight: 900;
}
.mp3d-cookie-banner__inner p {
  max-width: 680px;
  margin: 0;
  color: #4c6873;
  font-size: .78rem;
  line-height: 1.55;
}
.mp3d-cookie-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.mp3d-cookie-button {
  min-height: 42px;
  padding: 10px 15px;
  border: 1px solid #cddde3;
  border-radius: 10px;
  background: #fff;
  color: #244651;
  font-size: .74rem;
  font-weight: 850;
  line-height: 1.15;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.mp3d-cookie-button:hover { transform: translateY(-1px); border-color: #82bfce; }
.mp3d-cookie-button--dark { border-color: #183d4a; background: #183d4a; color: #fff; }
.mp3d-cookie-button--primary { border-color: #0091b7; background: #0091b7; color: #fff; }
.mp3d-cookie-button:focus-visible,
.mp3d-cookie-preferences-link:focus-visible,
.mp3d-switch input:focus-visible + span {
  outline: 3px solid rgba(0, 145, 183, .28);
  outline-offset: 2px;
}

.mp3d-cookie-modal {
  position: fixed;
  z-index: 10001;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(7, 31, 40, .58);
}
.mp3d-cookie-modal__panel {
  width: min(100%, 560px);
  max-height: min(90vh, 720px);
  overflow: auto;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 26px 90px rgba(0, 0, 0, .32);
}
.mp3d-cookie-modal__header,
.mp3d-cookie-modal__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
}
.mp3d-cookie-modal__header { border-bottom: 1px solid #e4eef1; }
.mp3d-cookie-modal__header h2 { margin: 0; color: #0b3443; font-size: 1.15rem; font-weight: 900; }
.mp3d-cookie-modal__body { display: grid; gap: 12px; padding: 18px 20px; }
.mp3d-cookie-modal__footer { justify-content: flex-end; border-top: 1px solid #e4eef1; }
.mp3d-cookie-category {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 15px;
  border: 1px solid #dce9ed;
  border-radius: 14px;
  background: #f9fcfd;
}
.mp3d-cookie-category strong { display: block; margin-bottom: 3px; color: #153e4d; font-size: .86rem; }
.mp3d-cookie-category p { margin: 0; color: #607781; font-size: .73rem; line-height: 1.45; }
.mp3d-switch { position: relative; display: inline-flex; width: 46px; height: 26px; flex: 0 0 auto; }
.mp3d-switch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.mp3d-switch span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #b8c9cf;
  cursor: pointer;
  transition: background .18s ease;
}
.mp3d-switch span::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
  transition: transform .18s ease;
}
.mp3d-switch input:checked + span { background: #0091b7; }
.mp3d-switch input:checked + span::after { transform: translateX(20px); }
.mp3d-switch input:disabled + span { cursor: not-allowed; opacity: .62; }

@media (max-width: 760px) {
  .mp3d-cookie-banner { right: 10px; bottom: 10px; left: 10px; }
  .mp3d-cookie-banner__inner { align-items: stretch; flex-direction: column; gap: 14px; padding: 17px; border-radius: 16px; }
  .mp3d-cookie-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .mp3d-cookie-actions .mp3d-cookie-button--primary { grid-column: 1 / -1; }
  .mp3d-cookie-button { width: 100%; }
  .mp3d-cookie-modal { align-items: end; padding: 0; }
  .mp3d-cookie-modal__panel { width: 100%; max-height: 92vh; border-radius: 20px 20px 0 0; }
  .mp3d-cookie-modal__footer { display: grid; grid-template-columns: 1fr 1fr; }
}
