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

.consent-banner,
.consent-dialog {
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.65;
}

.consent-banner {
  position: fixed;
  z-index: 90;
  right: 24px;
  bottom: 24px;
  left: auto;
  width: min(520px, calc(100vw - 48px));
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  margin: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 12px 48px #182b291a;
}

.consent-banner-copy {
  max-width: 680px;
}

.consent-banner h2,
.consent-dialog h2 {
  margin: 0 0 8px;
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.consent-banner p,
.consent-dialog p {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 14px;
}

.consent-banner a,
.consent-dialog a {
  color: var(--ink);
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.consent-banner > .consent-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: none;
}

.consent-actions button,
.consent-close {
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.consent-actions button:hover,
.consent-close:hover {
  background: var(--line);
}

.consent-actions button:focus-visible,
.consent-close:focus-visible,
.consent-settings:focus-visible,
.consent-option input:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.consent-actions .consent-customize {
  grid-column: 1 / -1;
  min-height: 36px;
  padding: 6px 12px;
  border-color: transparent;
  background: transparent;
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.consent-dialog {
  width: min(620px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 28px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 48px #182b2940;
}

.consent-dialog::backdrop {
  background: #182b2973;
}

.consent-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 12px;
}

.consent-dialog-header h2 {
  margin: 8px 0 0;
}

.consent-close {
  flex-shrink: 0;
}

.consent-options {
  margin: 20px 0;
  border-top: 1px solid var(--line);
}

.consent-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  cursor: pointer;
}

.consent-option input {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin: 3px 0 0;
  accent-color: var(--ink);
}

.consent-option > span,
.consent-option strong,
.consent-option span > span {
  display: block;
}

.consent-option strong {
  margin-bottom: 4px;
  font-weight: 700;
}

.consent-note {
  padding: 12px;
  background: var(--white);
  border: 1px solid var(--line);
}

.consent-dialog > .consent-actions {
  margin-top: 20px;
}

.consent-settings {
  min-height: 44px;
  padding: 8px 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 14px;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

@media (max-width: 760px) {
  .consent-banner {
    right: 12px;
    bottom: 12px;
    left: 12px;
    width: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    max-height: calc(100dvh - 24px);
    padding: 20px;
    overflow: auto;
  }

  .consent-banner > .consent-actions {
    max-width: none;
  }

  .consent-actions button {
    flex: 1 1 auto;
  }

  .consent-dialog {
    padding: 20px;
  }
}

@media (max-width: 760px) {
  .hire-landing .consent-banner {
    padding: 14px 16px;
    gap: 8px;
    border-radius: 12px;
  }
  .hire-landing .consent-banner h2 {
    font-size: 17px;
    margin-bottom: 4px;
  }
  .hire-landing .consent-banner p {
    font-size: 12px;
    line-height: 1.45;
    margin-bottom: 6px;
  }
  .hire-landing .consent-banner a {
    font-size: 12px;
  }
  .hire-landing .consent-actions {
    gap: 4px 8px;
  }
}

@media (max-width: 760px) {
  .consent-banner {
    padding: 16px;
    gap: 10px;
    border-radius: 12px;
  }
  .consent-banner h2 {
    font-size: 18px;
    margin-bottom: 4px;
  }
  .consent-banner p {
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 6px;
  }
  .consent-actions .consent-customize {
    min-height: 44px;
  }
}
