/* MyWoolbridge Contacts V1.3 — mobile OpenPencil reference 0:72893 (375px).
   Scoped to contacts only; BS5 and existing Desktop/Tablet styles remain intact.
   No changes to theme.css, fonts, functional JS, or shared page components. */
@media (max-width: 575.98px) {
  body.wb-contacts-page .wb-info-hero {
    min-height: 0;
    padding-bottom: 16px;
  }
  body.wb-contacts-page .wb-info-hero__inner--contacts {
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
  }
  body.wb-contacts-page .wb-info-hero__inner--contacts .wb-info-hero__copy {
    padding-top: 14px;
    padding-left: 0;
    text-align: center;
  }
  body.wb-contacts-page .wb-info-hero__title {
    margin: 0 auto;
    font-size: 24px;
    font-weight: 400;
    line-height: 28px;
    letter-spacing: 0;
  }
  body.wb-contacts-page .wb-info-hero__mascot--contacts {
    display: block;
    width: min(221px, 68vw);
    height: auto;
    max-height: 142px;
    margin: 20px auto 0;
    object-fit: contain;
  }
  body.wb-contacts-page .wb-info-content.wb-container {
    min-width: 0;
    padding-inline: 14px;
    padding-bottom: 36px;
  }
  body.wb-contacts-page .wb-info-card-shell--contacts {
    width: 100%;
    max-width: none;
    min-width: 0;
  }
  body.wb-contacts-page .wb-info-card-shell--contacts .wb-info-tabs {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 4px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0 0 22px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  body.wb-contacts-page .wb-info-tabs::-webkit-scrollbar { display: none; }
  /* Mobile mockup starts with Contacts → FAQ → Delivery → Offer → Policy. */
  body.wb-contacts-page .wb-info-tabs .wb-info-tab:nth-child(5) { order: 1; }
  body.wb-contacts-page .wb-info-tabs .wb-info-tab:nth-child(4) { order: 2; }
  body.wb-contacts-page .wb-info-tabs .wb-info-tab:nth-child(3) { order: 3; }
  body.wb-contacts-page .wb-info-tabs .wb-info-tab:nth-child(2) { order: 4; }
  body.wb-contacts-page .wb-info-tabs .wb-info-tab:nth-child(1) { order: 5; }
  body.wb-contacts-page .wb-info-card-shell--contacts .wb-info-tab {
    min-height: 40px;
    padding-inline: 14px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 500;
    line-height: 18px;
    letter-spacing: 0;
    white-space: nowrap;
  }
  body.wb-contacts-page .wb-contacts-layout,
  body.wb-contacts-page .wb-contacts-layout .wb-info-sidebar {
    width: 100%;
    min-width: 0;
  }
  body.wb-contacts-page .wb-contacts-layout .wb-info-side-link {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 56px;
    margin-bottom: 16px;
    padding: 12px 42px 12px 16px;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 500;
    line-height: 23.68px;
    overflow-wrap: anywhere;
  }
  body.wb-contacts-page .wb-contacts-layout .wb-info-side-link::after {
    right: 16px;
  }
  /* info-pages.js already places the contacts article after the active sidebar link. */
  body.wb-contacts-page .wb-contacts-layout .wb-info-sidebar > .wb-contacts-card {
    margin-top: -8px;
    margin-bottom: 18px;
  }
  body.wb-contacts-page .wb-contacts-card {
    width: 100%;
    min-width: 0;
    padding: 14px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 400;
    line-height: 22px;
  }
  /* On mobile the section is introduced by the 'Наши данные' control above it. */
  body.wb-contacts-page .wb-contacts-card > h2 { display: none; }
  body.wb-contacts-page .wb-contacts-card h3,
  body.wb-contacts-page .wb-contacts-requisites__title {
    font-size: 18px;
    font-weight: 500;
    line-height: 26.64px;
  }
  body.wb-contacts-page .wb-contacts-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    margin: 0 0 18px;
    padding: 14px;
    border-radius: 14px;
  }
  body.wb-contacts-page .wb-contacts-summary__main { gap: 4px; }
  body.wb-contacts-page .wb-contacts-summary__main span:not(:first-child) { margin-top: 10px; }
  body.wb-contacts-page .wb-contacts-summary span {
    font-size: 12px;
    font-weight: 400;
    line-height: 17.76px;
  }
  body.wb-contacts-page .wb-contacts-summary a,
  body.wb-contacts-page .wb-contacts-summary strong {
    font-size: 18px;
    font-weight: 500;
    line-height: 26.64px;
    overflow-wrap: anywhere;
  }
  body.wb-contacts-page .wb-contacts-summary__hours {
    min-width: 0;
    padding: 14px;
    border-radius: 16px;
  }
  /* Works with or without the earlier hours-rule hotfix; never draws a double rule. */
  body.wb-contacts-page .wb-contacts-summary__hours p {
    position: relative;
    margin: 14px 0 0;
    border: 0;
    border-left: 1px solid #f397c1;
    padding: 0 0 0 12px;
    background: transparent;
    color: #535353;
    font-size: 14px;
    font-weight: 400;
    line-height: 22px;
  }
  body.wb-contacts-page .wb-contacts-summary__hours p::before { display: none; }
  body.wb-contacts-page .wb-contacts-map {
    height: 396px;
    max-height: none;
    margin-bottom: 18px;
    border-radius: 16px;
  }
  body.wb-contacts-page .wb-contacts-requisites + .wb-contacts-requisites { margin-top: 18px; }
  body.wb-contacts-page .wb-contacts-requisites__title {
    padding-right: 30px;
    padding-bottom: 12px;
  }
  body.wb-contacts-page .wb-contacts-requisites dt,
  body.wb-contacts-page .wb-contacts-requisites dd {
    font-size: 14px;
    font-weight: 400;
    line-height: 22px;
    overflow-wrap: anywhere;
  }
  body.wb-contacts-page .wb-contacts-requisites dt { margin-bottom: 0; }
  body.wb-contacts-page .wb-contacts-requisites dd { margin-bottom: 18px; }
  /* Subscription component is shared: adjust only its instance on Contacts. */
  body.wb-contacts-page .wb-subscribe--info .wb-subscribe__panel {
    border-radius: 14px !important;
    padding: 32px 14px;
  }
  body.wb-contacts-page .wb-subscribe--info .wb-subscribe__title {
    font-size: 22px;
    font-weight: 400;
    line-height: 26px;
  }
  body.wb-contacts-page .wb-subscribe--info .wb-subscribe__text {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
  }
}
