:root {
  --cookie-accent: #d93e3e;
  --cookie-accent-dark: #b82f2f;
  --cookie-text: #202124;
  --cookie-muted: #5f6368;
  --cookie-border: #e1e4e8;
  --cookie-surface: #ffffff;
}

:root[data-cookie-brand="homatics"] {
  --cookie-accent: #1e40af;
  --cookie-accent-dark: #17358f;
}

.cookie-consent-banner,
.cookie-consent-modal,
.cookie-media-placeholder,
.cookie-media-consent-label,
.cookie-settings-footer {
  box-sizing: border-box;
  font-family: "Montserrat", Arial, sans-serif;
}

.cookie-consent-banner {
  position: fixed;
  z-index: 2147482000;
  left: 50%;
  bottom: 18px;
  width: min(920px, calc(100% - 32px));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px 48px 18px 20px;
  color: var(--cookie-text);
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--cookie-border);
  border-radius: 16px;
  box-shadow: 0 18px 55px rgba(19, 24, 33, 0.22);
  backdrop-filter: blur(10px);
}

.cookie-consent-banner[hidden],
.cookie-consent-modal[hidden],
.cookie-media-placeholder[hidden] {
  display: none !important;
}

.cookie-consent-banner__copy strong {
  display: block;
  margin-bottom: 5px;
  font-size: 17px;
  line-height: 1.3;
}

.cookie-consent-banner__copy p {
  margin: 0;
  color: var(--cookie-muted);
  font-size: 13px;
  line-height: 1.55;
}

.cookie-consent-banner__copy a {
  color: var(--cookie-accent-dark);
  font-weight: 700;
  white-space: nowrap;
}

.cookie-consent-banner__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(145px, 1fr));
  gap: 8px;
  min-width: 330px;
}

.cookie-consent-button {
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 9px;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}



.cookie-consent-button:focus-visible,
.cookie-consent-banner__close:focus-visible,
.cookie-consent-modal__close:focus-visible,
.cookie-settings-footer:focus-visible,
.cookie-media-placeholder__button:focus-visible {
  outline: 3px solid rgba(30, 64, 175, 0.3);
  outline-offset: 2px;
}

.cookie-consent-button--accept {
  color: #ffffff;
  background: var(--cookie-accent);
  box-shadow: 0 6px 16px color-mix(in srgb, var(--cookie-accent) 24%, transparent);
}



.cookie-consent-button--reject {
  color: #ffffff;
  background: #343a40;
}



.cookie-consent-button--settings {
  grid-column: 1 / -1;
  color: var(--cookie-text);
  background: #ffffff;
  border-color: #cbd0d6;
}



.cookie-consent-banner__close,
.cookie-consent-modal__close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 34px;
  height: 34px;
  padding: 0;
  color: #565b61;
  background: transparent;
  border: 0;
  border-radius: 50%;
  font-size: 26px;
  line-height: 32px;
  cursor: pointer;
}



.cookie-consent-modal {
  position: fixed;
  z-index: 2147483000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
}

.cookie-consent-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 22, 28, 0.52);
  backdrop-filter: blur(3px);
}

.cookie-consent-modal__panel {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  padding: 26px;
  color: var(--cookie-text);
  background: var(--cookie-surface);
  border-radius: 18px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.3);
}

.cookie-consent-modal__panel h2 {
  margin: 0 38px 7px 0;
  font-size: 24px;
  line-height: 1.25;
}

.cookie-consent-modal__panel > p {
  margin: 0 0 20px;
  color: var(--cookie-muted);
  font-size: 14px;
  line-height: 1.55;
}

.cookie-consent-option {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin-top: 10px;
  padding: 15px;
  border: 1px solid var(--cookie-border);
  border-radius: 12px;
  cursor: pointer;
}

.cookie-consent-option--locked {
  background: #f7f8f9;
  cursor: default;
}

.cookie-consent-option strong,
.cookie-consent-option span {
  display: block;
}

.cookie-consent-option strong {
  margin-bottom: 4px;
  font-size: 14px;
}

.cookie-consent-option div > span {
  color: var(--cookie-muted);
  font-size: 12px;
  line-height: 1.45;
}

.cookie-consent-always-on {
  color: var(--cookie-accent-dark);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.cookie-consent-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.cookie-consent-switch {
  position: relative;
  width: 46px;
  height: 26px;
  background: #aeb4bb;
  border-radius: 999px;
  transition: background-color 160ms ease;
}

.cookie-consent-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: transform 160ms ease;
}

.cookie-consent-option input:checked + .cookie-consent-switch {
  background: var(--cookie-accent);
}

.cookie-consent-option input:checked + .cookie-consent-switch::after {
  transform: translateX(20px);
}

.cookie-consent-option input:focus-visible + .cookie-consent-switch {
  outline: 3px solid rgba(30, 64, 175, 0.3);
  outline-offset: 2px;
}

.cookie-consent-modal__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}

.cookie-consent-modal__actions .cookie-consent-button--settings {
  grid-column: auto;
}

.cookie-consent-modal-open {
  overflow: hidden;
}

.cookie-settings-footer {
  margin: 8px auto 0;
  padding: 2px 4px;
  color: inherit;
  background: transparent;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 12px;
  cursor: pointer;
  opacity: 0.82;
}



.cookie-media-placeholder {
  position: relative;
  width: 100%;
  min-height: 220px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: radial-gradient(circle at 50% 30%, #3a3d42 0, #181a1e 58%, #0d0e10 100%);
  border-radius: 12px;
}

.cookie-media-placeholder__button {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 24px;
  color: #ffffff;
  background: transparent;
  border: 0;
  text-align: center;
  cursor: pointer;
}

.cookie-media-placeholder__play {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  padding-left: 4px;
  background: var(--cookie-accent);
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  font-size: 25px;
}

.cookie-media-placeholder__copy strong,
.cookie-media-placeholder__copy small {
  display: block;
}

.cookie-media-placeholder__copy strong {
  margin-bottom: 5px;
  font-size: 16px;
}

.cookie-media-placeholder__copy small {
  max-width: 480px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  line-height: 1.45;
}

.cookie-consent-frame--blocked {
  display: none !important;
}

.js-lite-youtube {
  position: relative;
  background-color: #181a1e !important;
}

.cookie-consent-image--blocked {
  visibility: hidden !important;
}

.cookie-media-consent-label {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 14px;
  width: max-content;
  max-width: calc(100% - 24px);
  transform: translateX(-50%);
  padding: 8px 12px;
  color: #ffffff;
  background: rgba(18, 20, 24, 0.9);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  pointer-events: none;
}

.cookie-policy-list {
  padding-left: 22px;
}

.cookie-policy-list li {
  margin: 0 0 9px;
  line-height: 1.55;
}

@media (max-width: 760px) {
  .cookie-consent-banner {
    right: 8px;
    bottom: 8px;
    left: 8px;
    width: auto;
    max-height: calc(100vh - 16px);
    transform: none;
    grid-template-columns: 1fr;
    gap: 12px;
    overflow: auto;
    padding: 15px 42px 14px 14px;
    border-radius: 14px;
  }

  .cookie-consent-banner__copy strong {
    font-size: 15px;
  }

  .cookie-consent-banner__copy p {
    font-size: 12px;
    line-height: 1.45;
  }

  .cookie-consent-banner__actions {
    min-width: 0;
    grid-template-columns: 1fr 1fr;
  }

  .cookie-consent-button {
    min-height: 44px;
    padding: 9px 8px;
    font-size: 11px;
  }

  .cookie-consent-modal {
    align-items: end;
    padding: 8px;
  }

  .cookie-consent-modal__panel {
    max-height: calc(100vh - 16px);
    padding: 21px 15px 16px;
    border-radius: 16px;
  }

  .cookie-consent-modal__panel h2 {
    font-size: 20px;
  }

  .cookie-consent-option {
    gap: 10px;
    padding: 12px;
  }

  .cookie-consent-modal__actions {
    grid-template-columns: 1fr;
  }

  .cookie-media-placeholder {
    min-height: 190px;
  }

  .cookie-media-placeholder__copy small {
    display: none;
  }
}

@media (max-width: 430px) {
  .cookie-consent-banner__actions {
    grid-template-columns: 1fr;
  }

  .cookie-consent-button--settings {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-consent-button,
  .cookie-consent-switch,
  .cookie-consent-switch::after {
    transition: none;
  }
}
