/* MAU Modern Minimalist Cookie & Analytics Floating Badge */
.analytics-consent {
  position: fixed;
  bottom: 24px;
  right: 100px; /* Comfortable 16px gap from the 60px chat widget button at right: 24px */
  z-index: 9998;
  max-width: 350px;
  width: auto;
  background: rgba(18, 20, 29, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  color: #f4f4f5;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 13px;
  line-height: 1.4;
  padding: 8px 10px 8px 18px;
  box-sizing: border-box;
  opacity: 0;
  transform: translateY(20px) scale(0.97);
  pointer-events: none;
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1), border-radius 0.25s ease;
  display: flex;
  align-items: center;
}

body.is-loading .analytics-consent {
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

.analytics-consent.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.analytics-consent.is-settings {
  border-radius: 18px;
  padding: 16px 20px;
  max-width: 380px;
  width: calc(100vw - 32px);
  display: block;
  right: 100px;
}

.analytics-consent.is-hiding {
  opacity: 0;
  transform: translateY(14px) scale(0.97);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

@media (prefers-reduced-motion: reduce) {
  .analytics-consent {
    transition: opacity 0.2s ease !important;
    transform: none !important;
  }
}

.analytics-consent__body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
}

.analytics-consent__text {
  margin: 0;
  color: #d4d4d8;
  font-size: 12.5px;
  line-height: 1.35;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.analytics-consent__links {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.analytics-consent__dot {
  color: #52525b;
  font-size: 10px;
}

.analytics-consent__link,
.analytics-consent__link-btn {
  color: #8e8e93;
  font-family: inherit;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: color 0.2s ease;
}

.analytics-consent__link:hover,
.analytics-consent__link-btn:hover {
  color: #ffffff;
}

.analytics-consent__btn {
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  border-radius: 999px;
  padding: 8px 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.analytics-consent__btn--accept {
  background: #ff2a67;
  color: #fff;
  border: none;
  box-shadow: 0 4px 14px rgba(255, 42, 103, 0.35);
}

.analytics-consent__btn--accept:hover {
  background: #ff477e;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(255, 42, 103, 0.45);
}

.analytics-consent__btn--reject {
  background: rgba(255, 255, 255, 0.08);
  color: #a1a1aa;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.analytics-consent__btn--reject:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

/* Settings View inside the banner */
.analytics-consent__settings {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.analytics-consent__settings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.analytics-consent__settings-title {
  font-weight: 700;
  font-size: 13.5px;
  color: #fff;
}

.analytics-consent__close {
  background: transparent;
  border: none;
  color: #a1a1aa;
  font-size: 14px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color 0.2s;
}

.analytics-consent__close:hover {
  color: #fff;
}

.analytics-consent__group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.analytics-consent__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
}

.analytics-consent__item-info strong {
  display: block;
  font-size: 12px;
  color: #fff;
}

.analytics-consent__item-info p {
  margin: 2px 0 0;
  font-size: 11px;
  color: #a1a1aa;
  line-height: 1.35;
}

.analytics-consent__badge {
  font-size: 10.5px;
  color: #10b981;
  font-weight: 600;
  white-space: nowrap;
}

/* Toggle Switch */
.analytics-consent__switch {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
  flex-shrink: 0;
}

.analytics-consent__switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.analytics-consent__slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.2);
  transition: 0.25s;
  border-radius: 20px;
}

.analytics-consent__slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.25s;
  border-radius: 50%;
}

.analytics-consent__switch input:checked + .analytics-consent__slider {
  background-color: #ff2a67;
}

.analytics-consent__switch input:checked + .analytics-consent__slider:before {
  transform: translateX(16px);
}

.analytics-consent__actions--settings {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.analytics-consent__actions--settings .analytics-consent__btn {
  flex: 1;
  text-align: center;
  padding: 8px 12px;
  font-size: 12px;
}

/* Mobile Responsive */
@media (max-width: 640px) {
  .analytics-consent {
    bottom: 82px;
    right: 16px;
    left: auto;
    width: auto;
    max-width: calc(100vw - 32px);
    border-radius: 16px;
    padding: 12px 14px;
  }
  .analytics-consent.is-settings {
    right: 16px;
    left: 16px;
    width: auto;
    max-width: calc(100vw - 32px);
  }
  .analytics-consent__body {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .analytics-consent__btn--accept {
    width: 100%;
    text-align: center;
    padding: 10px 18px;
  }
}
