/* Sigma CA — Cookie consent banner */

.sigma-cookie-root {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  z-index: 10040;
  display: none !important;
}

.sigma-cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 10040;
  display: flex;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.sigma-cookie-banner.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.sigma-cookie-panel {
  width: min(720px, 100%);
  background: #ffffff;
  color: #1c1c1a;
  border: 1px solid #e5e2da;
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(28, 28, 26, 0.18);
  padding: 18px 20px 16px;
}

.sigma-cookie-title {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #005c3e;
  letter-spacing: -0.01em;
}

.sigma-cookie-desc {
  margin: 0 0 14px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #3d3d3a;
}

.sigma-cookie-desc a {
  color: #007853;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.sigma-cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.sigma-cookie-actions--prefs {
  margin-top: 8px;
}

.sigma-cookie-btn {
  appearance: none;
  border: none;
  cursor: pointer;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 8px;
  padding: 10px 14px;
  line-height: 1.2;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.sigma-cookie-btn:focus-visible {
  outline: 2px solid #007853;
  outline-offset: 2px;
}

.sigma-cookie-btn--primary {
  background: #007853;
  color: #fff;
}

.sigma-cookie-btn--primary:hover {
  background: #005c3e;
}

.sigma-cookie-btn--outline {
  background: #e8f4f0;
  color: #005c3e;
}

.sigma-cookie-btn--outline:hover {
  background: #d7ebe3;
}

.sigma-cookie-btn--ghost {
  background: transparent;
  color: #3d3d3a;
  border: 1px solid #e5e2da;
}

.sigma-cookie-btn--ghost:hover {
  background: #f5f0e8;
}

.sigma-cookie-prefs {
  position: fixed;
  inset: 0;
  z-index: 10045;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(20, 28, 24, 0.45);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.sigma-cookie-prefs.is-open {
  opacity: 1;
}

.sigma-cookie-prefs-card {
  width: min(520px, 100%);
  max-height: min(90vh, 640px);
  overflow: auto;
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e5e2da;
  padding: 22px 20px 18px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.22);
  transform: translateY(10px);
  transition: transform 0.22s ease;
}

.sigma-cookie-prefs.is-open .sigma-cookie-prefs-card {
  transform: translateY(0);
}

.sigma-cookie-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid #eeebe3;
}

.sigma-cookie-row-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.sigma-cookie-row-copy strong {
  font-size: 0.92rem;
  color: #1c1c1a;
}

.sigma-cookie-row-copy span {
  font-size: 0.8rem;
  color: #6b6b68;
  line-height: 1.4;
}

.sigma-cookie-switch {
  position: relative;
  width: 46px;
  height: 26px;
  flex-shrink: 0;
  cursor: pointer;
}

.sigma-cookie-switch.is-locked {
  cursor: not-allowed;
  opacity: 0.85;
}

.sigma-cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.sigma-cookie-slider {
  position: absolute;
  inset: 0;
  background: #d5d2ca;
  border-radius: 999px;
  transition: background 0.18s ease;
}

.sigma-cookie-slider::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.18s ease;
}

.sigma-cookie-switch input:checked + .sigma-cookie-slider {
  background: #007853;
}

.sigma-cookie-switch input:checked + .sigma-cookie-slider::before {
  transform: translateX(20px);
}

.sigma-cookie-switch input:focus-visible + .sigma-cookie-slider {
  outline: 2px solid #007853;
  outline-offset: 2px;
}

.sigma-cookie-reopen {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 10035;
  appearance: none;
  border: 1px solid #e5e2da;
  background: #fff;
  color: #005c3e;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(28, 28, 26, 0.12);
}

.sigma-cookie-reopen:hover {
  background: #e8f4f0;
}

.sigma-cookie-reopen:focus-visible {
  outline: 2px solid #007853;
  outline-offset: 2px;
}

@media (max-width: 560px) {
  .sigma-cookie-banner {
    left: 10px;
    right: 10px;
    bottom: 10px;
  }

  .sigma-cookie-actions {
    flex-direction: column-reverse;
  }

  .sigma-cookie-btn {
    width: 100%;
  }

  .sigma-cookie-reopen {
    left: 10px;
    bottom: 10px;
  }
}
