.hfc-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  background: #f5f1ea;
  color: #171717;
  border-top: 2px solid #171717;
  padding: 18px 22px calc(20px + env(safe-area-inset-bottom, 0px));
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.hfc-consent-inner {
  max-width: 640px;
  margin: 0 auto;
}

.hfc-consent-title {
  margin: 0;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.hfc-consent-copy {
  margin: 8px 0 0;
  font-size: 0.95rem;
  line-height: 1.4;
  max-width: 36em;
}

.hfc-consent-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.hfc-consent-btn {
  appearance: none;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 11px 14px;
  border-radius: 999px;
  cursor: pointer;
  min-height: 44px;
}

.hfc-consent-btn:focus-visible {
  outline: 2px solid #432761;
  outline-offset: 2px;
}

.hfc-consent-btn--ghost {
  background: #f5f1ea;
  color: #171717;
  border: 1.5px solid #171717;
}

.hfc-consent-btn--solid {
  background: #171717;
  color: #f5f1ea;
  border: 1.5px solid #171717;
}

.hfc-consent-btn--wide {
  width: 100%;
  margin-top: 12px;
}

.hfc-consent-customize {
  appearance: none;
  background: none;
  border: 0;
  padding: 12px 0 0;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: #432761;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hfc-consent-customize:focus-visible {
  outline: 2px solid #432761;
  outline-offset: 2px;
}

.hfc-consent-panel {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #171717;
}

.hfc-consent-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.hfc-consent-item label {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
}

.hfc-consent-item label span {
  display: block;
  margin-top: 2px;
  font-weight: 400;
  font-size: 0.82rem;
  color: #4a4a4a;
}

.hfc-consent-switch {
  appearance: none;
  width: 44px;
  height: 26px;
  min-width: 44px;
  margin-top: 2px;
  border-radius: 999px;
  border: 1.5px solid #171717;
  background: #f5f1ea;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
}

.hfc-consent-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #171717;
}

.hfc-consent-switch:checked {
  background: #432761;
  border-color: #432761;
}

.hfc-consent-switch:checked::after {
  left: 20px;
  background: #f5f1ea;
}

.hfc-consent-switch:focus-visible {
  outline: 2px solid #432761;
  outline-offset: 2px;
}

.hfc-consent-reopen {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  font-weight: 600;
  color: inherit;
  cursor: pointer;
  text-decoration: none;
}

.hfc-consent-reopen:hover,
.hfc-consent-reopen:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hfc-consent-reopen-wrap {
  position: relative;
  z-index: 1;
  margin: 20px 0 8px;
  text-align: center;
  font-size: 0.88rem;
}

@media (max-width: 420px) {
  .hfc-consent-actions {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1024px) {
  .hfc-consent-inner {
    max-width: 720px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hfc-consent-switch::after {
    transition: none;
  }
}
