/* Personal data consent checkbox */
.consent-checkbox {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 16px;
  cursor: pointer;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-muted);
}

/* form-field задаёт column — чекбокс и текст в одну строку */
.form-field.consent-checkbox,
.contact-modal__form .consent-checkbox,
.checkout-agree.consent-checkbox {
  flex-direction: row;
  align-items: flex-start;
}

.consent-checkbox__text {
  flex: 1;
  min-width: 0;
}

.consent-checkbox--error .consent-checkbox__input {
  outline: 2px solid #dc2626;
  outline-offset: 2px;
}

.consent-checkbox__input {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--primary);
  cursor: pointer;
}

.consent-checkbox__text a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.consent-checkbox__text a:hover {
  color: var(--primary-dark);
}

.contact-modal__form .consent-checkbox {
  margin-bottom: 12px;
  flex-direction: row;
  align-items: flex-start;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  padding: 14px 0;
  background: var(--bg-white);
  border-top: 1px solid var(--border-light);
  box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.12);
}

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

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

.cookie-banner__text {
  flex: 1;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
}

.cookie-banner__text a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner__btn {
  flex-shrink: 0;
}

.asynco-checkout-consent {
  margin-bottom: 16px;
}

.asynco-checkout-consent .consent-checkbox {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .cookie-banner__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner__btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .footer__legal {
    flex-wrap: wrap;
    gap: 12px 16px;
    justify-content: center;
  }
}
