/* AM-UX-M5-20261121 — гостевой checkout: читаемые поля на ПК, тач-цели, счётчики фильтра */
/* Поля и кнопки — не меньше 16px / 44px, даже когда html font-size считается от ширины экрана */
.cart input[type="text"],
.cart input[type="tel"],
.cart input[type="email"],
.cart input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="button"]):not([type="submit"]),
.cart textarea,
.recipient-content__input input,
.obtaining__content-top input,
.cart .recipient__msg textarea {
  font-size: 16px !important;
  line-height: 1.3 !important;
  min-height: 44px !important;
  box-sizing: border-box;
}
.cart .recipient__msg textarea { min-height: 88px !important; }

.cart .recipient-content__input label,
.cart .recipient__msg label,
.cart .obtaining__content-top label,
.cart .cart__title,
.cart .order-consent__text {
  font-size: max(14px, 1em);
}

.cart .cart__button,
.cart .pay__button {
  min-height: 44px !important;
  height: auto !important;
  padding: 12px 16px !important;
  font-size: 16px !important;
  line-height: 1.2 !important;
  box-sizing: border-box;
}

.cart .obtaining__tab {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 4px;
  font-size: 16px !important;
  line-height: 1.2 !important;
  box-sizing: border-box;
}

.cart .order-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 44px;
}
.cart .order-consent input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-width: 20px;
  margin-top: 2px;
  flex-shrink: 0;
}

/* Заголовок оформления, если Битрикс-заголовок уехал под шапку/плашку */
.am-ux-m5-title {
  font-size: 28px;
  line-height: 1.2;
  font-weight: 600;
  margin: 16px 0 8px;
  padding: 0 0 0 0;
}
.am-ux-m5-guest-note {
  font-size: 16px;
  line-height: 1.4;
  color: #333;
  margin: 0 0 16px;
}
.am-ux-m5-errors {
  display: none;
  background: #fdecea;
  color: #8a1f11;
  border: 1px solid #f5c2c0;
  padding: 12px 14px;
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.4;
  border-radius: 2px;
}
.am-ux-m5-errors.is-on { display: block; }
.am-ux-m5-errors ul { margin: 0; padding-left: 1.2em; }
.cart input.am-ux-m5-invalid,
.cart textarea.am-ux-m5-invalid {
  border-color: #c0392b !important;
}

/* Плашка доставки на /cart/order: контент не должен заезжать под шапку+плашку */
html.am-ux-m2-hasstrip body.am-ux-m5-checkout .main {
  margin-top: calc(var(--am-ux-m2-header-h, 71px) + var(--am-ux-m2-strip-h, 34px));
}

/* Счётчики граней: чуть воздуха; боковая колонка каталога на ПК — ниже шапки */
.am-ux-m4-count {
  margin-left: 0.4em;
  font-variant-numeric: tabular-nums;
  opacity: 0.75;
}
@media (min-width: 1024px) {
  .catalog-nav,
  .catalog-content-nav,
  aside.catalog-nav,
  .catalog-page .catalog-nav {
    /* если колонка липкая — якорим ниже шапки и плашки */
  }
  .catalog-content .catalog-nav,
  .catalog__filter,
  .smart-filter-form {
    /* padding handled below if the column is in the first screen under a fixed header */
  }
  /* Первый экран каталога: левая колонка не прячется под фиксированную шапку */
  body .catalog-content > .catalog-nav,
  body .catalog-wrap .catalog-nav,
  body .catalog .catalog-nav:first-child {
    padding-top: 0.5rem;
  }
}

/* AM-UX-M5-20261121 BEGIN email-375 */
@media (max-width: 500px) {
  /* Телефон и email в одну колонку, длинный адрес не обрезается */
  .cart .recipient-content__input-wrap {
    flex-wrap: wrap;
    margin-left: 0;
  }
  .cart .recipient-content__input-wrap > .recipient-content__input {
    flex: 1 1 100%;
    max-width: 100%;
    width: 100%;
    margin-left: 0;
    min-width: 0;
  }
  .cart .recipient-content__input input,
  .cart #host-mail,
  .cart #host-phone {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow-x: auto;
  }
}
/* AM-UX-M5-20261121 END email-375 */
