.hysaex-cookie-banner[hidden],
.hysaex-cookie-banner [hidden] {
  display: none !important;
}

.hysaex-cookie-banner {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 2147483000;
  width: min(660px, calc(100vw - 40px));
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  color: #111;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.55;
  text-align: left;
}

.hysaex-cookie-banner * {
  box-sizing: border-box;
}

.hysaex-cookie-panel {
  padding: 24px;
  background: #fff;
  border: 1px solid #111;
  border-radius: 10px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, .16);
}

.hysaex-cookie-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.hysaex-cookie-eyebrow {
  margin: 0 0 5px !important;
  color: #373639 !important;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: .12em;
  line-height: 1.2 !important;
}

.hysaex-cookie-heading h2 {
  margin: 0 !important;
  color: #111 !important;
  font-family: inherit !important;
  font-size: 23px !important;
  font-weight: 650 !important;
  letter-spacing: -.025em;
  line-height: 1.2 !important;
}

.hysaex-cookie-policy {
  flex: 0 0 auto;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: #0057b7 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

.hysaex-cookie-description {
  margin: 16px 0 0 !important;
  color: #373639 !important;
  font-size: 14px !important;
  line-height: 1.65 !important;
}

.hysaex-cookie-preferences {
  margin-top: 18px;
  padding: 4px 14px;
  background: #eef7ff;
  border-top: 1px solid #111;
  border-bottom: 1px solid #111;
}

.hysaex-cookie-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 0;
}

.hysaex-cookie-option + .hysaex-cookie-option {
  border-top: 1px dashed rgba(17, 17, 17, .35);
}

.hysaex-cookie-option strong {
  display: block;
  color: #111;
  font-size: 14px;
}

.hysaex-cookie-option p,
.hysaex-cookie-option span span {
  display: block;
  margin: 3px 0 0 !important;
  color: #373639 !important;
  font-size: 12px !important;
  line-height: 1.5 !important;
}

.hysaex-cookie-always {
  flex: 0 0 auto;
  color: #373639 !important;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace !important;
  font-size: 11px !important;
  text-transform: uppercase;
}

.hysaex-cookie-toggle {
  cursor: pointer;
}

.hysaex-cookie-toggle input {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: #0057b7;
  cursor: pointer;
}

.hysaex-cookie-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 20px;
}

.hysaex-cookie-button {
  min-height: 44px;
  padding: 10px 16px !important;
  border-radius: 5px !important;
  font-family: inherit !important;
  font-size: 13px !important;
  font-weight: 650 !important;
  line-height: 1.2 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  cursor: pointer;
  transition: color .1s linear, background-color .1s linear, border-color .1s linear;
}

.hysaex-cookie-primary {
  color: #fff !important;
  background: #0057b7 !important;
  border: 1px solid #0057b7 !important;
  box-shadow: none !important;
}

.hysaex-cookie-primary:hover {
  background: #004f91 !important;
  border-color: #004f91 !important;
}

.hysaex-cookie-secondary,
.hysaex-cookie-settings {
  color: #111 !important;
  background: #fff !important;
  border: 1px dashed #111 !important;
  box-shadow: none !important;
}

.hysaex-cookie-secondary:hover,
.hysaex-cookie-settings:hover {
  background: #eef7ff !important;
}

.hysaex-cookie-note {
  margin: 12px 0 0 !important;
  color: #373639 !important;
  font-size: 11px !important;
  line-height: 1.5 !important;
  text-align: right;
}

.hysaex-cookie-button:focus-visible,
.hysaex-cookie-policy:focus-visible,
.hysaex-cookie-toggle input:focus-visible,
.hysaex-cookie-dashboard-button:focus-visible {
  outline: 3px solid #0057b7 !important;
  outline-offset: 3px !important;
}

.hysaex-cookie-dashboard-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 28px;
  padding: 22px 24px;
  background: #f5f7fa;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  text-align: left;
}

.hysaex-cookie-dashboard-copy h3 {
  margin: 0 0 8px;
  color: #1f2a3d;
  font-size: 18px;
  line-height: 1.3;
}

.hysaex-cookie-dashboard-copy p {
  margin: 0;
  color: #4a5568;
  font-size: 13px;
  line-height: 1.6;
}

.hysaex-cookie-dashboard-status {
  margin-top: 6px !important;
  font-weight: 600;
}

.hysaex-cookie-dashboard-button {
  flex: 0 0 auto;
  min-height: 42px;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .hysaex-cookie-banner {
    right: 0;
    bottom: 0;
    width: 100vw;
    max-height: calc(100vh - 12px);
    max-height: calc(100dvh - 12px);
  }

  .hysaex-cookie-panel {
    padding: 20px 18px calc(18px + env(safe-area-inset-bottom, 0px));
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 10px 10px 0 0;
  }

  .hysaex-cookie-heading {
    gap: 12px;
  }

  .hysaex-cookie-heading h2 {
    font-size: 21px !important;
  }

  .hysaex-cookie-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .hysaex-cookie-button {
    width: 100%;
  }

  .hysaex-cookie-note {
    text-align: left;
  }

  .hysaex-cookie-dashboard-card {
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
    padding: 18px;
  }

  .hysaex-cookie-dashboard-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hysaex-cookie-button {
    transition: none;
  }
}
