.site-consent {
  bottom: 18px;
  color: var(--site-consent-text);
  font-family: var(--site-consent-font);
  left: 18px;
  position: fixed;
  right: 18px;
  z-index: 1000;
}

.site-consent[hidden],
.site-consent [hidden] {
  display: none !important;
}

[data-consent-category][hidden],
[data-consent-placeholder][hidden] {
  display: none !important;
}

.site-consent__dialog {
  background: var(--site-consent-background);
  border: 1px solid var(--site-consent-border);
  border-top: 4px solid var(--site-consent-accent);
  border-radius: var(--site-consent-radius);
  box-shadow: var(--site-consent-shadow);
  margin: 0 auto;
  max-height: calc(100vh - 36px);
  max-width: 920px;
  overflow: auto;
  padding: 20px 22px;
}

.site-consent__head {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.site-consent__head-actions {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.site-consent__close.site-consent__close {
  all: unset;
  background: transparent;
  border: 1px solid var(--site-consent-border);
  border-radius: var(--site-consent-radius);
  box-sizing: border-box;
  color: var(--site-consent-text);
  cursor: pointer;
  display: block;
  flex: 0 0 39px;
  height: 39px;
  position: relative;
  transition: background-color 0.18s ease, border-color 0.18s ease;
  width: 39px;
}

.site-consent__close.site-consent__close::before,
.site-consent__close.site-consent__close::after {
  background: currentColor;
  content: "";
  height: 1px;
  left: 50%;
  position: absolute;
  top: 50%;
  width: 15px;
}

.site-consent__close.site-consent__close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.site-consent__close.site-consent__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.site-consent__close.site-consent__close:hover {
  background: var(--site-consent-surface);
  border-color: var(--site-consent-text);
}

.site-consent__close.site-consent__close:focus-visible {
  outline: 2px solid var(--site-consent-accent);
  outline-offset: 2px;
}

.site-consent__title {
  color: var(--site-consent-text);
  font: inherit;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
}

.site-consent__intro {
  color: var(--site-consent-muted);
  font-size: 15px;
  line-height: 1.5;
  margin: 10px 0 0;
  max-width: 760px;
}

.site-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 16px;
}

.site-consent__button,
.site-consent__toggle {
  appearance: none;
  border: 1px solid var(--site-consent-border);
  border-radius: var(--site-consent-radius);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.1;
  padding: 12px 15px;
  text-transform: uppercase;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.site-consent__toggle {
  box-sizing: border-box;
  height: 39px;
}

.site-consent__button--primary {
  background: var(--site-consent-accent);
  border-color: var(--site-consent-accent);
  color: var(--site-consent-accent-text);
}

.site-consent__button--neutral {
  background: var(--site-consent-text);
  border-color: var(--site-consent-text);
  color: var(--site-consent-background);
}

.site-consent__button--ghost,
.site-consent__toggle {
  background: transparent;
  color: var(--site-consent-text);
}

.site-consent__button:hover,
.site-consent__toggle:hover {
  background: var(--site-consent-surface);
  border-color: var(--site-consent-text);
  color: var(--site-consent-text);
}

.site-consent__panel {
  border-top: 1px solid var(--site-consent-border);
  margin-top: 18px;
  padding-top: 14px;
}

.site-consent__option {
  align-items: flex-start;
  background: var(--site-consent-surface);
  border: 1px solid var(--site-consent-border);
  cursor: pointer;
  display: grid;
  gap: 12px;
  grid-template-columns: 18px 1fr;
  padding: 13px 14px;
}

.site-consent__option + .site-consent__option {
  border-top: 0;
}

.site-consent__option input {
  accent-color: var(--site-consent-accent);
  height: 16px;
  margin: 2px 0 0;
  width: 16px;
}

.site-consent__option strong,
.site-consent__option span {
  color: var(--site-consent-text);
  font-size: 14px;
  line-height: 1.4;
}

.site-consent__option span {
  color: var(--site-consent-muted);
}

.site-consent__privacy-button.site-consent__privacy-button {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  margin-left: auto;
  text-decoration: none;
}

.site-consent-launcher.site-consent-launcher {
  all: unset;
  align-items: center;
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(105, 105, 105, 0.72);
  border-radius: 5px 5px 0 0;
  border-style: solid;
  border-width: 1px 1px 0;
  bottom: 0;
  box-sizing: border-box;
  color: var(--site-consent-text);
  cursor: pointer;
  display: inline-flex;
  font-family: var(--site-consent-font);
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1;
  min-height: 24px;
  padding: 5px 10px 4px;
  position: fixed;
  right: max(14px, env(safe-area-inset-right));
  text-transform: uppercase;
  transition: background-color 0.15s ease, color 0.15s ease;
  z-index: 10001;
}

.site-consent-launcher.site-consent-launcher:hover {
  background: #e3e3e3;
  color: var(--site-consent-text);
}

.site-consent-launcher.site-consent-launcher:focus-visible {
  outline: 1px solid var(--site-consent-text);
  outline-offset: 2px;
}

.site-consent-launcher.site-consent-launcher[hidden] {
  display: none !important;
}

body:has(.site-consent-launcher:not([hidden])) .floating-phone {
  bottom: 34px;
}

@media (max-width: 640px) {
  .site-consent {
    bottom: 10px;
    left: 10px;
    right: 10px;
  }

  .site-consent__dialog {
    max-height: calc(100vh - 20px);
    padding: 17px;
  }

  .site-consent__head {
    align-items: flex-start;
  }

  .site-consent__head-actions {
    align-items: flex-start;
  }

  .site-consent__title {
    font-size: 19px;
  }

  .site-consent__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .site-consent__button {
    width: 100%;
  }

  .site-consent__privacy-button.site-consent__privacy-button {
    margin-left: 0;
  }

  .site-consent-launcher.site-consent-launcher {
    bottom: 0;
    min-height: 24px;
    padding: 5px 9px 4px;
    right: max(10px, env(safe-area-inset-right));
  }
}
