/* Cookie consent · Solsano · RGPD / ePrivacy / AEPD */

.sc-root {
  --sc-teal: #015351;
  --sc-greendark: #123129;
  --sc-fluor: #67ED6E;
  --sc-arena: #EFE7DA;
  --sc-aqua: #D6F9DC;
  --sc-radius: 8px;
  --sc-shadow: 0 8px 32px rgba(18, 49, 41, 0.18);
  font-family: 'DM Sans', ui-sans-serif, system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  color: #123129;
  box-sizing: border-box;
}

.sc-root *,
.sc-root *::before,
.sc-root *::after {
  box-sizing: border-box;
}

.sc-banner {
  position: fixed;
  z-index: 9998;
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-width: 560px;
  margin-inline: auto;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--sc-radius);
  box-shadow: var(--sc-shadow);
  padding: 20px;
  display: none;
}

.sc-banner[data-open='true'] {
  display: block;
}

.sc-banner__title {
  margin: 0 0 8px;
  font-family: Montserrat, ui-sans-serif, system-ui, sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.3;
  color: var(--sc-greendark);
}

.sc-banner__text {
  margin: 0 0 16px;
  color: rgba(0, 0, 0, 0.72);
  font-size: 13px;
  line-height: 1.5;
}

.sc-banner__text a {
  color: var(--sc-teal);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.sc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sc-btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  border-radius: 6px;
  padding: 12px 14px;
  font: inherit;
  font-weight: 500;
  font-size: 13px;
  line-height: 1;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
  flex: 1 1 auto;
  min-width: 120px;
  text-align: center;
}

.sc-btn:focus-visible {
  outline: 3px solid var(--sc-aqua);
  outline-offset: 2px;
}

.sc-btn--accept {
  background: var(--sc-fluor);
  color: var(--sc-greendark);
}

.sc-btn--accept:hover {
  background: var(--sc-greendark);
  color: var(--sc-fluor);
}

.sc-btn--reject {
  background: #fff;
  color: var(--sc-greendark);
  border: 1px solid rgba(0, 0, 0, 0.15);
}

.sc-btn--reject:hover {
  border-color: var(--sc-teal);
}

.sc-btn--config {
  background: #fff;
  color: var(--sc-greendark);
  border: 1px solid rgba(0, 0, 0, 0.15);
}

.sc-btn--config:hover {
  border-color: var(--sc-teal);
}

.sc-btn--save {
  background: var(--sc-teal);
  color: #fff;
}

.sc-btn--save:hover {
  background: var(--sc-greendark);
}

.sc-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(18, 49, 41, 0.45);
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
}

.sc-overlay[data-open='true'] {
  display: flex;
}

@media (min-width: 640px) {
  .sc-overlay {
    align-items: center;
  }
}

.sc-panel {
  width: 100%;
  max-width: 480px;
  max-height: min(88vh, 640px);
  overflow: auto;
  background: #fff;
  border-radius: var(--sc-radius);
  box-shadow: var(--sc-shadow);
  padding: 24px 20px 20px;
}

.sc-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.sc-panel__title {
  margin: 0;
  font-family: Montserrat, ui-sans-serif, system-ui, sans-serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.25;
  color: var(--sc-greendark);
}

.sc-panel__close {
  appearance: none;
  border: 0;
  background: var(--sc-arena);
  color: var(--sc-greendark);
  width: 36px;
  height: 36px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
}

.sc-panel__close:hover {
  background: #e4d9c8;
}

.sc-panel__close:focus-visible {
  outline: 3px solid var(--sc-aqua);
  outline-offset: 2px;
}

.sc-panel__intro {
  margin: 0 0 18px;
  color: rgba(0, 0, 0, 0.72);
  font-size: 13px;
  line-height: 1.5;
}

.sc-panel__intro a {
  color: var(--sc-teal);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.sc-cat {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--sc-radius);
  padding: 14px;
  margin-bottom: 10px;
}

.sc-cat__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sc-cat__name {
  margin: 0;
  font-weight: 500;
  font-size: 14px;
  color: var(--sc-greendark);
}

.sc-cat__desc {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(0, 0, 0, 0.65);
}

.sc-switch {
  position: relative;
  width: 44px;
  height: 26px;
  flex-shrink: 0;
}

.sc-switch input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
  z-index: 1;
}

.sc-switch input:disabled {
  cursor: not-allowed;
}

.sc-switch__track {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: #d4d4d4;
  transition: background-color 0.15s;
}

.sc-switch__thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.15s;
  pointer-events: none;
}

.sc-switch input:checked + .sc-switch__track {
  background: var(--sc-teal);
}

.sc-switch input:checked ~ .sc-switch__thumb {
  transform: translateX(18px);
}

.sc-switch input:disabled + .sc-switch__track {
  background: var(--sc-teal);
  opacity: 0.55;
}

.sc-switch input:focus-visible + .sc-switch__track {
  outline: 3px solid var(--sc-aqua);
  outline-offset: 2px;
}

.sc-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--sc-arena);
  color: rgba(0, 0, 0, 0.7);
  font-size: 11px;
  font-weight: 500;
  vertical-align: middle;
}

.sc-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.sc-fab {
  position: fixed;
  z-index: 9997;
  left: 16px;
  right: auto;
  bottom: 16px;
  width: 48px;
  height: 48px;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #fff;
  color: var(--sc-greendark);
  box-shadow: 0 4px 16px rgba(18, 49, 41, 0.12);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.sc-fab[data-visible='true'] {
  display: inline-flex;
}

.sc-fab:hover {
  background: var(--sc-arena);
}

.sc-fab:focus-visible {
  outline: 3px solid var(--sc-aqua);
  outline-offset: 2px;
}

.sc-fab svg {
  width: 26px;
  height: 26px;
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .sc-btn,
  .sc-switch__track,
  .sc-switch__thumb {
    transition: none;
  }
}
