/*!
 * Баннер cookie и настройки согласия — vsevkudrovo.ru
 * Все стили изолированы префиксом .pd-cookie / .pd-*.
 */

.pd-cookie,
.pd-cookie * {
  box-sizing: border-box;
}

.pd-cookie {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 100000;
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px 22px;
  background: #ffffff;
  color: #1b2430;
  border: 1px solid #dbe2ea;
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(14, 25, 40, 0.22);
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  text-align: left;
  animation: pd-cookie-in 0.22s ease-out;
}

@keyframes pd-cookie-in {
  from { transform: translateY(14px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .pd-cookie { animation: none; }
}

.pd-cookie__head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.pd-cookie__icon {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #eef3fb;
  color: #1f4f96;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
}

.pd-cookie__text {
  flex: 1 1 auto;
  min-width: 0;
}

.pd-cookie__title {
  display: block;
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
  color: #122033;
}

.pd-cookie__text p {
  margin: 0;
  color: #3c4a5c;
}

.pd-cookie__text a {
  color: #1f4f96;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.pd-cookie__text a:hover {
  color: #d32f2f;
}

.pd-cookie__close {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  margin: -6px -6px 0 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #6b7787;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.pd-cookie__close:hover {
  background: #f1f4f8;
  color: #122033;
}

.pd-cookie__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.pd-cookie__btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 11px 18px;
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.pd-cookie__btn--accept {
  background: #1f4f96;
  color: #ffffff;
}

.pd-cookie__btn--accept:hover {
  background: #173d76;
}

.pd-cookie__btn--reject {
  background: #ffffff;
  color: #1b2430;
  border-color: #c9d3df;
}

.pd-cookie__btn--reject:hover {
  border-color: #8fa1b6;
  background: #f7f9fc;
}

.pd-cookie__btn--settings {
  background: transparent;
  color: #1f4f96;
  border-color: transparent;
  padding-left: 8px;
  padding-right: 8px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pd-cookie__btn--settings:hover {
  color: #d32f2f;
}

.pd-cookie__settings {
  margin-top: 16px;
  padding: 14px 16px;
  background: #f7f9fc;
  border: 1px solid #e3e9f1;
  border-radius: 12px;
}

.pd-cookie__settings[hidden] {
  display: none !important;
}

.pd-cookie__row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #e8edf4;
}

.pd-cookie__row:last-of-type {
  border-bottom: 0;
}

.pd-cookie__row input {
  margin-top: 4px;
  width: 17px;
  height: 17px;
  accent-color: #1f4f96;
}

.pd-cookie__row label {
  cursor: pointer;
  color: #1b2430;
}

.pd-cookie__row small {
  display: block;
  color: #647184;
  font-size: 13px;
}

.pd-cookie__save {
  margin-top: 10px;
}

.pd-cookie__note {
  margin: 12px 0 0;
  font-size: 13px;
  color: #647184;
}

/* ошибка у чекбокса согласия в формах */
.pd-consent-error {
  margin: 6px 0 0;
  color: #b3261e;
  font-size: 13px;
  font-weight: 600;
}

.pd-consent-error[hidden] {
  display: none !important;
}

.field.pd-consent-field-error input[type="checkbox"] {
  outline: 2px solid #b3261e;
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .pd-cookie {
    left: 8px;
    right: 8px;
    bottom: 8px;
    padding: 16px;
  }

  .pd-cookie__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .pd-cookie__btn {
    width: 100%;
    text-align: center;
  }

  .pd-cookie__btn--settings {
    order: 3;
  }
}

/* ссылки в подвале сайта */
.kt_copy .kt_legal {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
}

.kt_copy .kt_legal a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.kt_copy .kt_legal a:hover {
  color: #d32f2f;
}

.kt_copy .kt_legal__btn {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.kt_copy .kt_legal__btn:hover {
  color: #d32f2f;
}

/* пояснение к формам регистрации и объявлений */
.pd-form-note {
  margin: 18px 0 0;
  padding: 14px 16px;
  background: #f7f9fc;
  border: 1px solid #e1e8f0;
  border-radius: 10px;
  color: #3c4a5c;
  font-size: 14px;
  line-height: 1.55;
}

.pd-form-note p {
  margin: 0 0 8px;
}

.pd-form-note p:last-child {
  margin: 0;
}

.pd-form-note a {
  color: #1f4f96;
}

/* выделяем чекбоксы согласия, которые добавляются полями профиля/типа контента */
.field:has(input[name="pd_consent"]),
.field:has(input[name="pd_distribution"]) {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #e8edf4;
}

.field:has(input[name="pd_consent"]) label,
.field:has(input[name="pd_distribution"]) label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  line-height: 1.5;
}

.pd-form-note--comments {
  margin: 12px 0;
}

.pd-inline-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.5;
  cursor: pointer;
}

.pd-inline-check input {
  margin-top: 4px;
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  accent-color: #1f4f96;
}



