.ab-cookie-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  background: rgb(6 24 40 / 58%);
}

.ab-cookie-panel,
.ab-cookie-dialog {
  position: fixed;
  z-index: 2147483001;
  color: #162433;
  background: #fff;
  box-shadow: 0 18px 55px rgb(0 25 55 / 28%);
  font: 16px/1.5 Arial, Helvetica, sans-serif;
}

.ab-cookie-panel {
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.25rem;
  align-items: center;
  max-width: 1080px;
  margin: auto;
  padding: 1.25rem;
  border-radius: 16px;
}

.ab-cookie-dialog {
  top: 50%;
  left: 50%;
  width: min(92vw, 620px);
  max-height: 88vh;
  overflow: auto;
  padding: 1.5rem;
  border-radius: 16px;
  transform: translate(-50%, -50%);
}

.ab-cookie-panel h2,
.ab-cookie-dialog h2 {
  margin: 0 0 .45rem;
  color: #005ba3;
  font-size: 1.3rem;
  line-height: 1.25;
}

.ab-cookie-panel p,
.ab-cookie-dialog p {
  margin: 0;
}

.ab-cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  align-items: center;
}

.ab-cookie-actions button,
.ab-cookie-preferences {
  min-height: 44px;
  padding: .65rem 1rem;
  border: 2px solid #005ba3;
  border-radius: 8px;
  font: 700 15px/1.2 Arial, Helvetica, sans-serif;
  cursor: pointer;
}

.ab-cookie-primary,
.ab-cookie-preferences {
  color: #fff;
  background: #005ba3;
}

.ab-cookie-secondary {
  color: #005ba3;
  background: #fff;
}

.ab-cookie-actions button:hover,
.ab-cookie-actions button:focus-visible,
.ab-cookie-preferences:hover,
.ab-cookie-preferences:focus-visible {
  outline: 3px solid #f6c945;
  outline-offset: 2px;
}

.ab-cookie-legal {
  margin-top: .5rem !important;
  font-size: .9rem;
}

.ab-cookie-legal a {
  color: #005ba3;
  text-decoration: underline;
}

.ab-cookie-option {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin: 1rem 0;
  padding: 1rem;
  border: 1px solid #c8d5df;
  border-radius: 10px;
  background: #f7fafc;
}

.ab-cookie-option strong,
.ab-cookie-option small {
  display: block;
}

.ab-cookie-option input {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
}

.ab-cookie-preferences {
  position: fixed;
  z-index: 2147482999;
  bottom: .75rem;
  left: .75rem;
  min-height: 38px;
  padding: .45rem .75rem;
  border-radius: 999px;
  font-size: 13px;
}

@media (max-width: 760px) {
  .ab-cookie-panel {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .ab-cookie-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .ab-cookie-actions button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ab-cookie-panel,
  .ab-cookie-dialog {
    scroll-behavior: auto;
  }
}
