/* Layout adapted from BMW iw-cookiebot-customizer/dist/main.css. */
.cookie-consent-btn {
  display: block;
  font-size: 11px;
  background: var(--iw-cb-button);
  color: var(--iw-cb-button-text);
  height: 45px;
  line-height: 45px;
  white-space: nowrap;
  border-radius: 25px;
  padding: 0 30px;
  cursor: pointer;
  font-style: normal;
  font-weight: bold;
  text-rendering: optimizeLegibility;
  letter-spacing: -0.38px;
  margin-left: 10px;
  text-transform: uppercase;
}
@media screen and (max-width: 375px) {
  .cookie-consent-btn {
    padding: 0 25px;
  }
}
.cookie-consent-close {
  display: block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  position: relative;
  background: transparent;
  cursor: pointer;
}
.cookie-consent-close:before, .cookie-consent-close:after {
  display: block;
  content: '';
  height: 2px;
  width: 100%;
  background: var(--iw-cb-button);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
}
.cookie-consent-close:after {
  transform: translate(-50%, -50%) rotate(-45deg);
}
.cookie-consent-close.color {
  background-color: transparent;
  width: 20px;
  height: 20px;
}
.cookie-consent-close.color:before, .cookie-consent-close.color:after {
  background: var(--iw-cb-button);
}
html.iw-cookiebot-custom-ready #CybotCookiebotDialog {
  display: none !important;
}
#cookie-consent-banner {
  z-index: 999999999999;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: auto;
  background: var(--iw-cb-banner);
  color: var(--iw-cb-text);
  text-align: left;
  justify-content: space-between;
  align-items: center;
  transition: all 1s cubic-bezier(0.47, 0.95, 0, 0.99);
  transform: translateY(100%);
  display: flex;
  font-weight: 500;
  padding: 20px;
}
#cookie-consent-banner.active {
  transform: translateY(0);
}
#cookie-consent-banner p {
  font-size: 12px;
  margin: 0;
  padding: 0;
  opacity: 0.8;
  color: var(--iw-cb-text);
}
#cookie-consent-banner ul {
  display: inline;
}
#cookie-consent-banner li {
  display: inline;
}
#cookie-consent-banner .banner-settings {
  color: var(--iw-cb-text);
  font-size: 12px;
  font-weight: bold;
  text-decoration: underline;
  cursor: pointer;
  white-space: nowrap;
}
#cookie-consent-banner .top-side {
  display: flex;
}
#cookie-consent-banner .left-side {
  font-size: 12px;
  display: flex;
  justify-content: center;
  flex-direction: column;
  padding-right: 20px;
  line-height: 14px;
}
#cookie-consent-banner .left-side a, #cookie-consent-banner .left-side .a {
  color: inherit;
  font-weight: bold;
  text-decoration: underline;
  cursor: pointer;
}
#cookie-consent-banner .left-side br {
  display: none;
}
#cookie-consent-banner .left-side p {
  font-size: 12px;
  max-width: 960px;
}
#cookie-consent-banner .right-side {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
@media screen and (max-width: 960px) {
  #cookie-consent-banner .right-side {
    width: 100%;
  }
}
@media screen and (max-width: 1023px) {
  #cookie-consent-banner {
    display: block;
  }
  #cookie-consent-banner .left-side {
    padding-right: 0;
  }
  #cookie-consent-banner .right-side {
    margin-top: 20px;
  }
}
@media screen and (max-width: 550px) {
  #cookie-consent-banner .right-side {
    flex-wrap: wrap;
  }
  #cookie-consent-banner .right-side .banner-settings-wrapper {
    display: block;
    text-align: center;
    margin-bottom: 10px;
    min-width: 100%;
  }
  #cookie-consent-banner .right-side .cookie-consent-btn {
    min-width: 100%;
    text-align: center;
    margin-bottom: 10px;
  }
  #cookie-consent-banner .right-side .cookie-consent-btn:last-of-type {
    margin-bottom: 0;
  }
}
#cookies-preferences-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: #11005066;
  z-index: 999999999999;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  transition: all 1s cubic-bezier(0.47, 0.95, 0, 0.99);
  opacity: 0;
}
#cookies-preferences-popup .cookie-consent-btn {
  background-color: var(--iw-cb-button);
  color: var(--iw-cb-button-text);
  height: 55px;
  line-height: 55px;
  border-radius: 27.5px;
  padding: 0 34px;
  font-size: 14px;
  letter-spacing: -0.49px;
}
#cookies-preferences-popup .make-full {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
#cookies-preferences-popup.active {
  opacity: 1;
  pointer-events: all;
}
#cookies-preferences-popup.active .make-full, #cookies-preferences-popup.active .gdpr-popup .inner {
  pointer-events: all;
}
#cookies-preferences-popup.active .gdpr-popup .inner {
  opacity: 1;
  transition: all cubic-bezier(0, 1, 0, 1) 0.8s;
  transform: scale(1);
}
#cookies-preferences-popup .gdpr-popup {
  position: relative;
  height: 100%;
  pointer-events: none;
  max-width: 100%;
}
#cookies-preferences-popup .gdpr-popup .gdpr-popup-inner-wrapper {
  max-width: 950px;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 0;
  margin: 0 auto;
  pointer-events: none;
}
#cookies-preferences-popup .gdpr-popup .inner {
  background: var(--iw-cb-surface);
  padding: 40px;
  flex-shrink: 0;
  position: relative;
  border-radius: 10px;
  width: 100%;
  pointer-events: none;
  transition: opacity 0.3s linear, transform cubic-bezier(0.38, 0.4, 1, 1) 0.5s;
  opacity: 0;
  transform: scale(0.5);
}
#cookies-preferences-popup .gdpr-popup .inner-wrapper {
  overflow: hidden;
}
#cookies-preferences-popup .gdpr-popup .title-wrapper {
  display: flex;
  margin-bottom: 40px;
  justify-content: space-between;
}
#cookies-preferences-popup .gdpr-popup .title-wrapper img {
  display: block;
  height: 30px;
}
#cookies-preferences-popup .gdpr-popup .subtitle {
  font-size: 15px;
  margin-bottom: 40px;
}
#cookies-preferences-popup .gdpr-popup p {
  text-align: justify;
  font-size: 12px;
  color: var(--iw-cb-text);
  font-weight: 300;
  line-height: 1.4;
  margin-bottom: 10px;
}
#cookies-preferences-popup .gdpr-popup a {
  color: var(--iw-cb-text);
}
#cookies-preferences-popup .gdpr-popup .btn-area {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 40px;
}
@media screen and (max-width: 640px) {
  #cookies-preferences-popup .gdpr-popup .btn-area {
    flex-direction: column;
    align-items: flex-end;
  }
  #cookies-preferences-popup .gdpr-popup .btn-area .cookie-consent-btn {
    margin: 10px 0 0 0;
    width: 100%;
    text-align: center;
  }
  #cookies-preferences-popup .gdpr-popup .btn-area .cookie-consent-btn:first-child {
    margin-top: 0;
  }
}
#cookies-preferences-popup .gdpr-popup .custom-checkbox {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
#cookies-preferences-popup .gdpr-popup .custom-checkbox.inactive {
  pointer-events: none;
}
#cookies-preferences-popup .gdpr-popup .custom-checkbox input[type="checkbox"] {
  display: none;
}
#cookies-preferences-popup .gdpr-popup .custom-checkbox label {
  font-size: 13px;
  color: var(--iw-cb-text);
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  position: relative;
  user-select: none;
}
#cookies-preferences-popup .gdpr-popup .custom-checkbox label:before {
  transition: all 0.3s ease-out;
  display: block;
  content: '';
  background: #767080;
  border-radius: 12px;
  width: 48px;
  height: 24px;
}
#cookies-preferences-popup .gdpr-popup .custom-checkbox label:after {
  transition: all 0.3s ease-out;
  display: block;
  content: '';
  background: var(--iw-cb-button);
  width: 20px;
  height: 20px;
  border-radius: 10px;
  position: absolute;
  top: 2px;
  left: 2px;
}
#cookies-preferences-popup .gdpr-popup .custom-checkbox label span {
  display: inline-block;
  pointer-events: none;
  font-size: 10px;
  position: absolute;
  right: 100%;
  top: 12px;
  transform: translate(0, -50%);
  padding-right: 10px;
  white-space: nowrap;
}
#cookies-preferences-popup .gdpr-popup .custom-checkbox label span:nth-child(2) {
  opacity: 0;
}
#cookies-preferences-popup .gdpr-popup .custom-checkbox.checked label:before {
  background: var(--iw-cb-button);
}
#cookies-preferences-popup .gdpr-popup .custom-checkbox.checked label:after {
  transform: translateX(24px);
}
#cookies-preferences-popup .gdpr-popup .custom-checkbox.checked span:nth-child(1) {
  opacity: 0;
}
#cookies-preferences-popup .gdpr-popup .custom-checkbox.checked span:nth-child(2) {
  opacity: 1;
}
#cookies-preferences-popup .cookie-categories-tabs-cont {
  display: flex;
}
@media screen and (max-width: 767px) {
  #cookies-preferences-popup .cookie-categories-tabs-cont {
    display: block;
  }
}
#cookies-preferences-popup .cookie-categories-tabs-cont .cookie-categories-tabs {
  /*padding: 25px 0;*/
}
@media screen and (max-width: 767px) {
  #cookies-preferences-popup .cookie-categories-tabs-cont .cookie-categories-tabs {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 1px solid color-mix(in srgb, var(--iw-cb-text) 15%, transparent);
    margin-bottom: 25px;
  }
}
#cookies-preferences-popup .cookie-categories-tabs-cont .cookie-categories-tabs > button {
  cursor: pointer;
  line-height: 45px;
  font-weight: bold;
  border-bottom: 1px solid color-mix(in srgb, var(--iw-cb-text) 15%, transparent);
  font-size: 13px;
  color: color-mix(in srgb, var(--iw-cb-text) 70%, transparent);
  transition: all 0.3s ease-out;
}
@media screen and (min-width: 768px) {
  #cookies-preferences-popup .cookie-categories-tabs-cont .cookie-categories-tabs > button {
    min-width: 240px;
  }
}
@media screen and (max-width: 767px) {
  #cookies-preferences-popup .cookie-categories-tabs-cont .cookie-categories-tabs > button {
    padding-right: 10px;
    border: none !important;
    line-height: 2;
  }
}
#cookies-preferences-popup .cookie-categories-tabs-cont .cookie-categories-tabs > button:hover {
  color: var(--iw-cb-text);
}
#cookies-preferences-popup .cookie-categories-tabs-cont .cookie-categories-tabs > button:last-of-type {
  border: none;
}
@media screen and (max-width: 767px) {
  #cookies-preferences-popup .cookie-categories-tabs-cont .cookie-categories-tabs > button:last-of-type {
    border-bottom: 1px solid color-mix(in srgb, var(--iw-cb-text) 15%, transparent);
  }
}
#cookies-preferences-popup .cookie-categories-tabs-cont .cookie-categories-tabs > button.active {
  color: var(--iw-cb-text) !important;
  cursor: text;
  pointer-events: none;
}
#cookies-preferences-popup .cookie-categories-tabs-cont p, #cookies-preferences-popup .cookie-categories-tabs-cont .p {
  font-size: 14px;
  color: var(--iw-cb-text);
  line-height: 1.4;
  margin: 21px 0 0 0;
}
#cookies-preferences-popup .cookie-categories-tabs-cont p:last-of-type, #cookies-preferences-popup .cookie-categories-tabs-cont .p:last-of-type {
  margin-bottom: 0;
}
#cookies-preferences-popup .cookie-categories-tabs-cont .table-row {
  padding: 10px 0;
  margin: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--iw-cb-text) 15%, transparent);
}
#cookies-preferences-popup .cookie-categories-tabs-cont .table-row:last-child {
  border-bottom: none;
}
#cookies-preferences-popup .cookie-categories-tabs-cont .note {
  font-size: 11px;
}
#cookies-preferences-popup .cookie-categories-tabs-cont .c-tab-title-cont {
  display: flex;
  justify-content: space-between;
  width: 100%;
  align-items: center;
  margin-bottom: 15px;
}
#cookies-preferences-popup .cookie-categories-tabs-cont .c-tab-title {
  font-size: 27px;
  font-weight: bold;
  color: var(--iw-cb-text);
}
#cookies-preferences-popup .cookie-categories-tabs-cont .tab-cont {
  display: none;
  /*padding: 25px 0 25px 0;*/
}
#cookies-preferences-popup .cookie-categories-tabs-cont .tab-cont.active {
  display: block;
}
#cookies-preferences-popup .cookie-categories-tabs-cont .cookie-categories-tabs-contents {
  overflow: hidden;
  flex-grow: 100;
}
#cookies-preferences-popup .cookie-categories-tabs-cont .cookie-categories-tabs-contents .tab-cont {
  padding-left: 30px;
}
@media screen and (max-width: 767px) {
  #cookies-preferences-popup .cookie-categories-tabs-cont .cookie-categories-tabs-contents .tab-cont {
    padding-left: 0;
    padding-top: 0;
  }
}
#cookies-preferences-popup .cookie-categories-tabs-cont .table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 21px 0 0 0;
  font-size: 12px;
  color: var(--iw-cb-text);
}
#cookies-preferences-popup .cookie-categories-tabs-cont table {
  min-width: 100%;
  white-space: nowrap;
}
#cookies-preferences-popup .cookie-categories-tabs-cont table th {
  color: var(--iw-cb-text);
}
#cookies-preferences-popup .cookie-categories-tabs-cont table td, #cookies-preferences-popup .cookie-categories-tabs-cont table th {
  padding: 0 10px 10px 10px;
  vertical-align: top;
}
#cookies-preferences-popup .cookie-categories-tabs-cont table td:first-child, #cookies-preferences-popup .cookie-categories-tabs-cont table th:first-child {
  padding-left: 0;
}
#cookies-preferences-popup .cookie-categories-tabs-cont table td:nth-child(3), #cookies-preferences-popup .cookie-categories-tabs-cont table th:nth-child(3) {
  min-width: 250px;
  width: 250px;
  white-space: normal;
}
#cookies-preferences-popup .cookie-categories-tabs-cont table td:last-child, #cookies-preferences-popup .cookie-categories-tabs-cont table th:last-child {
  padding-right: 0;
}
#cookies-preferences-popup .cookie-categories-tabs-cont table th {
  text-align: left;
  padding-bottom: 10px;
}
.CookieDeclarationType {
  padding: 0 !important;
  margin: 60px 0 !important;
  border: none !important;
}

/* PHAROS adaptation and accessible controls; keep the BMW layout above. */
#iw-cookiebot-custom-ui {
  --iw-cookiebot-layout: 1;
  font-family: var(--f, Inter, sans-serif);
  color: var(--iw-cb-text);
}
#iw-cookiebot-custom-ui *, #iw-cookiebot-custom-ui *::before, #iw-cookiebot-custom-ui *::after { box-sizing: border-box; }
#iw-cookiebot-custom-ui [hidden] { display: none !important; }
#iw-cookiebot-custom-ui button { font-family: inherit; border: 0; }
#iw-cookiebot-custom-ui button:focus-visible, #iw-cookiebot-custom-ui a:focus-visible,
#iw-cookiebot-custom-ui [role="tabpanel"]:focus-visible {
  outline: 2px solid currentColor; outline-offset: 4px;
}
#cookie-consent-banner { transition: none; gap: 24px; }
#cookie-consent-banner .left-side, #cookie-consent-banner .banner-copy,
#cookie-consent-banner p, #cookie-consent-banner .banner-settings { color: var(--iw-cb-banner-text); }
#cookie-consent-banner .left-side { line-height: 1.55; padding-right: 0; }
#cookie-consent-banner .banner-copy, #cookie-consent-banner .left-side p { font-size: 13px; max-width: 960px; opacity: 1; }
#cookie-consent-banner .cookie-consent-btn { background: var(--iw-cb-banner-button); color: var(--iw-cb-banner-button-text); }
#cookie-consent-banner .banner-settings { background: transparent; padding: 10px 0; }
#cookie-consent-banner .right-side { flex-shrink: 0; }
#iw-cookiebot-custom-ui .cookie-consent-btn { font-weight: 600; min-height: 45px; height: auto; line-height: 1.4; padding-top: 13px; padding-bottom: 13px; }
#cookies-preferences-popup { transition: none; }
#cookies-preferences-popup .gdpr-popup .inner { transition: none; transform: none; }
#cookies-preferences-popup .gdpr-popup .title-wrapper { align-items: center; }
#cookies-preferences-popup .gdpr-popup .title-wrapper img { max-width: 180px; height: auto; max-height: 40px; }
#cookies-preferences-popup .cookie-consent-close { flex-shrink: 0; padding: 10px; }
#cookies-preferences-popup .cookie-consent-close::before, #cookies-preferences-popup .cookie-consent-close::after { background: var(--iw-cb-text); }
#cookies-preferences-popup .cookie-categories-tabs { flex-shrink: 0; }
#cookies-preferences-popup .cookie-categories-tabs > button { display: block; background: transparent; text-align: left; padding: 0; width: 100%; font-family: inherit; }
#cookies-preferences-popup .cookie-categories-tabs > button.active { pointer-events: auto; }
#cookies-preferences-popup .cookie-categories-tabs-cont .c-tab-title { margin: 0; font-size: 25px; line-height: 1.2; font-weight: 600; }
#cookies-preferences-popup .c-tab-title-cont { gap: 24px; flex-wrap: wrap; }
#cookies-preferences-popup .gdpr-popup p { text-align: left; }
#cookies-preferences-popup .gdpr-popup .custom-checkbox { position: relative; margin-left: 90px; flex-shrink: 0; }
#cookies-preferences-popup .gdpr-popup .custom-checkbox input[type="checkbox"] {
  display: block; position: absolute; width: 48px; height: 24px; margin: 0; opacity: 0; z-index: 1; cursor: pointer;
}
#cookies-preferences-popup .gdpr-popup .custom-checkbox input:focus-visible + label { outline: 2px solid var(--iw-cb-text); outline-offset: 4px; }
#cookies-preferences-popup .gdpr-popup .custom-checkbox label::after { background: white; }
#cookies-preferences-popup .gdpr-popup .custom-checkbox.checked label::before { background: var(--iw-cb-accent); }
#cookies-preferences-popup .gdpr-popup .custom-checkbox.inactive { opacity: .65; }
#cookies-preferences-popup .gdpr-popup .btn-area { gap: 10px; flex-wrap: wrap; }
#cookies-preferences-popup .gdpr-popup .btn-area .cookie-consent-btn { margin-left: 0; font-size: 12px; padding: 15px 24px; min-height: 48px; height: auto; line-height: 1.4; white-space: normal; }
#cookies-preferences-popup .table-row { overflow-wrap: anywhere; }
@media (max-width: 1023px) {
  #cookie-consent-banner .right-side { margin-top: 16px; }
}
@media (max-width: 767px) {
  #cookies-preferences-popup .gdpr-popup-inner-wrapper { padding: 16px; }
  #cookies-preferences-popup .gdpr-popup .inner { padding: 24px; }
  #cookies-preferences-popup .gdpr-popup .title-wrapper { margin-bottom: 24px; }
  #cookies-preferences-popup .cookie-categories-tabs > button { width: auto; margin-right: 14px; }
}
@media (max-width: 550px) {
  #cookie-consent-banner { max-height: 85vh; max-height: 85dvh; overflow-y: auto; padding: 20px; }
  #cookie-consent-banner .cookie-consent-btn { margin-left: 0; white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  #iw-cookiebot-custom-ui *, #iw-cookiebot-custom-ui *::before, #iw-cookiebot-custom-ui *::after { transition: none !important; }
}

/* BMW theme overrides (iw_theme/assets/tailwind/input.css), scoped here so
   PHAROS does not depend on BMW's theme. Desktop width is deliberately capped. */
#cookie-consent-banner {
  left: auto;
  right: 0;
  bottom: 0;
  display: block;
  width: 480px;
  max-width: 100%;
  padding: 24px;
  border-top-left-radius: 3rem;
}
#cookie-consent-banner .right-side {
  margin-top: 20px;
  flex-wrap: wrap;
  gap: 10px;
}
#cookie-consent-banner .cookie-consent-btn { margin-left: 0; padding-left: 20px; padding-right: 20px; }
#cookie-consent-banner .banner-settings-wrapper { margin-right: auto; }
#CookiebotWidget .CookiebotWidget-logo svg circle { fill: var(--iw-cb-banner) !important; }
#CookiebotWidget .CookiebotWidget-logo svg path { fill: var(--iw-cb-banner-button) !important; }
@media (min-width: 768px) and (max-width: 1023px) {
  #cookie-consent-banner { width: 46.875vw; }
}
@media (max-width: 767px) {
  #cookie-consent-banner { width: 100%; border-top-left-radius: 0; padding: 20px; }
  #cookie-consent-banner .right-side { justify-content: space-between; }
}
#cookie-consent-banner .banner-settings-wrapper { flex: 0 0 100%; margin: 0; }
#cookie-consent-banner .right-side .cookie-consent-btn { flex: 1 1 0; min-width: 0; margin-bottom: 0; white-space: normal; }

/* PHAROS capabilities card and shared .pharos-btn treatment. */
#cookie-consent-banner {
  right: 16px;
  bottom: 16px;
  max-width: calc(100% - 32px);
  border: 1px solid var(--color-surface-light, #f0f0ff);
  border-radius: 5px;
  box-shadow: 0 2px 8px #11005014;
}
#cookies-preferences-popup .gdpr-popup .inner { border-radius: 5px; }
#iw-cookiebot-custom-ui .cookie-consent-btn,
#cookies-preferences-popup .gdpr-popup .btn-area .cookie-consent-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  border-radius: 4px;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 400;
  line-height: 22px;
  letter-spacing: normal;
  text-transform: none;
  text-align: center;
}
#iw-cookiebot-custom-ui .cookie-consent-btn:hover { opacity: .8; }
#cookie-consent-banner .right-side .cookie-consent-btn { margin: 0; }
#CookiebotWidget .CookiebotWidget-logo svg circle { fill: var(--iw-cb-text) !important; }
@media (max-width: 767px) {
  #cookie-consent-banner { right: 12px; bottom: 12px; width: calc(100% - 24px); max-width: none; border-radius: 5px; }
  #cookie-consent-banner .cookie-consent-btn { padding-left: 12px; padding-right: 12px; }
}
#cookie-consent-banner .right-side { align-items: stretch; }
@media (min-width: 768px) {
  #cookie-consent-banner { right: 24px; bottom: 24px; }
}
#cookie-consent-banner .banner-copy,
#cookie-consent-banner .left-side p {
  font-size: 12px;
  font-weight: 300;
}
#iw-cookiebot-custom-ui .cookie-consent-btn,
#cookies-preferences-popup .gdpr-popup .btn-area .cookie-consent-btn {
  font-size: 13px;
  line-height: 18px;
  padding: 12px 16px;
}
#cookie-consent-banner .right-side .cookie-consent-btn {
  min-height: 42px;
  white-space: nowrap;
}
@media (max-width: 420px) {
  #cookie-consent-banner .right-side .cookie-consent-btn { padding-left: 8px; padding-right: 8px; }
}
@media (max-width: 359px) {
  #cookie-consent-banner .right-side .cookie-consent-btn { flex-basis: 100%; }
}
