.sak-consent-root,
.sak-consent-root * {
  box-sizing: border-box;
}

.sak-consent-open .sak-ai-widget {
  visibility: hidden !important;
  pointer-events: none !important;
}

.sak-consent-panel {
  position: fixed;
  z-index: 2147483647;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.25rem;
  align-items: center;
  max-width: 76rem;
  margin: 0 auto;
  padding: 1.15rem;
  color: #f8f3e8;
  background: rgba(7, 16, 17, 0.98);
  border: 1px solid rgba(226, 190, 115, 0.6);
  border-radius: 0.9rem;
  box-shadow: 0 1.1rem 3rem rgba(0, 0, 0, 0.38);
  font-family: inherit;
}

.sak-consent-panel[hidden],
.sak-consent-settings[hidden] {
  display: none;
}

.sak-consent-copy h2 {
  margin: 0 0 0.35rem;
  color: #fffaf0;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.25;
}

.sak-consent-copy p {
  max-width: 55rem;
  margin: 0;
  color: #e6e1d7;
  font-size: 0.94rem;
  line-height: 1.55;
}

.sak-consent-copy a {
  color: #f2ce82;
  text-underline-offset: 0.18em;
}

.sak-consent-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(10rem, 1fr));
  gap: 0.65rem;
}

.sak-consent-actions button,
.sak-consent-settings,
.sak-inline-privacy-settings {
  min-height: 2.8rem;
  padding: 0.7rem 1rem;
  color: #071011;
  background: #f6eddc;
  border: 1px solid #f6eddc;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}

.sak-consent-actions button:hover,
.sak-consent-actions button:focus-visible,
.sak-consent-settings:hover,
.sak-consent-settings:focus-visible,
.sak-inline-privacy-settings:hover,
.sak-inline-privacy-settings:focus-visible {
  color: #071011;
  background: #f2ce82;
  border-color: #f2ce82;
  outline: 3px solid rgba(242, 206, 130, 0.38);
  outline-offset: 2px;
}

.sak-consent-settings {
  position: fixed;
  z-index: 2147483000;
  left: 0.75rem;
  bottom: 0.75rem;
  min-height: 2.35rem;
  padding: 0.55rem 0.8rem;
  color: #f8f3e8;
  background: rgba(7, 16, 17, 0.94);
  border-color: rgba(226, 190, 115, 0.7);
  border-radius: 0.55rem;
  font-size: 0.78rem;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.26);
}

.sak-inline-privacy-settings {
  margin-top: 0.35rem;
}

@media (max-width: 760px) {
  .sak-consent-panel {
    grid-template-columns: 1fr;
    gap: 0.9rem;
    max-height: calc(100vh - 1rem);
    right: 0.5rem;
    bottom: 0.5rem;
    left: 0.5rem;
    padding: 1rem;
    overflow-y: auto;
  }

  .sak-consent-actions {
    grid-template-columns: 1fr;
  }

  .sak-consent-actions button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sak-consent-root * {
    scroll-behavior: auto !important;
  }
}
