.agilehr-cookie-link[hidden] {
  display: none !important;
}

.agilehr-consent {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 90;
  display: grid;
  gap: 10px;
  width: min(980px, calc(100% - 360px));
  transform: translate3d(-50%, 8px, 0);
  opacity: 1;
  transition: transform 180ms ease, opacity 180ms ease;
  will-change: transform, opacity;
  pointer-events: none;
}

.agilehr-consent--hidden {
  transform: translate3d(-50%, calc(-100% - 10px), 0);
  opacity: 0;
}

.agilehr-consent__banner,
.agilehr-consent__modal {
  border: 1px solid rgba(21, 32, 51, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 38px rgba(16, 24, 38, 0.14);
  color: #152033;
  font: 400 13px/1.4 "IBM Plex Sans", sans-serif;
  pointer-events: auto;
}

.agilehr-consent__banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 10px;
}

.agilehr-consent__banner-copy {
  min-width: 0;
}

.agilehr-consent__copy {
  margin: 0;
  color: #42516b;
  white-space: nowrap;
}

.agilehr-consent__copy a {
  color: #163d8f;
  font-weight: 600;
  text-decoration: none;
}

.agilehr-consent__copy a:hover,
.agilehr-consent__privacy:hover {
  text-decoration: underline;
}

.agilehr-consent__actions,
.agilehr-consent__modal-actions,
.agilehr-consent__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.agilehr-consent__actions {
  flex: 0 0 auto;
  justify-content: flex-end;
}

.agilehr-consent__button {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(21, 32, 51, 0.14);
  border-radius: 999px;
  background: #ffffff;
  color: #152033;
  font: 600 11.5px/1 "IBM Plex Sans", sans-serif;
  white-space: nowrap;
  cursor: pointer;
}

.agilehr-consent__button:hover,
.agilehr-consent__close:hover {
  border-color: rgba(22, 61, 143, 0.28);
}

.agilehr-consent__button--primary {
  border-color: #163d8f;
  background: #163d8f;
  color: #ffffff;
}

.agilehr-consent__modal {
  justify-self: end;
  display: grid;
  gap: 14px;
  width: min(420px, 100%);
  padding: 14px;
}

.agilehr-consent__modal[hidden] {
  display: none;
}

.agilehr-consent__modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.agilehr-consent__modal-head h2 {
  margin: 0;
  font: 700 15px/1.2 "Unbounded", sans-serif;
}

.agilehr-consent__modal-head p {
  margin: 4px 0 0;
  color: #42516b;
}

.agilehr-consent__close {
  min-width: 34px;
  min-height: 34px;
  border: 1px solid rgba(21, 32, 51, 0.14);
  border-radius: 999px;
  background: #ffffff;
  color: #152033;
  font: 600 13px/1 "IBM Plex Sans", sans-serif;
  cursor: pointer;
}

.agilehr-consent__rows {
  display: grid;
  gap: 10px;
}

.agilehr-consent__row {
  justify-content: space-between;
  padding: 10px 0;
  border-top: 1px solid rgba(21, 32, 51, 0.08);
}

.agilehr-consent__row:first-child {
  border-top: 0;
  padding-top: 0;
}

.agilehr-consent__row-copy {
  min-width: 0;
}

.agilehr-consent__row-copy strong {
  display: block;
  margin-bottom: 2px;
  font: 600 13px/1.4 "IBM Plex Sans", sans-serif;
}

.agilehr-consent__row-copy span {
  color: #5f6d84;
  font-size: 12px;
}

.agilehr-consent__switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 46px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #d6dde8;
  cursor: pointer;
  transition: background-color 0.16s ease;
}

.agilehr-consent__switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 4px 10px rgba(21, 32, 51, 0.18);
  transition: transform 0.16s ease;
}

.agilehr-consent__switch[aria-checked="true"] {
  background: #163d8f;
}

.agilehr-consent__switch[aria-checked="true"]::after {
  transform: translateX(20px);
}

.agilehr-consent__switch[disabled] {
  cursor: default;
  opacity: 0.78;
}

.agilehr-consent__modal-actions {
  justify-content: space-between;
}

.agilehr-consent__privacy {
  color: #163d8f;
  font: 600 12px/1.4 "IBM Plex Sans", sans-serif;
  text-decoration: none;
}

@media (max-width: 900px) {
  .agilehr-consent {
    top: 0;
    width: min(520px, calc(100% - 12px));
    transform: translate3d(-50%, 6px, 0);
  }

  .agilehr-consent__banner {
    padding: 5px 8px;
    gap: 8px;
  }

  .agilehr-consent__banner-copy {
    display: none;
  }

  .agilehr-consent__actions {
    width: 100%;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 6px;
  }

  .agilehr-consent__button {
    flex: 1 1 0;
    min-height: 28px;
    padding: 0 6px;
    font-size: 10.5px;
  }
}

@media (max-width: 840px) {
  .agilehr-consent {
    top: 0;
    width: min(100%, calc(100% - 12px));
    transform: translate3d(-50%, 6px, 0);
  }

  .agilehr-consent__modal-actions {
    width: 100%;
    justify-content: stretch;
  }

  .agilehr-consent__modal {
    justify-self: stretch;
    width: 100%;
  }
}

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