.mc-cookie-notice {
  color-scheme: light;
  width: min(800px, calc(100% - 28px));
  max-height: min(720px, calc(100dvh - 28px));
  padding: 0;
  border: 1px solid #d5d9d1;
  border-radius: 18px;
  background: #fff;
  color: #171b15;
  box-shadow: 0 22px 85px #0006;
}
.mc-cookie-notice::backdrop { background: #090a0b9c; backdrop-filter: blur(5px); }
.mc-cookie-sheet { padding: clamp(16px,4vw,30px); display:flex; flex-direction:column; max-height:min(720px,calc(100dvh - 28px)); overflow:hidden; }
.portal .mc-cookie-notice :is(h2,h3) { color: #171b15; font-weight: 650; letter-spacing: -.025em; }
.mc-cookie-notice h2 { font-size: clamp(1.3rem,3.5vw,1.9rem); margin: 0 0 12px; }
.mc-cookie-notice h3 { font-size: 1rem; margin: 0 0 8px; }
.portal .mc-cookie-notice p { margin: 0 0 12px; color: #42483e; font-size: .94rem; }
.mc-cookie-notice a { color: #36530f; text-decoration: underline; text-underline-offset: .18em; }
.mc-cookie-tabs { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border-bottom: 1px solid #d7ddd1; }
.mc-cookie-tabs button { min-height: 45px; padding: 8px 4px; border: 0; border-bottom: 2px solid transparent; background: none; color: #444a41; font-size: .92rem; }
.mc-cookie-tabs button[aria-selected="true"] { border-color: #526f24; color: #324c0c; font-weight: 660; }
.mc-cookie-content { min-height: 158px; padding: 20px 10px 12px 3px; overflow-y:auto; overscroll-behavior:contain; scrollbar-gutter:stable; }
.mc-cookie-row { display: flex; align-items: start; justify-content: space-between; gap: 14px; }
.mc-cookie-row + p { padding-bottom: 12px; border-bottom: 1px solid #e1e6dc; }
.mc-cookie-row > span { color: #3f551e; font-size: .78rem; }
.mc-cookie-switch { display: flex; align-items: center; gap: 6px; font-size: .85rem; }
.mc-cookie-switch input { width: 20px; height: 20px; accent-color: #526f24; }
.mc-cookie-actions { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; flex:none; padding-top:12px; border-top:1px solid #e1e6dc; background:#fff; }
.mc-cookie-actions button { min-height: 46px; padding: 8px; border: 1px solid #7b876e; border-radius: 8px; background: #f0f4e9; color: #25321e; font-size: .85rem; font-weight: 625; }
.mc-cookie-actions button:hover { background: #e2ecd6; }
.portal .mc-cookie-notice :focus-visible { outline: 2px solid #526f24; outline-offset: 2px; }
[data-cookie-settings] { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; text-decoration: underline; text-underline-offset: .18em; }
@media (max-width: 520px) {
  .mc-cookie-actions { grid-template-columns: 1fr; }
  .mc-cookie-content { min-height: 0; }
}

/* Keep the three consent actions in view while the longer explanations scroll. */
.mc-cookie-sheet { min-height:0; }
.mc-cookie-content { flex:1 1 auto; min-height:190px; max-height:min(46vh,380px); overflow-y:auto; overscroll-behavior:contain; scrollbar-width:thin; scrollbar-color:#74777b #ececee; }
.mc-cookie-content [role="tabpanel"] { padding:0 8px 14px 0; }
.mc-cookie-content p { line-height:1.65; }
.mc-cookie-actions { position:relative; z-index:1; }
@media(max-width:520px){
  .mc-cookie-sheet { max-height:calc(100dvh - 28px); }
  .mc-cookie-content { min-height:0; max-height:36vh; flex:1 1 36vh; }
  .mc-cookie-actions { gap:7px; }
}
