/* Focused responsive fixes for the shared shops theme. Keep page content intact. */
:root {
  --shops-accent: #168f78;
  --shops-space: 16px;
}

:where(a, button, input, select, textarea, [role="button"]):focus-visible {
  outline: 3px solid var(--shops-accent);
  outline-offset: 3px;
}

.burger,
.modal__menu--close {
  cursor: pointer;
}

.city-popup-content {
  max-height: min(80dvh, 720px);
}

#city-search {
  min-height: 44px;
  font-size: 16px;
}

.city-group a {
  display: block;
  min-height: 40px;
  padding: 9px 2px;
  font-size: 16px;
  line-height: 1.35;
}

.city-group li {
  margin-bottom: 0;
}

.cookie-consent {
  gap: 10px;
  padding: 8px 12px;
  font-size: 13px;
  line-height: 1.35;
}

.cookie-consent p,
.cookie-consent a,
.cookie-consent button {
  font-size: 13px;
}

.cookie-consent button {
  flex: 0 0 auto;
  min-width: 44px;
  min-height: 40px;
  padding: 8px;
}

body.shops-cookie-visible {
  padding-bottom: 62px;
}

.shops-privacy-page .contact__item,
.shops-privacy-page .contact__text--inner {
  min-width: 0;
  max-width: 100%;
}

.shops-privacy-page p,
.shops-privacy-page li {
  font-size: 16px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.shops-privacy-page a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.shops-privacy-page h2 {
  font-size: 22px;
  line-height: 1.3;
}

.shops-privacy-page .contact__text--title {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.shops-mobile-filter-toggle {
  display: none;
}

.searchclass-filter-checkbox {
  min-width: 20px;
  min-height: 20px;
  accent-color: var(--shops-accent);
}

.filtr_color-circle {
  width: 32px;
  height: 32px;
  margin: 6px;
}

h1.tovar__title {
  font-size: clamp(30px, 3vw, 38px);
  line-height: 1.2;
}

.prev__link {
  color: #555;
}

.shops-login-page #loginform label[for="user_login"],
.shops-login-page #loginform label[for="user_pass"] {
  display: block;
  margin: 0 0 8px;
  color: #353331;
  font-size: 16px;
  line-height: 1.4;
}

.shops-login-page #loginform .login-remember label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 16px;
}

.shops-login-page #loginform #rememberme {
  width: 20px;
  height: 20px;
  accent-color: var(--shops-accent);
}

.shops-registration-form {
  min-width: 0;
  max-width: 100%;
}

.shops-registration-form label {
  display: block;
  margin-bottom: 6px;
  font-size: 16px;
  line-height: 1.4;
}

.shops-registration-form input:not([type="submit"]) {
  max-width: 100%;
  font-size: 16px;
}

.shops-search-empty-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 12px;
  padding: 10px 16px;
  border-radius: 6px;
  background: var(--shops-accent);
  color: #fff;
  font-size: 16px;
  text-decoration: none;
}

.shops-promo-land__tab {
  min-height: 44px;
}

.shops-cmp__hint {
  color: #555;
  font-size: 14px;
  line-height: 1.4;
}

.city .sitemap_title {
  font-size: clamp(26px, 3vw, 36px) !important;
  line-height: 1.25;
}

.sitemap_html {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 8px;
  width: 100%;
}

.sitemap_html .sitemap_item,
.sitemap_html .sitemap_item2 {
  display: flex;
  align-items: center;
  min-height: 44px;
  min-width: 0;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #dfe7e3;
  border-left: 4px solid #8b9a94;
  border-radius: 6px;
  background: #fff;
  color: #273b35;
  font-size: 16px;
  line-height: 1.35;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.sitemap_html .sitemap_item2 {
  border-left-color: var(--shops-accent);
  background: #eaf7f3;
  color: #166d5d;
  font-weight: 600;
}

@media (max-width: 1200px) {
  .citylist .contact__feedback--role--inner {
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  .contact__title--inner h1.review__title {
    font-size: 24px;
    line-height: 1.25;
    text-align: left;
  }

  .list-favorit .favorite-item {
    grid-template-columns: 80px minmax(0, 1fr);
    grid-template-areas:
      "image name"
      "image price"
      ". remove";
    align-items: start;
    gap: 8px;
    max-width: 100%;
    box-sizing: border-box;
  }

  .list-favorit .favorite-image {
    grid-area: image;
    min-width: 0;
    padding: 4px;
  }

  .list-favorit .favorite-image img {
    width: 100%;
    height: auto;
  }

  .list-favorit .favorite-name {
    grid-area: name;
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .list-favorit .favorite-name a {
    font-size: 16px !important;
    line-height: 1.35;
  }

  .list-favorit .favorite-price {
    grid-area: price;
    min-width: 0;
  }

  .list-favorit .favorite-remove {
    grid-area: remove;
    justify-self: end;
  }

  .list-favorit .favorite-remove button {
    min-width: 44px;
    min-height: 44px;
  }

  .shops-delivery-page h1.contact__text--title {
    font-size: 28px;
    line-height: 1.2;
  }

  .shops-delivery-page .calc_d-container {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 12px;
    box-sizing: border-box;
  }

  .shops-delivery-page .calc_d-block {
    flex: 1 1 100%;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    padding: 16px;
    box-sizing: border-box;
  }

  .shops-delivery-page .calc_d-block input,
  .shops-delivery-page .calc_d-block select {
    max-width: 100%;
    box-sizing: border-box;
  }

  .shops-login-page #loginform,
  .shops-login-page .contact__point--inner,
  .shops-login-page .login-form-container,
  .shops-registration-page .contact__point--inner,
  .shops-registration-form {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .shops-login-page #loginform input:not([type="checkbox"]):not([type="hidden"]),
  .shops-registration-form input {
    max-width: 100%;
    box-sizing: border-box;
  }

  .shops-registration-form input[type="submit"] {
    width: 100%;
    min-height: 44px;
    white-space: normal;
    line-height: 1.3;
    font-size: 16px;
  }

  h1.tovar__title {
    font-size: 26px;
    line-height: 1.25;
  }

  .burger {
    width: 44px;
    height: 44px;
    object-fit: contain;
  }

  .modal__menu {
    overflow-y: auto;
    padding: 64px 20px 32px;
  }

  .modal__menu--close {
    width: 44px;
    height: 44px;
    padding: 8px;
    object-fit: contain;
  }

  .modal__nav--link {
    display: flex;
    align-items: center;
    min-height: 44px;
    margin-top: 4px;
    font-size: 18px;
  }

  .city-popup-content {
    width: calc(100% - 24px);
    max-height: calc(100dvh - 48px);
    height: auto;
    padding: 20px;
  }

  .city-popup-content .close-button {
    min-width: 44px;
    min-height: 44px;
    top: 0;
    right: 0;
  }

  .city-list {
    display: block;
  }

  .title__inner .title {
    max-width: 100%;
    font-size: 28px;
    line-height: 1.2;
    overflow-wrap: anywhere;
  }

  .shops-search-page .citywith__content {
    min-width: 0;
  }

  .shops-search-page .shops-mobile-filter-toggle {
    display: block;
    width: 100%;
    min-height: 44px;
    margin: 12px 0;
    border: 1px solid var(--shops-accent);
    border-radius: 8px;
    background: #fff;
    color: #166d5d;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
  }

  .shops-search-page .filter__inner {
    display: none;
  }

  .shops-search-page .filter__inner.shops-filters-open {
    display: flex;
    width: 100%;
  }

  .shops-search-page .contact__feedback--role--inner {
    flex-direction: row;
    gap: 4px;
    flex-wrap: wrap;
  }

  .shops-search-page .filtr_color-container {
    width: 100% !important;
    max-width: 100%;
    margin-left: 0;
  }

  .calc_gor-container {
    max-width: 100%;
    min-width: 0;
    padding: 12px;
  }

  .calc_gor-block,
  .delivery_calc-block {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    padding: 16px;
  }

  .calc_gor-block .sborka-block {
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
  }

  .citylist__inner > .review {
    flex: 0 1 100%;
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }

  .calc_gor-info-row,
  .delivery_calc-info-row {
    min-width: 0;
    flex-wrap: wrap;
    gap: 6px;
  }

  .shops-search-page .contact__feedback--role {
    width: auto;
    min-height: 36px;
    padding: 6px 10px;
    font-size: 14px;
  }

  .rec__item--cart--inner button,
  .rec__item--cart--inner a:last-child {
    min-height: 40px;
  }

  .odin_kommentariy,
  .odin_kommentariy .container,
  .odin_kommentariy .contact_comment,
  .odin_kommentariy #comment_form,
  .odin_kommentariy form,
  .odin_kommentariy .otzyva_forma,
  .odin_kommentariy .review__feedback--content,
  .odin_kommentariy .review__feedback--wrapper {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
  }

  .odin_kommentariy .container {
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .odin_kommentariy #comment_form .container {
    padding-left: 0;
    padding-right: 0;
  }

  .odin_kommentariy .otzyva_forma {
    padding: 16px;
  }

  .odin_kommentariy .zagolovok_otveta {
    position: static;
    margin: 0 0 16px;
  }

  .odin_kommentariy input:not([type="checkbox"]):not([type="radio"]),
  .odin_kommentariy textarea,
  .odin_kommentariy .fo_toggle_form {
    max-width: 100% !important;
    box-sizing: border-box;
  }

  .odin_kommentariy .fo_toggle_form {
    min-height: 44px;
    white-space: normal;
  }

  .shops-privacy-page .contact__text--title {
    font-size: 28px;
    line-height: 1.2;
  }
}
