/* ==========================================================================
   COOKIE & PRIVACY NOTICE BANNER - MINIMAL HORIZONTAL RECTANGLE
   ========================================================================== */

#unisport-cookie-notice {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translate(-50%, 20px);
  width: calc(100% - 2rem);
  max-width: 48rem;
  z-index: 120;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

#unisport-cookie-notice.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

#unisport-cookie-details {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease, margin-top 0.2s ease;
}

#unisport-cookie-details.is-open {
  max-height: 24rem;
  opacity: 1;
  margin-top: 0.75rem;
  overflow-y: auto;
}

/* ==========================================================================
   MINIMAL TOGGLE SWITCHES
   ========================================================================== */

.cookie-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  flex-shrink: 0;
}

.cookie-switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-slider {
  width: 2rem;
  height: 1.125rem;
  background-color: #E4E4E7;
  border-radius: 9999px;
  transition: background-color 0.2s ease;
  position: relative;
}

.dark .cookie-slider {
  background-color: #27272A;
}

.cookie-slider::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 0.875rem;
  height: 0.875rem;
  background-color: #FFFFFF;
  border-radius: 9999px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-switch input:checked + .cookie-slider {
  background-color: #FF4D00;
}

.cookie-switch input:checked + .cookie-slider::after {
  transform: translateX(0.875rem);
}
