/**
 * Cookie consent opt-in (World). Scoped CSS — do not touch custom.css.
 * Banner must sit above welcome / yard / chips so «Принять все» receives clicks.
 */
html body #cotinder-cookie-banner.cotinder-cookie-banner {
  z-index: 2147483645 !important;
  pointer-events: auto !important;
}

html body #cotinder-cookie-banner .cotinder-cookie-banner__inner,
html body #cotinder-cookie-banner .cotinder-cookie-banner__actions {
  position: relative;
  z-index: 1;
  pointer-events: auto !important;
}

html body #cotinder-cookie-banner .cotinder-cookie-banner__actions .btn {
  position: relative;
  z-index: 2;
  pointer-events: auto !important;
  min-height: 44px;
  min-width: 140px;
  cursor: pointer;
}

.cotinder-cookie-banner__actions .js-cotinder-cookie-necessary {
  min-width: 160px;
  text-align: center;
}

@media (max-width: 1024px) {
  html body #cotinder-cookie-banner .cotinder-cookie-banner__actions {
    width: 100%;
  }

  html body #cotinder-cookie-banner .cotinder-cookie-banner__actions .btn {
    flex: 1 1 140px;
    justify-content: center;
  }
}

@media (max-width: 767.98px) {
  html body #cotinder-cookie-banner .cotinder-cookie-banner__actions .btn {
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
  }
}

/* Phone only. Three full-width buttons plus the legal paragraph covered the first screen. */
@media (max-width: 430px) {
  html body #cotinder-cookie-banner.cotinder-cookie-banner {
    padding: 8px 0 calc(8px + env(safe-area-inset-bottom, 0px));
    max-height: 42vh;
    overflow: auto;
  }

  html body #cotinder-cookie-banner .cotinder-cookie-banner__inner {
    gap: 8px;
  }

  html body #cotinder-cookie-banner .cotinder-cookie-banner__title {
    margin-bottom: 2px;
    font-size: 15px;
    line-height: 1.25;
  }

  html body #cotinder-cookie-banner .cotinder-cookie-banner__text {
    font-size: 12px;
    line-height: 1.35;
  }

  html body #cotinder-cookie-banner .cotinder-cookie-banner__actions {
    gap: 6px;
  }

  html body #cotinder-cookie-banner .cotinder-cookie-banner__actions .btn {
    flex: 1 1 calc(50% - 6px);
    width: auto;
    min-width: 0;
    max-width: none;
    min-height: 40px;
    padding: 8px 10px;
    font-size: 13px;
  }

  html body #cotinder-cookie-banner .cotinder-cookie-banner__actions .js-cotinder-cookie-accept-all {
    flex-basis: 100%;
  }
}

/* RKN links moved to footer (.cotinder-footer-rkn). Keep hidden if cached header HTML remains. */
html body .header__legal {
  display: none !important;
}

.cotinder-footer-rkn {
    display: none;
}

.footer .cotinder-footer-rkn.is-placed,
footer .cotinder-footer-rkn.is-placed {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
    width: 100%;
    box-sizing: border-box;
    margin: 0 0 10px;
    padding: 0;
}

.footer .cotinder-footer-rkn.is-placed a,
footer .cotinder-footer-rkn.is-placed a {
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    line-height: 18px;
    white-space: nowrap;
}

.footer .cotinder-footer-rkn.is-placed a:hover,
.footer .cotinder-footer-rkn.is-placed a:focus,
footer .cotinder-footer-rkn.is-placed a:hover,
footer .cotinder-footer-rkn.is-placed a:focus {
    color: #ffffff !important;
    text-decoration: underline;
    opacity: 0.85;
}

@media (max-width: 767.98px) {
    .footer .cotinder-footer-rkn.is-placed a,
    footer .cotinder-footer-rkn.is-placed a {
        font-size: 13px;
    }
}
