/* AMDV site fixes 2026-11-08: мобильное меню и поиск в шапке, карточки «Контакты», один заголовок на страницах
   с баннером, компактный баннер корзины и оформления на телефоне. Подключается последним (includes/site-contacts.php). */

/* ---------- Кнопки «Поиск» и «Меню» в шапке: только там, где меню и поиск шапки скрыты (≤1240 px) ---------- */
.amdv-shop-header .amdv-mnav-btn {
  display: none;
}

.amdv-shop-header {
  overflow: visible;
}

.amdv-mnav[hidden] {
  display: none !important;
}

@media (max-width: 1240px) {
  .amdv-shop-header .amdv-shop-actions {
    align-items: center;
  }

  .amdv-shop-header .amdv-mnav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    border: 1px solid #dbe3ef;
    border-radius: 12px;
    background: #ffffff;
    color: #0f172a;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .amdv-shop-header .amdv-mnav-btn svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
  }

  .amdv-shop-header .amdv-mnav-btn[aria-expanded="true"] {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
  }

  .amdv-mnav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 10050;
    display: grid;
    gap: 14px;
    max-height: calc(100vh - 90px);
    overflow-y: auto;
    padding: 16px 16px 20px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 24px 48px rgba(15, 23, 42, .18);
  }

  .amdv-mnav-search {
    display: flex;
    gap: 8px;
    margin: 0;
  }

  .amdv-mnav-search input[type="search"] {
    flex: 1 1 auto;
    min-width: 0;
    height: 48px;
    margin: 0;
    padding: 0 14px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #f8fafc;
    color: #0f172a;
    font-size: 16px; /* 16 px — без автоувеличения на iPhone */
  }

  .amdv-mnav-search input[type="search"]:focus {
    border-color: #2563eb;
    outline: none;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
  }

  .amdv-mnav-search button {
    flex: 0 0 auto;
    height: 48px;
    padding: 0 18px;
    border: 0;
    border-radius: 12px;
    background: #2563eb;
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
  }

  .amdv-mnav-links {
    display: grid;
    gap: 2px;
  }

  .amdv-mnav-links a {
    display: block;
    padding: 12px 6px;
    border-bottom: 1px solid #eef2f7;
    color: #0f172a;
    font-size: 16px;
    font-weight: 800;
    text-decoration: none;
  }

  .amdv-mnav-links a:hover,
  .amdv-mnav-links a:focus-visible {
    color: #2563eb;
  }

  .amdv-mnav-contacts {
    display: grid;
    gap: 6px;
    padding: 4px 6px 0;
  }

  .amdv-mnav-contacts a {
    color: #1d4ed8;
    font-size: 16px;
    font-weight: 800;
    text-decoration: none;
  }

  .amdv-mnav-contacts span {
    color: #64748b;
    font-size: 14px;
  }

  /* Кнопка «Поиск» открывает только строку поиска */
  .amdv-mnav[data-mode="search"] .amdv-mnav-links,
  .amdv-mnav[data-mode="search"] .amdv-mnav-contacts {
    display: none;
  }
}

@media (min-width: 1241px) {
  .amdv-mnav {
    display: none !important;
  }
}

/* На телефоне «Избранное» переезжает в меню, чтобы шапка помещалась */
@media (max-width: 720px) {
  .amdv-shop-header .amdv-shop-actions {
    gap: 8px !important;
  }

  .amdv-shop-header .amdv-shop-action[href*="amdv_favorites"] {
    display: none !important;
  }

  .amdv-shop-header .amdv-mnav-btn {
    width: 38px;
    height: 38px;
  }
}

/* На главной под шапкой уже есть строка поиска — кнопка «Поиск» там лишняя */
@media (max-width: 760px) {
  body.home .amdv-shop-header .amdv-mnav-btn--search {
    display: none;
  }
}

/* Логотип не прижимается к значкам справа */
@media (max-width: 420px) {
  body.amdv-custom-header-active .amdv-shop-header .amdv-shop-logo.amdv-shop-logo--image {
    width: 165px !important;
    min-width: 0 !important;
    max-width: 165px !important;
  }

  body.amdv-custom-header-active .amdv-shop-header .amdv-shop-logo.amdv-shop-logo--image .amdv-shop-logo-img {
    width: 100% !important;
    max-width: 165px !important;
    height: auto !important;
  }
}

/* ---------- Страницы с собственным баннером: без второго заголовка темы ---------- */
body.amdv-has-content-hero .hero-section {
  display: none !important;
}

/* ---------- «Контакты»: карточки ---------- */
.amdv-contacts-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: 0 0 28px;
}

.amdv-contact-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  box-shadow: 0 18px 52px rgba(15, 23, 42, .06);
}

.amdv-contact-card .amdv-contact-label {
  color: #2563eb;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.amdv-contact-card .amdv-contact-value {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #0f172a;
  font-size: 19px;
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.amdv-contact-card .amdv-contact-value a {
  color: inherit;
  text-decoration: none;
}

.amdv-contact-card .amdv-contact-value a:hover {
  color: #2563eb;
}

.amdv-contact-card p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.55;
}

.amdv-contact-card p a {
  color: #2563eb;
  font-weight: 800;
}

@media (max-width: 1100px) {
  .amdv-contacts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .amdv-contacts-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .amdv-contact-card {
    padding: 20px;
  }
}

/* Информационные страницы на телефоне: баннер компактнее */
@media (max-width: 640px) {
  .amdv-content-page {
    padding: 18px 14px 56px !important;
  }

  .amdv-content-hero {
    padding: 24px 20px !important;
    border-radius: 22px !important;
  }

  .amdv-content-hero h1 {
    font-size: 36px !important;
  }

  .amdv-content-hero p {
    font-size: 15px !important;
    line-height: 1.6 !important;
  }
}

/* ---------- Корзина и оформление на телефоне: баннер не занимает весь экран ---------- */
@media (max-width: 760px) {
  body.woocommerce-cart .amdv-b2b-flow-hero,
  body.woocommerce-checkout .amdv-b2b-flow-hero {
    gap: 14px !important;
    margin: 14px 0 18px !important;
    padding: 20px !important;
    border-radius: 22px !important;
  }

  body.woocommerce-cart .amdv-b2b-flow-hero .amdv-eyebrow,
  body.woocommerce-checkout .amdv-b2b-flow-hero .amdv-eyebrow {
    margin: 0 0 6px !important;
    font-size: 12px !important;
  }

  body.woocommerce-cart .amdv-b2b-flow-hero h1,
  body.woocommerce-checkout .amdv-b2b-flow-hero h1 {
    margin: 0 0 8px !important;
    font-size: 30px !important;
    line-height: 1.08 !important;
    letter-spacing: -0.035em !important;
  }

  body.woocommerce-cart .amdv-b2b-flow-hero p,
  body.woocommerce-checkout .amdv-b2b-flow-hero p {
    font-size: 14px !important;
    line-height: 1.5 !important;
  }

  body.woocommerce-cart .amdv-b2b-flow-steps,
  body.woocommerce-checkout .amdv-b2b-flow-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }

  body.woocommerce-cart .amdv-b2b-flow-steps div,
  body.woocommerce-checkout .amdv-b2b-flow-steps div {
    grid-template-columns: 1fr !important;
    justify-items: center;
    gap: 4px !important;
    padding: 8px 4px !important;
    border-radius: 12px !important;
    text-align: center;
  }

  body.woocommerce-cart .amdv-b2b-flow-steps span,
  body.woocommerce-checkout .amdv-b2b-flow-steps span {
    width: 26px !important;
    height: 26px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
  }

  body.woocommerce-cart .amdv-b2b-flow-steps strong,
  body.woocommerce-checkout .amdv-b2b-flow-steps strong {
    max-width: 100%;
    font-size: 11px !important;
    line-height: 1.2 !important;
    letter-spacing: -0.01em !important;
    overflow-wrap: normal !important;
    -webkit-hyphens: auto;
    hyphens: auto;
  }
}

/* ---------- Карточка товара без описания: «Параметры товара» на всю ширину, в две-три колонки ---------- */
.amdv-single-product-details.amdv-single-product-details--no-desc,
body.amdv-product-in-catalog .amdv-single-product-details.amdv-single-product-details--no-desc {
  grid-template-columns: minmax(0, 1fr) !important;
}

.amdv-single-product-details--no-desc .amdv-single-product-params dl {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  column-gap: 28px;
}

/* ---------- Страница «О компании» ---------- */
.amdv-about-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}

.amdv-about-page p:empty {
  display: none;
}

.amdv-about-page ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.amdv-about-page li {
  margin: 0;
}

.amdv-about-page .amdv-content-hero {
  margin-bottom: 0;
}

.amdv-about-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 36px;
  padding: 18px 18px 18px 46px;
}

.amdv-about-hero-text {
  align-self: center;
  padding: 26px 0;
}

.amdv-about-hero .amdv-about-lead {
  margin-bottom: 10px;
  color: #ffffff;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.4;
}

.amdv-about-hero-photo {
  position: relative;
  min-height: 420px;
  margin: 0;
  overflow: hidden;
  background: #1e3a8a;
  border-radius: 20px;
}

.amdv-about-hero-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 45% 50%;
}

.amdv-about-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.amdv-about-stats li {
  padding: 24px 26px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  box-shadow: 0 18px 52px rgba(15, 23, 42, .06);
}

.amdv-about-stats strong {
  display: block;
  color: #1d4ed8;
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.amdv-about-stats span {
  display: block;
  margin-top: 8px;
  color: #475569;
  font-size: 15px;
  line-height: 1.4;
}

.amdv-about-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}

.amdv-about-intro .amdv-info-card p + p {
  margin-top: 14px;
}

.amdv-about-principle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px;
  color: #ffffff;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 70%, #2563eb 100%);
  border-radius: 22px;
}

.amdv-about-principle h2 {
  margin: 0 0 14px;
  color: #bfdbfe;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.amdv-about-principle p {
  margin: 0;
  color: #ffffff;
  font-size: clamp(22px, 2.3vw, 30px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.amdv-about-section > h2 {
  margin: 8px 0 18px;
  color: #0f172a;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.amdv-about-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.amdv-about-features li {
  padding: 24px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 22px;
}

.amdv-about-features li::before {
  content: "";
  display: block;
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  background: #eff6ff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 22px no-repeat;
  border-radius: 12px;
}

.amdv-about-features h3 {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 18px;
  line-height: 1.3;
}

.amdv-about-features p {
  margin: 0;
  color: #475569;
  font-size: 15px;
  line-height: 1.55;
}

.amdv-about-cats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.amdv-about-cats a {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0f172a;
  border-radius: 20px;
  text-decoration: none !important;
}

.amdv-about-cats img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s ease;
}

.amdv-about-cats a:hover img {
  transform: scale(1.04);
}

.amdv-about-cats span {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 44px 20px 16px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, .86) 100%);
}

.amdv-about-brands {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.amdv-about-brands li {
  padding: 10px 18px;
  color: #1e3a8a;
  font-size: 15px;
  font-weight: 800;
  background: #ffffff;
  border: 1px solid #dbeafe;
  border-radius: 999px;
}

@media (max-width: 1000px) {
  .amdv-about-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .amdv-about-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .amdv-about-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding: 30px;
  }

  .amdv-about-hero-text {
    padding: 0;
  }

  .amdv-about-hero-photo {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .amdv-about-intro {
    grid-template-columns: minmax(0, 1fr);
  }

  .amdv-about-cats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .amdv-about-page {
    gap: 20px;
  }

  .amdv-about-hero .amdv-about-lead {
    font-size: 18px !important;
  }

  .amdv-about-hero-photo {
    border-radius: 16px;
  }

  .amdv-about-stats {
    gap: 10px;
  }

  .amdv-about-stats li {
    padding: 16px;
    border-radius: 18px;
  }

  .amdv-about-stats strong {
    font-size: 26px;
  }

  .amdv-about-stats span {
    font-size: 13px;
  }

  .amdv-about-intro .amdv-info-card h2 {
    font-size: 22px;
    line-height: 1.2;
  }

  .amdv-about-features {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .amdv-about-features li {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    column-gap: 12px;
    padding: 16px;
    border-radius: 18px;
  }

  .amdv-about-features li::before {
    grid-row: 1 / span 2;
    width: 34px;
    height: 34px;
    margin-bottom: 0;
    background-size: 18px;
    border-radius: 10px;
  }

  .amdv-about-features h3 {
    margin-bottom: 4px;
    font-size: 16px;
  }

  .amdv-about-features p {
    font-size: 14px;
    line-height: 1.5;
  }

  .amdv-about-cats {
    gap: 10px;
  }

  .amdv-about-cats a {
    aspect-ratio: 4 / 3;
    border-radius: 16px;
  }

  .amdv-about-cats span {
    padding: 34px 12px 12px;
    font-size: 14px;
  }
}

/* Подзаголовки внутри новостей и статей: меньше заголовка страницы */
.single-post .entry-content h2 {
  margin: 36px 0 12px;
  font-size: 23px;
  line-height: 1.35;
}

@media (max-width: 640px) {
  .single-post .entry-content h2 {
    margin-top: 28px;
    font-size: 20px;
  }
}

/* ==========================================================
   SEARCH SECTIONS V3 (2026-11-15): разделы в результатах поиска —
   кнопки над списком; у разделов галочка, можно отметить несколько.
   ========================================================== */

body.page-id-35 .amdv-search-sections {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 2px 0 14px;
}

body.page-id-35 .amdv-search-section {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid #dfe7f2;
    border-radius: 999px;
    background: #fff;
    color: #24324a;
    font: inherit;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.2;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    transition: border-color .15s ease, color .15s ease, background .15s ease;
}

body.page-id-35 .amdv-search-section:hover {
    border-color: #b9cff5;
    color: #1765e8;
}

body.page-id-35 .amdv-search-section.is-active {
    border-color: #2872fa;
    background: #2872fa;
    color: #fff;
}

body.page-id-35 .amdv-search-section.is-active:hover {
    border-color: #1d64e6;
    background: #1d64e6;
    color: #fff;
}

/* Галочка: пустой квадрат — раздел не отмечен (при наведении проступает галочка), белый с синей галочкой — отмечен. */
body.page-id-35 .amdv-search-section-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 15px;
    height: 15px;
    box-sizing: border-box;
    border: 1.5px solid #b4c3d8;
    border-radius: 4px;
    background: #fff;
    transition: border-color .15s ease;
}

body.page-id-35 .amdv-search-section-check svg {
    width: 13px;
    height: 13px;
    fill: none;
    stroke: #2872fa;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0;
    transition: opacity .15s ease;
}

body.page-id-35 .amdv-search-section:hover .amdv-search-section-check {
    border-color: #2872fa;
}

body.page-id-35 .amdv-search-section:not(.is-active):hover .amdv-search-section-check svg {
    opacity: .35;
}

body.page-id-35 .amdv-search-section.is-active .amdv-search-section-check {
    border-color: #fff;
}

body.page-id-35 .amdv-search-section.is-active .amdv-search-section-check svg {
    opacity: 1;
}

body.page-id-35 .amdv-search-section-count {
    padding: 1px 7px;
    border-radius: 999px;
    background: #f1f5fb;
    color: #6a7a8f;
    font-size: 11px;
    font-weight: 750;
}

body.page-id-35 .amdv-search-section.is-active .amdv-search-section-count {
    background: rgba(255, 255, 255, .22);
    color: #fff;
}

body.page-id-35 .amdv-search-section-more {
    border-style: dashed;
    color: #1765e8;
}

body.page-id-35 .amdv-search-sections:not(.is-expanded) .amdv-search-section.is-extra {
    display: none;
}

body.page-id-35 .amdv-search-section:focus-visible {
    outline: 3px solid rgba(43, 111, 238, .2);
    outline-offset: 1px;
}

/* До 900 px каталог слева и фильтры уходят над товарами (style.css задаёт order): ряд кнопок — сразу под
   «Найдено…» (order 5, как у неё), во всю ширину и листается вбок. */
@media (max-width: 900px) {
    body.page-id-35 .amdv-search-sections {
        order: 5 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box;
        flex-wrap: nowrap;
        overflow-x: auto;
        margin: 0 0 6px;
        padding: 0 0 4px;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    body.page-id-35 .amdv-search-sections::-webkit-scrollbar {
        display: none;
    }

    body.page-id-35 .amdv-search-section {
        flex: 0 0 auto;
        scroll-snap-align: start;
    }

    body.page-id-35 .amdv-search-sections .amdv-search-section.is-extra {
        display: inline-flex;
    }

    body.page-id-35 .amdv-search-section-more {
        display: none;
    }
}

/* AMDV HOME ARTICLE TITLE 3 LINES (2026-11-15): на компьютере (от 1121 px) карточки «Статей» на главной фиксированной высоты,
   и под заголовок было место на две строки — третья строка («…о которых знают не все») наезжала на «Читать статью». Отступы
   в теле карточки меньше (сверху 14 → 10, снизу 20 → 12, до кнопки 12 → 6): три строки помещаются, длиннее — многоточие, как было. */
@media (min-width: 1121px) {
  body.home #amdv-home-v7 .amdv-home-articles-grid .amdv-home-article-body,
  body.page-id-34 #amdv-home-v7 .amdv-home-articles-grid .amdv-home-article-body {
    padding-top: 10px !important;
    padding-bottom: 12px !important;
    row-gap: 6px !important;
  }
}

/* AMDV MY ACCOUNT MENU (2026-11-15): значки пунктов «Избранное» и «Корзина» в меню «Мой аккаунт» — те же сердечко и корзина,
   что в шапке; рисуются маской цветом текста пункта (как значки темы: меняются при наведении и у активного пункта). */
.woocommerce-MyAccount-navigation ul .woocommerce-MyAccount-navigation-link--amdv-favorites a:before,
.woocommerce-MyAccount-navigation ul .woocommerce-MyAccount-navigation-link--amdv-cart a:before {
    content: "";
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    background-color: currentColor;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: 18px 18px;
    mask-size: 18px 18px;
}

.woocommerce-MyAccount-navigation ul .woocommerce-MyAccount-navigation-link--amdv-favorites a:before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 21s-7.5-4.35-10-9.2C-.18 7.55 2.4 3 6.7 3c2.1 0 4.04 1.13 5.3 2.9C13.26 4.13 15.2 3 17.3 3c4.3 0 6.88 4.55 4.7 8.8C19.5 16.65 12 21 12 21Zm0-2.35c2.55-1.6 6.68-4.7 8.22-7.78C21.7 7.98 20.07 5 17.3 5c-1.9 0-3.6 1.2-4.45 3.05h-1.7C10.3 6.2 8.6 5 6.7 5 3.93 5 2.3 7.98 3.78 10.87 5.32 13.95 9.45 17.05 12 18.65Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 21s-7.5-4.35-10-9.2C-.18 7.55 2.4 3 6.7 3c2.1 0 4.04 1.13 5.3 2.9C13.26 4.13 15.2 3 17.3 3c4.3 0 6.88 4.55 4.7 8.8C19.5 16.65 12 21 12 21Zm0-2.35c2.55-1.6 6.68-4.7 8.22-7.78C21.7 7.98 20.07 5 17.3 5c-1.9 0-3.6 1.2-4.45 3.05h-1.7C10.3 6.2 8.6 5 6.7 5 3.93 5 2.3 7.98 3.78 10.87 5.32 13.95 9.45 17.05 12 18.65Z'/%3E%3C/svg%3E");
}

.woocommerce-MyAccount-navigation ul .woocommerce-MyAccount-navigation-link--amdv-cart a:before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 18a2 2 0 1 0 0 4 2 2 0 0 0 0-4Zm10 0a2 2 0 1 0 0 4 2 2 0 0 0 0-4ZM6.2 6l1.7 8h8.4c.7 0 1.3-.4 1.6-1l2.1-4.5c.3-.7-.2-1.5-.9-1.5H7.1L6.6 4H3V2h5.2l.7 4h11.2c2.2 0 3.6 2.3 2.7 4.3l-2.1 4.5c-.7 1.3-2 2.2-3.5 2.2H8c-1 0-1.9-.7-2.1-1.7L4.2 8H3V6h3.2Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 18a2 2 0 1 0 0 4 2 2 0 0 0 0-4Zm10 0a2 2 0 1 0 0 4 2 2 0 0 0 0-4ZM6.2 6l1.7 8h8.4c.7 0 1.3-.4 1.6-1l2.1-4.5c.3-.7-.2-1.5-.9-1.5H7.1L6.6 4H3V2h5.2l.7 4h11.2c2.2 0 3.6 2.3 2.7 4.3l-2.1 4.5c-.7 1.3-2 2.2-3.5 2.2H8c-1 0-1.9-.7-2.1-1.7L4.2 8H3V6h3.2Z'/%3E%3C/svg%3E");
}

/* AMDV ACCOUNT PROFILE (2026-11-16): «Профиль» — первая страница «Мой аккаунт» (templates/myaccount/dashboard.php): сверху
   название компании и «Клиент с …», ниже карточки «Контакты», «Платёжная информация», «Заказы», «Адрес доставки» — две в ряд,
   на телефоне (до 690 px) одна под другой. Цвета — палитра темы (синий ссылок, рамки, заголовки). */
.amdv-profile {
    display: grid;
    gap: 20px;
}

.amdv-profile-head {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: #fff;
    border: 1px solid var(--theme-palette-color-5, #e1e8ed);
    border-radius: 12px;
}

.amdv-profile-avatar {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--theme-palette-color-1, #2872fa);
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
}

.amdv-profile-avatar svg {
    width: 26px;
    height: 26px;
}

.amdv-profile-head-text {
    min-width: 0;
}

.amdv-profile .amdv-profile-name {
    margin: 0;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--theme-headings-color, #192a3d);
    overflow-wrap: anywhere;
}

.amdv-profile .amdv-profile-since {
    margin: 4px 0 0;
    font-size: 14px;
    line-height: 1.4;
    color: #6b7c93;
}

.amdv-profile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.amdv-profile-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 20px 22px 22px;
    background: #fff;
    border: 1px solid var(--theme-palette-color-5, #e1e8ed);
    border-radius: 12px;
}

.amdv-profile-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.amdv-profile .amdv-profile-card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--theme-headings-color, #192a3d);
}

.amdv-profile .amdv-profile-card-title svg {
    flex: 0 0 22px;
    color: var(--theme-palette-color-1, #2872fa);
}

.amdv-profile .amdv-profile-card-link {
    flex: 0 0 auto;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    color: var(--theme-palette-color-1, #2872fa);
    text-decoration: none;
}

.amdv-profile .amdv-profile-card-link:hover {
    color: var(--theme-palette-color-2, #1559ed);
    text-decoration: underline;
}

.amdv-profile .amdv-profile-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
}

.amdv-profile .amdv-profile-list dt {
    margin: 0 0 2px;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
    color: #6b7c93;
}

.amdv-profile .amdv-profile-list dd {
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.45;
    color: var(--theme-headings-color, #192a3d);
    overflow-wrap: anywhere;
}

.amdv-profile .amdv-profile-list dd a {
    color: var(--theme-palette-color-1, #2872fa);
    text-decoration: none;
}

.amdv-profile .amdv-profile-list dd a:hover {
    text-decoration: underline;
}

.amdv-profile .amdv-profile-none {
    font-weight: 400;
    color: #94a3b8;
}

.amdv-profile .amdv-profile-warn {
    display: block;
    margin-top: 2px;
    font-size: 13px;
    font-weight: 400;
    color: #b45309;
}

.amdv-profile .amdv-profile-note {
    margin: auto 0 0;
    padding: 10px 12px;
    border-radius: 8px;
    background: #fff7ed;
    font-size: 14px;
    line-height: 1.4;
    color: #9a3412;
}

.amdv-profile .amdv-profile-status {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    background: #eef2f7;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.6;
    color: var(--theme-headings-color, #192a3d);
}

.amdv-profile .amdv-profile-sum .woocommerce-Price-amount {
    white-space: nowrap;
}

.amdv-profile .amdv-profile-empty {
    margin: 0;
    font-size: 15px;
    line-height: 1.45;
    color: #6b7c93;
}

.amdv-profile .amdv-profile-button {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    padding: 9px 16px;
    border-radius: 8px;
    background: var(--theme-palette-color-1, #2872fa);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    color: #fff;
    text-decoration: none;
}

.amdv-profile .amdv-profile-button:hover {
    background: var(--theme-palette-color-2, #1559ed);
    color: #fff;
}

.amdv-profile .amdv-profile-address {
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.55;
    color: var(--theme-headings-color, #192a3d);
    overflow-wrap: anywhere;
}

@media (max-width: 689.98px) {
    .amdv-profile,
    .amdv-profile-grid {
        gap: 14px;
    }

    .amdv-profile-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .amdv-profile-head {
        gap: 14px;
        padding: 16px;
    }

    .amdv-profile-avatar {
        flex-basis: 46px;
        width: 46px;
        height: 46px;
        font-size: 20px;
    }

    .amdv-profile .amdv-profile-name {
        font-size: 19px;
    }

    .amdv-profile-card {
        gap: 14px;
        padding: 16px 16px 18px;
    }
}
