.mt-cookie-banner, .mt-cookie-dialog {
  box-sizing: border-box;
  color: #24222e;
  background: #fffdf9;
  border: 1px solid #ded8d1;
  border-radius: 20px;
  font: 15px/1.55 Arial, sans-serif;
  text-align: left;
  box-shadow: 0 12px 48px #24222e26;
}
.mt-cookie-banner {
  position: fixed;
  z-index: 10000;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 460px;
  max-height: calc(100dvh - 40px);
  overflow: auto;
  padding: 24px;
}
.mt-cookie-banner[hidden] { display: none; }
.mt-cookie-banner h2, .mt-cookie-dialog h2 { margin: 0 0 10px; font: bold 23px/1.25 Georgia, serif; }
.mt-cookie-banner p, .mt-cookie-dialog p { margin: 0 0 18px; }
.mt-cookie-banner a, .mt-cookie-dialog a { color: #533586; text-decoration: underline; text-underline-offset: 3px; }
.mt-cookie-actions { display: flex; gap: 10px; }
.mt-cookie-actions button, .mt-cookie-save {
  flex: 1;
  padding: 12px 10px;
  min-height: 46px;
  border: 1px solid #65517c;
  border-radius: 10px;
  color: #362646;
  background: #f3edf9;
  font: bold 14px/1.4 Arial, sans-serif;
  cursor: pointer;
}
.mt-cookie-actions button:hover { background: #e9ddf4; }
.mt-cookie-links { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 16px; margin-top: 10px; font-size: 13px; }
.mt-cookie-links button { border: 0; background: none; padding: 10px 0; min-height: 44px; font: inherit; color: #533586; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.mt-cookie-status:empty { display: none; }
.mt-cookie-banner .mt-cookie-status, .mt-cookie-dialog .mt-cookie-status { margin: 14px 0 0; }
.mt-cookie-settings {
  display: block;
  margin: 16px auto;
  padding: 11px 20px;
  min-height: 44px;
  border: 0;
  border-radius: 0;
  color: #533586;
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 3px;
  font: 14px/1.4 Arial, sans-serif;
  cursor: pointer;
}
.mt-cookie-settings:hover { background: #f3edf9; }
.mt-cookie-dialog { width: calc(100% - 32px); max-width: 560px; max-height: calc(100dvh - 32px); padding: 28px; overflow: auto; }
.mt-cookie-dialog::backdrop { background: #24222e80; }
.mt-cookie-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.mt-cookie-eyebrow { display: block; margin-bottom: 8px; color: #65517c; font: bold 10px/1.4 Arial, sans-serif; letter-spacing: 1.5px; }
.mt-cookie-heading button { flex-shrink: 0; width: 44px; height: 44px; padding: 0; border: 1px solid #ded8d1; border-radius: 50%; background: transparent; color: #24222e; font: 26px/1 Arial, sans-serif; cursor: pointer; }
.mt-cookie-category { display: flex; align-items: flex-start; gap: 20px; justify-content: space-between; padding: 20px 0; border-top: 1px solid #e5dfd8; }
.mt-cookie-category h3 { margin: 0 0 6px; font: bold 16px/1.4 Arial, sans-serif; }
.mt-cookie-category p { margin: 0; color: #58515e; font-size: 14px; }
.mt-cookie-required { flex-shrink: 0; padding: 4px 9px; border-radius: 20px; color: #46624e; background: #edf2e9; font-size: 12px; }
.mt-cookie-category input { appearance: none; flex-shrink: 0; width: 48px; height: 28px; margin: 0; padding: 3px; border: 1px solid #77717e; border-radius: 20px; background: #dfdce2; cursor: pointer; }
.mt-cookie-category input::before { content: ''; display: block; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px #24222e33; }
.mt-cookie-category input:checked { background: #65517c; border-color: #65517c; }
.mt-cookie-category input:checked::before { transform: translateX(20px); }
.mt-cookie-dialog .mt-cookie-details { margin: 0 0 10px; padding: 0; border: 0; border-radius: 0; box-shadow: none; background: none; font-size: 13px; color: #58515e; }
.mt-cookie-dialog .mt-cookie-details summary { cursor: pointer; padding: 8px 0; color: #362646; font: inherit; }
.mt-cookie-dialog .mt-cookie-details p { margin: 8px 0; padding: 0; }
.mt-cookie-dialog .mt-cookie-privacy { display: inline-block; margin-bottom: 20px; font-size: 13px; }
.mt-cookie-save { display: block; width: 100%; margin-top: 10px; color: #fff; background: #65517c; }
.mt-cookie-save:hover { background: #533f6a; }
.mt-cookie-banner :focus-visible, .mt-cookie-dialog :focus-visible, .mt-cookie-settings:focus-visible { outline: 3px solid #1499b5; outline-offset: 3px; }
@media (max-width: 480px) {
  .mt-cookie-banner { bottom: 12px; left: 12px; right: 12px; padding: 20px; }
  .mt-cookie-dialog { padding: 20px; }
  .mt-cookie-category { gap: 12px; }
}
@media (forced-colors: active) {
  .mt-cookie-category input { appearance: auto; }
  .mt-cookie-category input::before { display: none; }
}
