/* CookieYes sits outside .aui. These scoped colours match the shared tokens;
 * !important overrides the provider's inline colours and breakpoint geometry.
 * Its classic banner expands its own preferences wrapper, not a .cky-modal. */
body.nds-shared .cky-consent-container,
body.nds-shared .cky-consent-container * { box-sizing: border-box; }
body.nds-shared .cky-consent-container {
  right: 24px;
  bottom: 24px;
  left: auto;
  width: min(420px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  font-family: Roboto, "Segoe UI", Arial, sans-serif;
}
body.nds-shared .cky-consent-container .cky-consent-bar,
body.nds-shared .cky-consent-container .cky-preference-wrapper,
body.nds-shared .cky-consent-container .cky-preference-center {
  color: #193645 !important;
  background: #fff !important;
  border-color: #d8e1e7 !important;
  border-radius: 6px;
  border-style: solid !important;
  border-width: 1px !important;
  font-family: inherit;
}
body.nds-shared .cky-consent-container .cky-consent-bar {
  padding: 22px 24px;
  box-shadow: 0 12px 32px rgba(25, 54, 69, .14);
}
body.nds-shared .cky-consent-container .cky-notice,
body.nds-shared .cky-consent-container .cky-notice-group {
  display: block;
  width: 100%;
  max-width: none;
}
body.nds-shared .cky-consent-container .cky-title,
body.nds-shared .cky-consent-container .cky-preference-title,
body.nds-shared .cky-consent-container .cky-accordion-btn { color: #193645 !important; }
body.nds-shared .cky-consent-container .cky-notice-des,
body.nds-shared .cky-consent-container .cky-preference-content-wrapper,
body.nds-shared .cky-consent-container .cky-accordion-header-des { color: #52636f !important; }
body.nds-shared .cky-consent-container .cky-audit-table {
  color: #193645 !important;
  background: #f4f7f9 !important;
  border-color: #d8e1e7 !important;
}
body.nds-shared .cky-consent-container a[href],
body.nds-shared .cky-consent-container .cky-show-desc-btn { color: #176b91 !important; }
body.nds-shared .cky-consent-container .cky-switch input[type="checkbox"]:checked { background: #176b91 !important; }
body.nds-shared .cky-consent-container .cky-notice-btn-wrapper,
body.nds-shared .cky-consent-container .cky-prefrence-btn-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0;
}
body.nds-shared .cky-consent-container .cky-btn {
  flex: 1;
  width: auto;
  min-height: 44px;
  margin: 0;
  padding: 10px 14px;
  border-radius: 6px;
  border-style: solid !important;
  border-width: 1px !important;
  font-family: inherit;
  font-weight: 600;
  opacity: 1;
}
body.nds-shared .cky-consent-container .cky-btn-accept {
  color: #fff !important;
  background: #176b91 !important;
  border-color: #176b91 !important;
}
body.nds-shared .cky-consent-container .cky-btn-customize,
body.nds-shared .cky-consent-container .cky-btn-reject,
body.nds-shared .cky-consent-container .cky-btn-preferences {
  color: #176b91 !important;
  background: #fff !important;
  border-color: #176b91 !important;
}
body.nds-shared .cky-consent-container .cky-btn-accept:hover { background: #125574 !important; border-color: #125574 !important; }
body.nds-shared .cky-consent-container .cky-btn-customize:hover,
body.nds-shared .cky-consent-container .cky-btn-reject:hover,
body.nds-shared .cky-consent-container .cky-btn-preferences:hover { color: #125574 !important; border-color: #125574 !important; }
body.nds-shared .cky-consent-container :is(button, a, input):focus-visible { outline: 3px solid #176b91; outline-offset: 3px; }

/* Keep the provider's show/hide states and move only the expanded panel.
 * Its header/footer previously used viewport-fixed coordinates on mobile. */
body.nds-shared .cky-consent-container.cky-consent-bar-expand {
  top: 50% !important;
  right: auto !important;
  bottom: auto !important;
  left: 50% !important;
  width: min(845px, calc(100vw - 32px)) !important;
  height: min(740px, calc(100svh - 32px));
  transform: translate(-50%, -50%) !important;
}
body.nds-shared .cky-consent-container.cky-consent-bar-expand:not(.cky-hide) {
  display: flex;
  flex-direction: column;
}
body.nds-shared .cky-consent-container .cky-preference-wrapper {
  flex: 1 1 auto;
  min-height: 0;
}
body.nds-shared .cky-consent-container .cky-preference-center {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  overflow: hidden;
}
body.nds-shared .cky-consent-container .cky-preference {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow: auto;
}
body.nds-shared .cky-consent-container .cky-preference-header {
  position: sticky;
  top: 0;
  width: 100%;
  padding: 16px 24px;
  background: #fff;
  z-index: 1;
}
body.nds-shared .cky-consent-container .cky-preference-body-wrapper { padding-top: 0; }
body.nds-shared .cky-consent-container .cky-footer-wrapper {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  padding: 16px 24px;
  background: #fff;
}
body.nds-shared .cky-consent-container .cky-footer-shadow { background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff) !important; }
@media (max-width: 40rem) {
  body.nds-shared .cky-consent-container { right: 16px; bottom: 16px; }
  body.nds-shared .cky-consent-container .cky-notice-btn-wrapper,
  body.nds-shared .cky-consent-container .cky-prefrence-btn-wrapper { flex-direction: column; gap: 8px; }
  body.nds-shared .cky-consent-container .cky-btn { flex: none; width: 100%; }
}
@media (max-height: 440px) {
  /* The expanded preferences repeat the notice. Keep all consent actions and
   * the scrollable detailed copy available in a short landscape viewport. */
  body.nds-shared .cky-consent-container.cky-consent-bar-expand .cky-consent-bar { padding: 12px 24px; }
  body.nds-shared .cky-consent-container.cky-consent-bar-expand .cky-title,
  body.nds-shared .cky-consent-container.cky-consent-bar-expand .cky-notice-des { display: none; }
}
