.akcc[hidden],
.akcc-settings[hidden],
.akcc__preferences[hidden],
.akcc__actions[hidden] {
  display: none !important;
}

.akcc {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 18px;
  background: rgba(10, 18, 28, 0.48);
  font-family: inherit;
}

.akcc__dialog {
  width: min(980px, 100%);
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  padding: 24px;
  border: 1px solid #dce3ea;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.24);
  color: #26323d;
}

.akcc__main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.akcc__copy {
  flex: 1 1 auto;
}

.akcc__title {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.25;
  color: #1b2733;
}

.akcc__description,
.akcc__category-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
}

.akcc a {
  color: #1f5fa8;
  font-weight: 600;
  text-decoration: underline;
}

.akcc__actions,
.akcc__preference-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.akcc__button {
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid #b7c2cc;
  border-radius: 8px;
  background: #ffffff;
  color: #1b2733;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.akcc__button:hover,
.akcc__button:focus-visible {
  border-color: #1f5fa8;
  outline: 3px solid rgba(31, 95, 168, 0.18);
}

.akcc__button--primary {
  border-color: #1f5fa8;
  background: #1f5fa8;
  color: #ffffff;
}

.akcc__button--link {
  border-color: transparent;
  background: transparent;
  color: #1f5fa8;
}

.akcc__preferences {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #e2e7ec;
}

.akcc__category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid #edf1f4;
}

.akcc__category-title {
  margin: 0 0 5px;
  font-size: 17px;
  color: #1b2733;
}

.akcc__preference-actions {
  margin-top: 18px;
}

.akcc__switch {
  position: relative;
  flex: 0 0 auto;
  width: 50px;
  height: 28px;
}

.akcc__switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.akcc__slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #aab4be;
  cursor: pointer;
  transition: 0.2s ease;
}

.akcc__slider::before {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.24);
  transition: 0.2s ease;
}

.akcc__switch input:checked + .akcc__slider {
  background: #1f5fa8;
}

.akcc__switch input:checked + .akcc__slider::before {
  transform: translateX(22px);
}

.akcc__switch input:focus-visible + .akcc__slider {
  outline: 3px solid rgba(31, 95, 168, 0.24);
}

.akcc__switch input:disabled + .akcc__slider {
  cursor: not-allowed;
  opacity: 0.7;
}

.akcc-settings {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 2147482990;
  padding: 9px 13px;
  border: 1px solid #1f5fa8;
  border-radius: 999px;
  background: #ffffff;
  color: #1f5fa8;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.16);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.akcc-settings:hover,
.akcc-settings:focus-visible {
  outline: 3px solid rgba(31, 95, 168, 0.18);
}

@media (max-width: 760px) {
  .akcc {
    padding: 10px;
  }

  .akcc__dialog {
    padding: 20px;
    border-radius: 12px;
  }

  .akcc__main {
    display: block;
  }

  .akcc__actions {
    justify-content: stretch;
    margin-top: 18px;
  }

  .akcc__actions .akcc__button,
  .akcc__preference-actions .akcc__button {
    width: 100%;
  }

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