.filosofiga-consent-dialog {
  width: min(568px, calc(100vw - 36px));
  max-height: calc(100dvh - 36px);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 1px solid rgba(241, 232, 221, .24);
  border-radius: 2px;
  background: #100d0d;
  color: #f1e8dd;
  box-shadow: 0 28px 76px rgba(0, 0, 0, .48);
  font-family: "DM Sans", Arial, sans-serif;
  opacity: 0;
  transform: translateY(12px);
}

.filosofiga-consent-dialog[open] {
  animation: filosofiga-consent-enter 220ms cubic-bezier(.22, 1, .36, 1) forwards;
}

.filosofiga-consent-dialog::backdrop {
  background: rgba(3, 2, 2, .56);
  animation: filosofiga-consent-backdrop 180ms ease-out both;
}

.filosofiga-consent-panel {
  padding: 34px 36px 28px;
}

.filosofiga-consent-kicker {
  margin: 0 0 18px;
  color: #d0927e;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.filosofiga-consent-headline {
  max-width: 500px;
  margin: 0 0 22px;
  color: #f1e8dd;
  font-family: var(--serif, "Libre Bodoni", Georgia, serif);
  font-size: clamp(34px, 3.15vw, 43px);
  font-weight: 500;
  line-height: .98;
  letter-spacing: -.025em;
  text-wrap: balance;
}

.filosofiga-consent-body {
  max-width: 65ch;
  color: #cbbfb5;
  font-size: 14px;
  line-height: 1.58;
}

.filosofiga-consent-body p {
  margin: 0 0 9px;
}

.filosofiga-consent-emphasis {
  margin-top: 15px !important;
  color: #f1e8dd;
  font-family: var(--serif, "Libre Bodoni", Georgia, serif);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
}

.filosofiga-consent-actions {
  display: grid;
  grid-template-columns: 1fr .78fr 1.45fr;
  gap: 8px;
  margin-top: 26px;
}

.filosofiga-consent-actions button {
  min-width: 0;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid rgba(241, 232, 221, .34);
  border-radius: 1px;
  background: transparent;
  color: #f1e8dd;
  font: 600 9px/1.2 "DM Sans", Arial, sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease;
}

.filosofiga-consent-actions button:hover {
  border-color: rgba(241, 232, 221, .72);
  background: rgba(241, 232, 221, .05);
}

.filosofiga-consent-actions .filosofiga-consent-primary {
  border-color: #d0927e;
  background: #d0927e;
  color: #160f0e;
}

.filosofiga-consent-actions .filosofiga-consent-primary:hover {
  border-color: #dfa28d;
  background: #dfa28d;
}

.filosofiga-consent-policy {
  margin: 20px 0 0;
  color: #a99c93;
  font-size: 12px;
  line-height: 1.4;
}

.filosofiga-consent-policy a {
  color: inherit;
  text-decoration-color: rgba(208, 146, 126, .64);
  text-underline-offset: .25em;
}

.filosofiga-consent-options {
  margin-top: 4px;
  border-bottom: 1px solid rgba(241, 232, 221, .15);
}

.filosofiga-consent-option {
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 15px 0;
  border-top: 1px solid rgba(241, 232, 221, .15);
  color: #cbbfb5;
}

.filosofiga-consent-option strong {
  display: block;
  color: #f1e8dd;
  font: 600 10px/1.3 "DM Sans", Arial, sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.filosofiga-consent-option small,
.filosofiga-consent-status {
  color: #a99c93;
  font-size: 11px;
  line-height: 1.4;
}

.filosofiga-consent-option small {
  display: block;
  margin-top: 5px;
}

.filosofiga-consent-option-control {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
  cursor: pointer;
}

.filosofiga-consent-option-control input {
  width: 32px;
  height: 18px;
  margin: 0;
  accent-color: #d0927e;
  cursor: pointer;
}

.filosofiga-consent-dialog button:focus-visible,
.filosofiga-consent-dialog a:focus-visible,
.filosofiga-consent-dialog input:focus-visible,
.filosofiga-privacy-link:focus-visible {
  outline: 2px solid #f1e8dd;
  outline-offset: 3px;
}

.filosofiga-privacy-link {
  border: 0;
  padding: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  text-decoration: none;
  cursor: pointer;
}

@keyframes filosofiga-consent-enter {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes filosofiga-consent-backdrop {
  from { background: rgba(3, 2, 2, 0); }
  to { background: rgba(3, 2, 2, .56); }
}

@media (max-width: 620px) {
  .filosofiga-consent-dialog {
    width: calc(100vw - 32px);
    max-height: calc(100dvh - 32px);
  }

  .filosofiga-consent-panel {
    padding: 26px 22px 22px;
  }

  .filosofiga-consent-kicker {
    margin-bottom: 14px;
    font-size: 14px;
  }

  .filosofiga-consent-headline {
    margin-bottom: 18px;
    font-size: clamp(31px, 9.5vw, 38px);
  }

  .filosofiga-consent-actions {
    grid-template-columns: 1fr;
    margin-top: 22px;
  }

  .filosofiga-consent-actions .filosofiga-consent-primary,
  .filosofiga-consent-actions [data-consent-save] {
    grid-column: 1 / -1;
  }

  .filosofiga-consent-actions button {
    min-height: 48px;
    font-size: 14px;
    letter-spacing: .06em;
  }

  .filosofiga-consent-option {
    gap: 14px;
  }

  .filosofiga-consent-option strong,
  .filosofiga-consent-option small,
  .filosofiga-consent-status,
  .filosofiga-consent-policy {
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .filosofiga-consent-dialog[open],
  .filosofiga-consent-dialog::backdrop {
    animation: none;
  }

  .filosofiga-consent-dialog[open] {
    opacity: 1;
    transform: none;
  }

  .filosofiga-consent-actions button {
    transition: none;
  }
}
