/* QNA-001 and T06: shared article blocks rendered by articles.detail_new. */
body.mama-ui2-shell .article-related-faq { box-sizing: border-box; width: 100%; min-width: 0; margin: 32px 0 !important; font-family: var(--mama-font-sans); }
body.mama-ui2-shell .article-related-faq .faq_question_layer { box-sizing: border-box; width: 100%; min-width: 0; margin: 0 0 16px; padding: clamp(18px, 2.5vw, 28px); border: 1px solid var(--mama-color-border); border-radius: var(--mama-radius-lg); background: var(--mama-color-surface); box-shadow: none; }
body.mama-ui2-shell .article-related-faq .faq_question { position: static; box-sizing: border-box; width: 100%; min-width: 0; margin: 0; padding: 0; border: 0; background: transparent; }
body.mama-ui2-shell .article-related-faq :is(.faq_question, .faq_answer)::before,
body.mama-ui2-shell .article-related-faq .faq_answer::after { content: none; }
body.mama-ui2-shell .article-related-faq .faq_question h2 { margin: 0 0 12px; color: var(--mama-color-heading); font: 600 clamp(19px, 2vw, 22px)/1.3 var(--mama-font-sans); overflow-wrap: anywhere; }
body.mama-ui2-shell .article-related-faq .faq_question :where(div, p) { max-width: 100%; color: var(--mama-color-text); font: 400 15px/1.6 var(--mama-font-sans); overflow-wrap: anywhere; }
body.mama-ui2-shell .article-related-faq .faq_question p { margin: 0 0 12px; }
body.mama-ui2-shell .article-related-faq .faq_answer { position: static; box-sizing: border-box; width: 100%; min-width: 0; min-height: 0; margin: 16px 0 0; padding: 16px 0 0; border: 0; border-top: 1px solid var(--mama-color-border-subtle); border-radius: 0; background: transparent; color: var(--mama-color-text); font: 400 15px/1.6 var(--mama-font-sans); }
body.mama-ui2-shell .article-related-faq .faq_answer > .cleared { display: block; min-width: 0; }
body.mama-ui2-shell .article-related-faq .faq_answer h5 { float: none; width: auto; margin: 0 0 10px; padding: 0; color: var(--mama-color-heading); font: 600 16px/1.4 var(--mama-font-sans); }
body.mama-ui2-shell .article-related-faq .faq_answer_text { float: none; width: 100%; min-width: 0; margin: 0; padding: 0; color: var(--mama-color-text); overflow-wrap: anywhere; }
body.mama-ui2-shell .article-related-faq .faq_answer_text :where(img, iframe, video, table) { max-width: 100%; }
body.mama-ui2-shell .article-related-faq .faq_doctor_signature { margin: 0 0 16px !important; color: var(--mama-color-text-muted); }

/* The existing include remains editable in Bitrix; only its presentation changes. */
body.mama-ui2-shell .mama-article-action { box-sizing: border-box; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px 24px; width: 100%; max-width: 100%; min-height: 96px; margin: 24px 0; padding: clamp(20px, 3vw, 28px); border: 1px solid var(--mama-color-border) !important; border-radius: var(--mama-radius-lg); background: var(--mama-color-selected-surface) !important; color: var(--mama-color-heading) !important; box-shadow: none !important; font: 500 17px/1.5 var(--mama-font-sans); }
body.mama-ui2-shell .mama-article-action br { display: none; }
body.mama-ui2-shell .mama-article-action .b-button { display: inline-flex; align-items: center; justify-content: center; flex: none; box-sizing: border-box; min-height: 44px; margin: 0; padding: 10px 18px; border: 0 !important; border-radius: var(--mama-radius-sm); background: var(--mama-color-action) !important; color: var(--mama-color-action-text) !important; box-shadow: none !important; text-decoration: none; text-shadow: none; font: 600 15px/1.35 var(--mama-font-sans); }
body.mama-ui2-shell .mama-article-action .b-button .b-button__content { padding: 0; border: 0; background: transparent !important; color: inherit !important; font: inherit; }
body.mama-ui2-shell .mama-article-action .b-button:focus-visible { outline: 3px solid var(--mama-color-focus); outline-offset: 3px; }
body.mama-ui2-shell .mama-article-action .ask_quesction_link { display: inline-flex; align-items: center; justify-content: center; flex: none; box-sizing: border-box; min-height: 44px; margin: 0; padding: 10px 18px; border: 0; border-radius: var(--mama-radius-sm); background: var(--mama-color-action); color: var(--mama-color-action-text); text-decoration: none; font: 600 15px/1.35 var(--mama-font-sans); }
body.mama-ui2-shell .mama-article-action .ask_quesction_link .i-link__decoration { display: flex; align-items: center; justify-content: center; padding: 0; border: 0; background: none; color: inherit; }
body.mama-ui2-shell .mama-article-action .ask_quesction_link .ask_question { display: flex; align-items: center; justify-content: center; width: auto; height: auto; min-height: 44px; margin: -10px -18px; padding: 10px 18px; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
body.mama-ui2-shell .mama-article-action .ask_quesction_link .ask_question::before,
body.mama-ui2-shell .mama-article-action .ask_quesction_link .ask_question::after { content: none; }
body.mama-ui2-shell .mama-article-action .ask_quesction_link:focus-visible { outline: 3px solid var(--mama-color-focus); outline-offset: 3px; }

@media (max-width: 767px) {
  body.mama-ui2-shell .mama-article-action { display: block; }
  body.mama-ui2-shell .mama-article-action .b-button { display: flex; width: 100%; margin-top: 18px; }
  body.mama-ui2-shell .mama-article-action .ask_quesction_link { display: flex; width: 100%; margin-top: 18px; }
}

/* Врезки через inc_area сохраняют цену и примечание в единой рамке. */
body.mama-ui2-shell .green-border.mama-article-action .green-border__old-price { text-decoration: line-through; color: var(--mama-color-text-muted); }
body.mama-ui2-shell .green-border.mama-article-action .green-border__note { font-size: 14px; line-height: 1.5; }
