:root {
  --consent-width: 300px;
}
.consent-overlay {
  position: fixed;
  inset: 0;
  background: rgba(27,31,59,0.55);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s ease;
  &.is-visible { opacity: 1; visibility: visible; }
}
.consent-panel {
  position: fixed;
  top: 0; right: 0;
  width: 300px;
  max-width: 88vw;
  height: 100%;
  background: #FFFDF8;
  z-index: 2001;
  box-shadow: -20px 0 60px rgba(27,31,59,0.3);
  padding: 1.8rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  transform: translateX(100%);
  transition: transform .5s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
  font-family: 'Inter', sans-serif;
  &.is-visible { transform: translateX(0); }
}
.consent-head {
  & i { font-size: 1.8rem; color: #FF6B4A; margin-bottom: 0.6rem; display: block; }
  & h2 { font-family: 'Manrope', sans-serif; font-size: 1.15rem; margin: 0 0 0.4rem; color: #1B1F3B; }
  & p { font-size: 0.82rem; color: #565b7f; margin: 0; line-height: 1.5; }
}
.consent-categories { display: flex; flex-direction: column; gap: 0.9rem; }
.consent-category {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.8rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(27,31,59,0.08);
  & .consent-category-text {
    display: flex; flex-direction: column; gap: 0.2rem;
    & strong { font-family: 'Manrope', sans-serif; font-size: 0.86rem; color: #1B1F3B; }
    & span { font-size: 0.76rem; color: #565b7f; line-height: 1.4; }
  }
}
.toggle-switch {
  position: relative;
  width: 42px; height: 24px;
  flex-shrink: 0;
  & input { opacity: 0; width: 0; height: 0; }
  & .toggle-slider {
    position: absolute; inset: 0;
    background: #D8D2C2;
    border-radius: 999px;
    cursor: pointer;
    transition: background .3s ease;
    &::before {
      content: '';
      position: absolute;
      width: 18px; height: 18px;
      left: 3px; top: 3px;
      background: #fff;
      border-radius: 50%;
      transition: transform .3s ease;
      box-shadow: 0 1px 3px rgba(0,0,0,0.25);
    }
  }
  & input:checked + .toggle-slider { background: #FF6B4A; }
  & input:checked + .toggle-slider::before { transform: translateX(18px); }
  & input:disabled + .toggle-slider { opacity: 0.6; cursor: not-allowed; }
}
.consent-actions { display: flex; flex-direction: column; gap: 0.6rem; margin-top: auto; }
.consent-btn {
  border: none;
  border-radius: 999px;
  padding: 0.75rem 1rem;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: transform .3s ease, box-shadow .3s ease;
  min-height: 44px;
  &:hover { transform: translateY(-2px); }
}
.consent-accept { background: linear-gradient(135deg, #FF6B4A, #E24F30); color: #fff; }
.consent-save { background: #1B1F3B; color: #F6F2E9; }
.consent-reject { background: transparent; border: 1.5px solid #1B1F3B; color: #1B1F3B; }
.consent-link { text-align: center; font-size: 0.76rem; color: #565b7f; text-decoration: underline; }