.lydus-consent {
  position: fixed;
  z-index: 12000;
  right: auto;
  bottom: 24px;
  left: 24px;
  display: block;
  width: min(445px, calc(100% - 48px));
  margin: 0;
  padding: 24px;
  color: #182b40;
  border: 1px solid rgba(24, 43, 64, 0.1);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 22px 70px rgba(24, 43, 64, 0.2);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transform-origin: bottom left;
  animation: lydus-consent-in 260ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.lydus-consent[hidden],
.lydus-consent-settings[hidden] {
  display: none !important;
}

.lydus-consent__copy {
  min-width: 0;
}

.lydus-consent__heading {
  display: flex;
  gap: 6px;
  align-items: center;
}

.lydus-consent__shield {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
}

.lydus-consent h2 {
  margin: 0;
  color: #182b40;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
}

.lydus-consent__description {
  max-width: 58ch;
  margin: 14px 0 0;
  color: #5d6b7c;
  font-size: 14px;
  line-height: 1.45;
}

.lydus-consent details {
  margin-top: 12px;
  color: #5d6b7c;
  font-size: 0.82rem;
  line-height: 1.5;
}

.lydus-consent summary {
  display: flex;
  gap: 7px;
  align-items: center;
  width: max-content;
  color: #34558b;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.lydus-consent summary::-webkit-details-marker {
  display: none;
}

.lydus-consent summary svg {
  flex: 0 0 auto;
  transition: transform 160ms ease;
}

.lydus-consent details[open] summary svg {
  transform: rotate(90deg);
}

.lydus-consent details p {
  margin: 6px 0 0;
}

.lydus-consent__actions {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 14px;
}

.lydus-consent__button {
  min-height: 36px;
  padding: 7px 13px;
  border-radius: 999px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.lydus-consent__button:hover {
  transform: translateY(-1px);
}

.lydus-consent__button:focus-visible,
.lydus-consent-settings:focus-visible {
  outline: 3px solid rgba(52, 85, 139, 0.28);
  outline-offset: 3px;
}

.lydus-consent__button--accept {
  color: #fff;
  border: 1px solid #34558b;
  background: #34558b;
  box-shadow: 0 8px 20px rgba(52, 85, 139, 0.2);
}

.lydus-consent__button--accept:hover {
  background: #294775;
}

.lydus-consent__button--reject {
  color: #182b40;
  border: 1px solid rgba(24, 43, 64, 0.12);
  background: #fafafa;
}

.lydus-consent-settings {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  padding: 4px;
  color: #2d2d2d;
  border: 0;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: none;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.lydus-consent-settings--desktop {
  min-height: 36px;
  gap: 0;
  width: auto;
  max-width: 150px;
  padding: 0 12px 0 0;
  overflow: hidden;
  background: #ffffff;
  box-shadow: none;
  font-size: 13px;
}

.lydus-consent-settings--footer {
  margin-top: 20px;
}

.lydus-consent-settings--floating {
  position: fixed;
  z-index: 11999;
  left: 16px;
  bottom: 16px;
}

.lydus-consent-settings__icon {
  flex: 0 0 auto;
}

.lydus-consent-settings__icon--expanded {
  display: none;
  width: 22px;
  height: 22px;
  margin-left: 8px;
}

.lydus-consent-settings__icon--compact {
  width: 34px;
  height: 34px;
}

.lydus-consent-settings__label {
  overflow: hidden;
  opacity: 0;
  transition: opacity 150ms ease;
}

.lydus-consent-settings--desktop .lydus-consent-settings__label {
  opacity: 1;
}

.lydus-consent-settings--mobile {
  display: none;
}

@keyframes lydus-consent-in {
  from { opacity: 0; transform: translateY(14px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 700px) {
  .lydus-consent {
    right: 12px;
    bottom: 12px;
    left: 12px;
    width: calc(100% - 24px);
    padding: 18px;
    border-radius: 20px;
  }

  .lydus-consent__heading {
    gap: 6px;
  }

  .lydus-consent h2 {
    font-size: 1rem;
  }

  .lydus-consent__description {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.45;
  }

  .lydus-consent details {
    margin-top: 10px;
    font-size: 0.78rem;
  }

  .lydus-consent__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    margin-top: 14px;
  }

  .lydus-consent__button {
    width: 100%;
    min-height: 42px;
    padding-inline: 12px;
    font-size: 0.84rem;
  }
}

@media (max-width: 768px) {
  .lydus-consent-settings--desktop {
    display: none;
  }

  html.nav-enhanced .lydus-nav__links .lydus-consent-settings--mobile {
    display: flex;
    width: 100%;
    min-height: 44px;
    justify-content: flex-start;
    margin-top: 0.75rem;
    padding: 10px 12px;
    border-radius: 8px;
    background: #fafafa;
    box-shadow: none;
    font-size: 0.9rem;
  }

  .lydus-consent-settings--mobile .lydus-consent-settings__icon--expanded,
  .lydus-consent-settings--mobile .lydus-consent-settings__label {
    display: block;
    margin-left: 0;
    opacity: 1;
  }
}

@media (max-width: 390px) {
  .lydus-consent__actions {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lydus-consent {
    animation: none;
  }

  .lydus-consent__button,
  .lydus-consent-settings--desktop,
  .lydus-consent-settings__label {
    transition: none;
  }
}
