.consent-banner,
.consent-reopen {
  box-sizing: border-box;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.consent-banner {
  position: fixed;
  z-index: 100000;
  inset: auto 16px 16px auto;
  width: min(760px, calc(100vw - 32px));
  padding: 18px 20px;
  border: 1px solid #d5e2de;
  border-radius: 15px;
  background: #fff;
  color: #163633;
  box-shadow: 0 14px 48px #001c1a45;
  font-size: 14px;
  line-height: 1.5;
}

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

.consent-banner-copy strong {
  display: block;
  margin-bottom: 5px;
  font-size: 16px;
}

.consent-banner-copy p {
  margin: 0 0 13px;
  color: #405650;
}

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

.consent-actions button,
.consent-reopen {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid #0a8175;
  border-radius: 8px;
  background: #fff;
  color: #075d55;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.consent-actions button[data-consent="accept"] {
  background: #08bfa6;
  color: #062d2f;
}

.consent-actions button:focus-visible,
.consent-reopen:focus-visible,
.consent-options input:focus-visible {
  outline: 3px solid #2379ff;
  outline-offset: 2px;
}

.consent-options {
  display: grid;
  gap: 10px;
  margin-top: 15px;
  padding-top: 14px;
  border-top: 1px solid #e2eae6;
}

.consent-options > label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.consent-options input {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  margin: 2px 0 0;
  accent-color: #078d7b;
}

.consent-options label span {
  display: grid;
  gap: 2px;
}

.consent-options small {
  color: #5d6d67;
  font-size: 12px;
  line-height: 1.4;
}

.consent-save-actions {
  justify-content: flex-end;
  margin-top: 2px;
}

.consent-reopen {
  position: fixed;
  z-index: 99998;
  right: 16px;
  bottom: 16px;
  min-height: 38px;
  padding-inline: 12px;
  border-color: #164e48;
  background: #0b3938;
  color: #fff;
  box-shadow: 0 5px 18px #001c1a35;
  font-size: 12px;
}

@media (max-width: 760px) {
  .consent-banner {
    inset: auto 10px calc(76px + env(safe-area-inset-bottom)) 10px;
    width: auto;
    padding: 15px;
    font-size: 13px;
  }

  .consent-banner-copy strong {
    font-size: 15px;
  }

  .consent-actions button {
    flex: 1 1 145px;
    min-height: 44px;
    padding-inline: 10px;
    font-size: 12px;
  }

  .consent-options small {
    font-size: 11px;
  }

  .consent-reopen {
    right: 10px;
    bottom: calc(76px + env(safe-area-inset-bottom));
    min-height: 36px;
    font-size: 11px;
  }
}
