/* =========================================================
   AYEO COOKIE CONSENT
   ========================================================= */

body.ayeo-consent-open {
  overflow: hidden;
}

.ayeo-consent[hidden],
.ayeo-consent__settings[hidden] {
  display: none !important;
}

.ayeo-consent {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  font-family: "Lato", Arial, sans-serif;
}

.ayeo-consent__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.ayeo-consent__dialog {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  padding: 30px;
  border: 1px solid var(--line, #e7e7e7);
  border-radius: var(--radius-small, 10px);
  background: var(--ayeo-white, #ffffff);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.16);
  color: var(--text, #111111);
}

.ayeo-consent__title {
  margin: 0 0 18px;
  font-family: "Comfortaa", sans-serif;
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
}

.ayeo-consent__message {
  margin: 0;
  color: var(--ayeo-grey, #777777);
  font-size: 1rem;
  line-height: 1.6;
}

.ayeo-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 24px;
}

.ayeo-consent__button {
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--ayeo-blue, #5c8792);
  border-radius: var(--radius-small, 10px);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.ayeo-consent__button--primary {
  background: var(--ayeo-blue, #5c8792);
  color: #ffffff;
}

.ayeo-consent__button--secondary {
  background: #ffffff;
  color: var(--ayeo-blue, #5c8792);
}

.ayeo-consent__button:hover,
.ayeo-consent__button:focus-visible,
.ayeo-consent__settings-trigger:hover,
.ayeo-consent__settings-trigger:focus-visible {
  opacity: 0.82;
}

.ayeo-consent__settings-trigger {
  min-height: 44px;
  padding: 8px 4px;
  border: 0;
  background: transparent;
  color: var(--ayeo-grey, #777777);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.ayeo-consent__settings {
  margin-top: 26px;
  border-top: 1px solid var(--line, #e7e7e7);
}

.ayeo-consent__category {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line, #e7e7e7);
}

.ayeo-consent__category-title {
  font-weight: 700;
}

.ayeo-consent__category-text {
  margin: 5px 0 0;
  color: var(--ayeo-grey, #777777);
  font-size: 0.93rem;
  line-height: 1.45;
}

.ayeo-consent__switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  cursor: pointer;
}

.ayeo-consent__switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.ayeo-consent__switch > span[aria-hidden="true"] {
  position: relative;
  display: block;
  width: 48px;
  height: 26px;
  border-radius: 20px;
  background: #d8d8d8;
  transition: background 0.2s ease;
}

.ayeo-consent__switch > span[aria-hidden="true"]::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s ease;
}

.ayeo-consent__switch input:checked + span[aria-hidden="true"] {
  background: var(--ayeo-blue, #5c8792);
}

.ayeo-consent__switch input:checked + span[aria-hidden="true"]::after {
  transform: translateX(22px);
}

.ayeo-consent__switch input:focus-visible + span[aria-hidden="true"] {
  outline: 2px solid var(--ayeo-blue, #5c8792);
  outline-offset: 3px;
}

.ayeo-consent__switch--locked {
  cursor: default;
  opacity: 0.72;
}

.ayeo-consent__save {
  width: 100%;
  margin-top: 22px;
}

.footer-cookie-settings {
  appearance: none;
  padding: 10px 0 11px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.72);
  background: transparent;
  color: #ffffff;
  font: inherit;
  font-size: 1rem;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
}

.footer-cookie-settings:hover,
.footer-cookie-settings:focus {
  opacity: 0.78;
}

@media (max-width: 768px) {
  .ayeo-consent {
    align-items: flex-end;
    padding: 12px;
  }

  .ayeo-consent__dialog {
    width: 100%;
    max-height: calc(100dvh - 24px);
    padding: 22px 18px;
  }

  .ayeo-consent__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .ayeo-consent__button,
  .ayeo-consent__settings-trigger {
    width: 100%;
  }

  .ayeo-consent__category {
    gap: 12px;
  }
}
