/* Keep every button variant on the Xleb token contract. */
body :is(button, a, div).btn.outlined:is(:hover, :focus-visible) {
  background: var(--btnOutlinedHoverBg);
  border-color: var(--btnOutlinedColor);
  color: var(--btnOutlinedColor);
}

.cookies .btn-default:is(:hover, :focus-visible) {
  background: var(--btnDefaultHoverBg);
  border-color: var(--btnDefaultHoverBg);
  color: var(--btnDefaultColor);
}

body :is(button, a, div).btn:active {
  box-shadow: none;
}

/* UI kit interactive states (Figma 6377:49836). */
.citydent-card-hover-action {
  align-items: center;
  background: var(--primaryOpacity100);
  border-radius: 50%;
  color: var(--primary500);
  display: flex;
  flex-direction: row;
  flex-shrink: 0;
  height: 48px !important;
  justify-content: center;
  max-width: 48px !important;
  opacity: 0;
  pointer-events: none;
  padding: 0 !important;
  position: absolute;
  transform: translateY(4px);
  transition: background-color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
  width: 48px;
  z-index: 2;
}

.citydent-card-hover-action .ph {
  --xleb-icon-size: 20px;
  font-size: 20px;
}

.citydent-service-card .tag-item.tags-size-xs {
  align-items: center;
  background: rgba(0, 0, 15, 0.04);
  border: 0;
  border-radius: var(--roundedXS);
  display: inline-flex;
  height: 28px;
  line-height: var(--textSheightT);
  min-height: 28px;
  padding: 0 var(--gapX2) !important;
  width: auto;
}

.link.textM>a {
  line-height: var(--textMheightT);
}

.link.textS>a {
  line-height: var(--textSheightT);
}

.navigation-slider .swiper-button-disabled {
  opacity: 1;
}

.navigation-slider .swiper-button-disabled::before {
  color: var(--primaryOpacity500);
}

.navigation-slider :is(.swiper-button-prev, .swiper-button-next):not(.swiper-button-disabled):focus-visible {
  background: var(--primaryOpacity200) !important;
}

.citydent-article-card__title,
.citydent-site-header__desktop-nav>a,
.citydent-site-header__nav-button,
.citydent-site-header__dropdown a,
.citydent-site-header__socials a,
.citydent-footer__nav-list a,
.citydent-footer__bottom a,
.citydent-footer__socials a,
.navigation-slider :is(.swiper-button-prev, .swiper-button-next),
.citydent-answer-card__play,
.citydent-quote__play {
  transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {

  .citydent-site-header__desktop-nav>a:hover,
  .citydent-site-header__desktop-nav>a:focus-visible,
  .citydent-site-header__nav-button:focus-visible,
  .citydent-site-header__dropdown a:hover,
  .citydent-site-header__dropdown a:focus-visible,
  .citydent-footer__nav-list a:hover,
  .citydent-footer__nav-list a:focus-visible {
    color: var(--contentOpacityColor, rgba(31, 31, 31, 0.5)) !important;
  }

  .citydent-site-header--overlay .citydent-site-header__desktop-nav>a:hover,
  .citydent-site-header--overlay .citydent-site-header__desktop-nav>a:focus-visible,
  .citydent-site-header--overlay .citydent-site-header__nav-button:focus-visible {
    color: var(--whiteOpacity500, rgba(255, 255, 255, 0.5)) !important;
  }

  .citydent-site-header__socials a:hover,
  .citydent-site-header__socials a:focus-visible {
    color: var(--contentColor, #1f1f1f);
  }

  .citydent-site-header--overlay .citydent-site-header__socials a:hover,
  .citydent-site-header--overlay .citydent-site-header__socials a:focus-visible {
    color: var(--white, #fff);
  }

  .citydent-footer__bottom a:hover,
  .citydent-footer__bottom a:focus-visible {
    color: var(--contentColor, #1f1f1f);
  }

  .citydent-footer__socials a:hover,
  .citydent-footer__socials a:focus-visible {
    opacity: 0.5;
  }

  .navigation-slider :is(.swiper-button-prev, .swiper-button-next):not(.swiper-button-disabled):hover,
  .navigation-slider :is(.swiper-button-prev, .swiper-button-next):not(.swiper-button-disabled):focus-visible {
    background: var(--primaryOpacity200) !important;
  }

  :is(.citydent-service-card, .citydent-service-approach-card):hover .citydent-card-hover-action,
  :is(.citydent-service-card, .citydent-service-approach-card):focus-visible .citydent-card-hover-action {
    opacity: 1;
    transform: translateY(0);
  }

  :is(.citydent-service-card, .citydent-service-approach-card):hover,
  :is(.citydent-service-card, .citydent-service-approach-card):focus-visible {
    color: var(--contentColor, #1f1f1f) !important;
  }

  .citydent-answer-card__media:hover .citydent-answer-card__play,
  .citydent-answer-card__play:hover,
  .citydent-answer-card__play:focus-visible {
    background: var(--whiteOpacity800);
  }

  .citydent-quote__media:hover .citydent-quote__play {
    background: var(--white, #fff);
  }

  .citydent-article-card:hover .citydent-article-card__title,
  .citydent-article-card:focus-visible .citydent-article-card__title {
    color: var(--contentOpacityColor, rgba(31, 31, 31, 0.5));
  }

  .citydent-contact .row-submit input[type="submit"]:not(:disabled):hover {
    background: var(--whiteOpacity800);
  }
}

.citydent-contact .xleb-form input:not([type="submit"], [type="checkbox"], [type="hidden"]),
.citydent-contact .xleb-form textarea,
.citydent-contact .row-submit input[type="submit"] {
  transition: background-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.citydent-contact .xleb-form input:not([type="submit"], [type="checkbox"], [type="hidden"]):focus-visible,
.citydent-contact .xleb-form textarea:focus-visible {
  box-shadow: inset 0 0 0 1px var(--white);
  outline: 0;
}

body:is(.home, .single-services, .single-post) .citydent-contact .xleb-form .input-box :is(input, textarea):is(.error, .error-animation, [aria-invalid="true"]) {
  background: var(--inputErrorBg, var(--errorOpacity100));
  box-shadow: inset 0 0 0 1px var(--inputErrorBorder, var(--errorOpacity400));
}

body:is(.home, .single-services, .single-post) .citydent-contact .xleb-form .input-box :is(input, textarea):is(.error, .error-animation, [aria-invalid="true"]):focus-visible {
  background: var(--inputErrorBg, var(--errorOpacity100));
  box-shadow:
    inset 0 0 0 1px var(--inputErrorBorder, var(--errorOpacity400)),
    0 0 0 2px var(--whiteOpacity500);
}

.citydent-contact .xleb-form input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

.citydent-contact .row-submit input[type="submit"] {
  line-height: var(--textMheightT);
}

.citydent-contact .row-submit input[type="submit"]:focus-visible {
  background: var(--whiteOpacity800);
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

body:is(.home, .single-services, .single-post) .citydent-contact .row-submit input[type="submit"]:disabled {
  background: var(--whiteOpacity500);
  color: var(--primaryOpacity500);
  cursor: not-allowed;
  opacity: 1;
}

