/* Frontalka: blocks behind fr_on() (system/helper/frontalka_preview.php) */

.fr-requisites, .fr-cookie, .fr-header-shops, .fr-burger-shops, .fr-shops, .fr-faq, .fr-model-text {
  font-family: 'SF Pro Display-Regular', sans-serif;
}
.fr-shops__title, .fr-shop__address, .fr-faq__title, .fr-faq__q, .fr-model-text h2 {
  font-family: 'SF Pro Display-Medium', sans-serif;
}

/* Seller details in the footer (text instead of the picture) */
.fr-requisites {
  margin-top: 16px;
  padding: 10px 14px;
  background: #fff;
  border-radius: 8px;
  color: #31373c;
  font-size: 14px;
  line-height: 1.45;
  max-width: 300px;
  box-sizing: border-box;
}

/* Warranty line in the product buy box: same look as the credit / trade-in rows */
a.fr-warranty {
  text-decoration: none;
  color: inherit;
}

/* Cookie notice */
.fr-cookie {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 620px;
  padding: 14px 16px;
  background: #fff;
  color: #31373c;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .16);
  box-sizing: border-box;
  font-size: 14px;
  line-height: 1.4;
}
.fr-cookie[hidden] { display: none; }
.fr-cookie__text { margin: 0; }
.fr-cookie__link { color: #196dfa; text-decoration: underline; }
.fr-cookie__btn {
  flex: 0 0 auto;
  min-width: 110px;
  padding: 10px 16px;
  cursor: pointer;
}
@media screen and (max-width: 1200px) {
  /* above the bottom tab bar and the pinned buy bar on phones */
  .fr-cookie {
    left: 8px;
    right: 8px;
    bottom: calc(var(--fr-cookie-offset, 150px) + env(safe-area-inset-bottom, 0px));
    max-width: none;
    font-size: 13px;
    gap: 12px;
  }
}

/* Shop addresses in the header */
.fr-header-shops {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 16px;
  color: #31373c;
  font-size: 14px;
  white-space: nowrap;
  text-decoration: none;
}
.fr-header-shops:hover { color: #196dfa; }
.fr-header-shops__metro { color: #888; }
.fr-burger-shops {
  display: block;
  margin: 12px 0 0;
  color: #31373c;
  font-size: 15px;
  line-height: 1.4;
  text-decoration: none;
}

/* "Где нас найти" on the home page */
.fr-shops { margin: 48px 0; }
.fr-shops__title {
  color: #31373c;
  font-size: 32px;
  font-weight: 500;
  margin: 0 0 24px;
}
.fr-shops__inner {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 24px;
  align-items: stretch;
}
.fr-shops__list { display: flex; flex-direction: column; gap: 16px; }
.fr-shop {
  padding: 20px;
  border: 1px solid #e6e8eb;
  border-radius: 16px;
  color: #31373c;
}
.fr-shop__address { font-size: 20px; font-weight: 500; margin: 0 0 6px; }
.fr-shop__metro { color: #555; margin: 0 0 6px; }
.fr-shop__metro::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 6px;
  border-radius: 50%;
  background: #e42313;
}
.fr-shop__open { color: #555; margin: 0; }
.fr-shops__more { color: #196dfa; text-decoration: none; }
.fr-shops__map {
  min-height: 360px;
  border-radius: 16px;
  overflow: hidden;
  background: #f2f3f5;
}
@media screen and (max-width: 770px) {
  .fr-shops { margin: 32px 0; }
  .fr-shops__title { font-size: 24px; margin-bottom: 16px; }
  .fr-shops__inner { grid-template-columns: 1fr; }
  .fr-shops__map { min-height: 280px; }
}

/* Questions and answers in a category */
.fr-faq { margin: 40px 0; }
.fr-faq__title {
  color: #31373c;
  font-size: 28px;
  font-weight: 500;
  margin: 0 0 16px;
}
.fr-faq__item {
  border-bottom: 1px solid #e6e8eb;
}
.fr-faq__q {
  cursor: pointer;
  list-style: none;
  padding: 16px 32px 16px 0;
  position: relative;
  color: #31373c;
  font-size: 17px;
  font-weight: 500;
}
.fr-faq__q::-webkit-details-marker { display: none; }
.fr-faq__q::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 12px;
  font-size: 24px;
  color: #196dfa;
}
.fr-faq__item[open] .fr-faq__q::after { content: "−"; }
.fr-faq__a {
  padding: 0 0 16px;
  color: #444;
  font-size: 15px;
  line-height: 1.5;
}
@media screen and (max-width: 770px) {
  .fr-faq__title { font-size: 22px; }
  .fr-faq__q { font-size: 16px; }
}

/* Model description from the category in the "О товаре" tab */
.fr-model-text { margin: 20px 0; color: #31373c; line-height: 1.55; }
.fr-model-text h2 { font-size: 24px; font-weight: 500; margin: 0 0 12px; }
.fr-model-text ul { list-style: disc; padding-left: 20px; margin: 8px 0; }
.fr-header-shops { margin-left: 16px; margin-right: 0; }
.fr-header-shops__short { display: none; }
@media screen and (max-width: 1399px) {
  .fr-header-shops__full { display: none; }
  .fr-header-shops__short { display: inline; }
}
@media screen and (max-width: 1200px) {
  .fr-header-shops { display: none; }
}
.fr-model-text p { margin: 0 0 10px; }

/* Seller details are shown as text (.fr-requisites): hide the old picture with the same details. */
body:has(.fr-requisites) .footer-top img[src="/image/image5826.png"] {
	display: none;
}
