/* iMedix Medical - Drugs/Diseases shared styles */
/*-------------------------
	Him
--------------------------*/
.comments-list .comment__item.him-user .comment__author,
.comments-list .comment__item.him-user .comment__reply:hover,
.post-item.him-user .author__avatar,
.post-item.him-user .post__title a:hover,
.post-item.him-user .btn__link.btn__primary:hover,
.member-item.him-user .member__name,
.widget.users-widget .him-user.community-card .member__name,
.widget-article.him-user .article__author,
.widget-article.him-user .article__title a:hover,
.widget-article.him-user .article__cat a:hover,
.widget-article.him-user .vote-btn.active,
.answers-area .widget-article-reply.him-user .article__author,
.user-area.him-user .user-content>.user-inner h4>a:hover,
.him-user .custom-post-link:hover,
.him-user .post-author,
.him-user.article-post-only a.post-title:hover,
.commentlist .comment.him-user>.comment-body .custom-post-link:hover,
.commentlist li.comment.him-user>.comment-body .comment-text .comment-author a,
.comment.him-user>.comment-body .comment-question-title a:hover,
.him-user.article-question .post-title a:hover,
.him-user.article-question .question-content-text .custom-post-link:hover,
.him-user .content_group_item_header .title h3 a,
.him-user.article-post-only .post-meta a:hover,
.widget.users-widget .community-card.him-user .member__name a,
.article-post-only.him-user .post-meta .byline a,
.notifications-card .notifications__item.him-user .author__name,
.dark-skin .navbar .sub-menu.notifications-dropdown-menu .him-user .author__name,
.messages-card .message__item.him-user .author__name,
.sticky-content .answers-stats .him-user a,
.hero-layout .hero-banner .hero__meta-comments li.him-user a,
.react__area-layout2 .reactions__count.transparent-bg.him-user,
.question-footer .footer-meta>li.answer-meta-him,
.question-footer .footer-meta>li.answer-meta-him a,
.post-meta-comment-gender.post-meta-comment-him>a,
.widget-article .article-footer .footer-meta__comments li.him-user a,
.dark-skin .him-user .notification__body .author__name,
.header .him-user .notification__body .author__name {
    color: #2e6ffd;
}

.questions-card .question-item.him-user .question__title a:hover,
.questions-card .question-item.him-user .author__name a {
    color: #2e6ffd !important;
}

.member-item.him-user:before,
.widget.users-widget .him-user.community-card:before,
.widget-article.him-user:before,
.widget-article.him-user .article__link,
.answers-area.him-user .answers__header,
.answers-area.him-user:before,
.commentlist ul.children li.comment.him-user:before,
.him-user .single-inner-content:before,
#comments-male:before,
.header-primary .navbar,
.custom-switch .custom-control-label span:first-of-type,
.gender-sorting .btn.him-user,
.member-card.him-user .member__tag,
.react__area-layout2 .reactions__count.him-user,
.sticky-content .breadcrumb-navs.him-user:before {
    background-color: #2e6ffd;
}

.widget-article.him-user .btn__primary:before,
.article-question.him-user .all_single_post_content .btn__primary:before,
.him-user .btn__primary.meta-answer.meta-answer-a:before,
.him-user .post-read-more.btn:before {
    background-color: #2e6ffd !important;
}

.hero-layout .hero-banner .author__avatar.him-user a {
    border-color: #2e6ffd;
}

/*-------------------------
	Her
--------------------------*/
.comments-list .comment__item.her-user .comment__author,
.comments-list .comment__item.her-user .comment__reply:hover,
.post-item.her-user .author__avatar,
.post-item.her-user .post__title a:hover,
.post-item.her-user .btn__link.btn__primary:hover,
.member-item.her-user .member__name,
.widget.users-widget .her-user.community-card .member__name,
.widget-article.her-user .article__author,
.widget-article.her-user .article__title a:hover,
.widget-article.her-user .article__cat a:hover,
.widget-article.her-user .vote-btn.active,
.answers-area .widget-article-reply.her-user .article__author,
.questions-card .question-item__meta li.her-user a,
.widget-article .article-footer .footer-meta__comments li.her-user a,
.navbar .sub-menu.notifications-dropdown-menu .her-user .author__name,
.dark-skin .navbar .sub-menu.notifications-dropdown-menu .her-user .author__name,
.header .her-user .notification__body .author__name,
.her-user .notification__body .author__name,
.dark-skin .her-user .notification__body .author__name,
.user-area.her-user .user-content>.user-inner h4>a:hover,
.her-user .custom-post-link:hover,
.her-user .post-author,
.her-user.article-post-only a.post-title:hover,
.commentlist .comment.her-user>.comment-body .custom-post-link:hover,
.commentlist li.comment.her-user>.comment-body .comment-text .comment-author a,
.comment.her-user .comment-question-title a:hover,
.her-user.article-question .post-title a:hover,
.her-user.article-question .question-content-text .custom-post-link:hover,
.her-user .content_group_item_header .title h3 a,
.custom-switch .custom-control-input:checked~.custom-control-label span:last-of-type,
.her-user.article-post-only .post-meta a:hover,
.widget.users-widget .community-card.her-user .member__name a,
.article-post-only.her-user .post-meta .byline a,
.notifications-card .notifications__item.her-user .author__name,
.messages-card .message__item.her-user .author__name,
.sticky-content .answers-stats .her-user a,
.hero-layout .hero-banner .hero__meta-comments li.her-user a,
.react__area-layout2 .reactions__count.transparent-bg.her-user,
.question-footer .footer-meta>li.answer-meta-her,
.question-footer .footer-meta>li.answer-meta-her a,
.post-meta-comment-gender.post-meta-comment-her>a {
    color: #9BC2F9;
}

.questions-card .question-item.her-user .author__name,
.questions-card .question-item.her-user .author__name a,
.questions-card .question-item.her-user .question__title a:hover {
    color: #9BC2F9 !important;
}

.member-item.her-user:before,
.widget.users-widget .her-user.community-card:before,
.widget-article.her-user:before,
.widget-article.her-user .article__link,
.answers-area.her-user .answers__header,
.answers-area.her-user:before,
.custom-radio-container .custom-radio .custom-control-input:checked~label[for="female"]:after,
.custom-radio-container .custom-radio .custom-control-input:checked~.female_radio_label:after,
.commentlist ul.children li.comment.her-user:before,
.her-user .single-inner-content:before,
#comments-female:before,
.header-secondary .navbar,
.custom-switch .custom-control-input:checked~.custom-control-label:before,
.gender-sorting .btn.her-user,
.member-card.her-user .member__tag,
.react__area-layout2 .reactions__count.her-user,
.sticky-content .breadcrumb-navs.her-user:before {
    background-color: #9BC2F9;
}

.widget-article.her-user .btn__primary:before,
.article-question.her-user .all_single_post_content .btn__primary:before,
.her-user .btn__primary.meta-answer.meta-answer-a:before,
.her-user .post-read-more.btn:before {
    background-color: #9BC2F9 !important;
}

.hero-layout .hero-banner .author__avatar.her-user a {
    border-color: #9BC2F9;
}

/*
 * iMedix runtime styles migrated from functions.php inline output.
 * Purpose: keep CSS in stylesheet files (no inline <style> in templates/hooks).
 */

/* Shared inline SVG + static section behavior for Drugs/Diseases pages. */
body.single-drugs .imedix-drug-icon,
body.single-diseases .imedix-drug-icon {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: 0 0 18px;
    vertical-align: middle;
}

body.single-drugs .single_drug .drug_left_sidebar .drug_navigation li a,
body.single-diseases .single_drug .drug_left_sidebar .drug_navigation li a {
    display: inline-flex;
    align-items: center;
}

body.single-drugs .single_drug .drug_left_sidebar .drug_navigation li a .imedix-drug-icon,
body.single-drugs .single_drug .drug_content .section-label .imedix-drug-icon,
body.single-drugs .single_drug .drug_content .faq_section_title .imedix-drug-icon,
body.single-diseases .single_drug .drug_left_sidebar .drug_navigation li a .imedix-drug-icon,
body.single-diseases .single_drug .drug_content .section-label .imedix-drug-icon,
body.single-diseases .single_drug .drug_content .faq_section_title .imedix-drug-icon {
    margin-inline-end: 8px;
}

body.single-drugs .single_drug .drug_content .imedix-static-title,
body.single-diseases .single_drug .drug_content .imedix-static-title {
    pointer-events: none;
    cursor: default !important;
}

body.single-drugs .single_drug .drug_content .imedix-static-title:hover,
body.single-drugs .single_drug .drug_content .imedix-static-title:focus,
body.single-diseases .single_drug .drug_content .imedix-static-title:hover,
body.single-diseases .single_drug .drug_content .imedix-static-title:focus {
    color: inherit !important;
}

body.single-drugs .single_drug .drug_content .imedix-static-title::before,
body.single-drugs .single_drug .drug_content .imedix-static-title::after,
body.single-diseases .single_drug .drug_content .imedix-static-title::before,
body.single-diseases .single_drug .drug_content .imedix-static-title::after {
    display: none !important;
    content: none !important;
}

body.single-drugs .single_drug .drug_content .imedix-static-section>.accordion-content>.accordion-inner,
body.single-diseases .single_drug .drug_content .imedix-static-section>.accordion-content>.accordion-inner {
    display: block;
    height: auto;
}

body.single-drugs .single_drug .drug_content .imedix-static-section>.accordion-content>.accordion-inner.collapse,
body.single-diseases .single_drug .drug_content .imedix-static-section>.accordion-content>.accordion-inner.collapse {
    display: block !important;
}

body.single-drugs .single_drug .drug_content .drug_content_accordion>.imedix-static-section,
body.single-drugs .single_drug .drug_content .drug_content_accordion>.faq_section,
body.single-diseases .single_drug .drug_content .drug_content_accordion>.imedix-static-section,
body.single-diseases .single_drug .drug_content .drug_content_accordion>.faq_section {
    margin: 0 !important;
    padding: 0 !important;
}

body.single-drugs .single_drug .drug_content .drug_content_accordion>.imedix-static-section>.accordion-content,
body.single-drugs .single_drug .drug_content .drug_content_accordion>.faq_section>.accordion-content,
body.single-diseases .single_drug .drug_content .drug_content_accordion>.imedix-static-section>.accordion-content,
body.single-diseases .single_drug .drug_content .drug_content_accordion>.faq_section>.accordion-content {
    margin: 0 !important;
}

body.single-drugs .single_drug .drug_content #faqs .faq_section_head,
body.single-diseases .single_drug .drug_content #faqs .faq_section_head {
    border-bottom: 0 !important;
}

body.single-drugs .single_drug .drug_content #faqs .faq_section_head .faq_section_title,
body.single-diseases .single_drug .drug_content #faqs .faq_section_head .faq_section_title {
    display: inline-flex;
    align-items: center;
    margin: 0 !important;
}

body.single-drugs:not(.dark-skin) .single_drug .drug_content #faqs .faq_section_head .faq_section_title,
body.single-diseases:not(.dark-skin) .single_drug .drug_content #faqs .faq_section_head .faq_section_title {
    color: #1856dc !important;
}

body.single-drugs .single_drug .drug_content #faqs .faq-accordion>.accordion-item .accordion__title,
body.single-diseases .single_drug .drug_content #faqs .faq-accordion>.accordion-item .accordion__title {
    background-color: #fff !important;
}

body.single-drugs .single_drug .drug_content #faqs .faq-accordion>.accordion-item:not(:last-child),
body.single-diseases .single_drug .drug_content #faqs .faq-accordion>.accordion-item:not(:last-child) {
    margin-bottom: 16px;
}

body.single-drugs .single_drug .drug_content #faqs .faq-accordion>.accordion-item .accordion__body,
body.single-diseases .single_drug .drug_content #faqs .faq-accordion>.accordion-item .accordion__body {
    border: 0 !important;
    padding: 0 17px 17px !important;
}

body.single-drugs .single_drug .drug_content #faqs .faq-accordion>.accordion-item .accordion__body::before,
body.single-diseases .single_drug .drug_content #faqs .faq-accordion>.accordion-item .accordion__body::before {
    display: none !important;
}

body.single-drugs .single_drug .drug_content .drug_content_accordion>*+*,
body.single-diseases .single_drug .drug_content .drug_content_accordion>*+* {
    margin-top: 0 !important;
}

/* Advertising Disclosure block on single drug pages. */
body.single-drugs .single_drug .drug_content .imedix-advertising-disclosure {
    order: 7;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
    font-size: 0.88em;
    line-height: 1.55;
    color: #374151;
}

body.single-drugs .single_drug .drug_content .imedix-advertising-disclosure p {
    margin: 0;
}

body.single-drugs .single_drug .drug_content .imedix-advertising-disclosure strong {
    color: #1f2937;
    font-weight: 600;
}

body.single-drugs .single_drug .drug_content .imedix-advertising-disclosure a,
body.single-drugs .single_drug .drug_content .imedix-advertising-disclosure a:visited {
    color: #1e3a8a;
    text-decoration: underline;
    text-underline-offset: 2px;
}

@media (max-width: 767px) {
    body.single-drugs .single_drug .drug_content .imedix-advertising-disclosure {
        margin-top: 10px;
        padding-top: 10px;
        font-size: 0.86em;
    }
}

body.single-drugs .single_drug .drug_content .imedix-diseases-section-image,
body.single-diseases .single_drug .drug_content .imedix-diseases-section-image {
    margin: 0 0 18px;
}

body.single-drugs .single_drug .drug_content .imedix-diseases-section-image img,
body.single-diseases .single_drug .drug_content .imedix-diseases-section-image img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Hide section SVG icons in mobile/top nav (Drugs + Diseases). */
@media only screen and (max-width: 1201px) {

    body.single-drugs .single_drug .drug_left_sidebar .drug_navigation li a .imedix-drug-icon,
    body.single-diseases .single_drug .drug_left_sidebar .drug_navigation li a .imedix-drug-icon {
        display: none;
    }
}

/* Accessibility overrides (Drugs baseline + Diseases parity). */
body:is(.single-drugs, .single-diseases) {
    color: #3f4652;
}

body:is(.single-drugs, .single-diseases) .single_drug .drug_content .post-content-text,
body:is(.single-drugs, .single-diseases) .single_drug .drug_content .post-content-text p,
body:is(.single-drugs, .single-diseases) .single_drug .drug_content .post-content-text li,
body:is(.single-drugs, .single-diseases) .single_drug .drug_content .drug_product_detail_value,
body:is(.single-drugs, .single-diseases) .single_drug .drug_content .drug_product_description,
body:is(.single-drugs, .single-diseases) .single_drug .drug_content .drug_meta li,
body:is(.single-drugs, .single-diseases) .single_drug .drug_content .breadcrumbs_wrap .crumbs .current,
body:is(.single-drugs, .single-diseases) .single_drug .drug_content .comment-text .text p,
body:is(.single-drugs, .single-diseases) .single_drug .drug_content .comment-meta .comment-author,
body:is(.single-drugs, .single-diseases) .single_drug .drug_content .comment-meta .comment-date,
body:is(.single-drugs, .single-diseases) .single_drug .drug_content .comment-footer-bottom .comment-share>span,
body:is(.single-drugs, .single-diseases) .single_drug .drug_content .user_review_content #respond .alert-message p,
body:is(.single-drugs, .single-diseases) .single_drug .drug_content .wpqa_form label,
body:is(.single-drugs, .single-diseases) .widget-posts .author__name a,
body:is(.single-drugs, .single-diseases) .users-widget .member__name a,
body:is(.single-drugs, .single-diseases) .users-widget .member__stats .stats__text,
body:is(.single-drugs, .single-diseases) .users-widget .member__stats .stats__count,
body:is(.single-drugs, .single-diseases) .bottom-footer p {
    color: #3f4652 !important;
}

body:is(.single-drugs, .single-diseases) .single_drug .drug_content .wpqa_form input,
body:is(.single-drugs, .single-diseases) .single_drug .drug_content .wpqa_form textarea {
    color: #1f2937 !important;
}

body:is(.single-drugs, .single-diseases) .single_drug .drug_content .post-content-text a,
body:is(.single-drugs, .single-diseases) .single_drug .drug_content .post-content-text a:visited,
body:is(.single-drugs, .single-diseases) .single_drug .drug_content .drug_meta a,
body:is(.single-drugs, .single-diseases) .single_drug .drug_content .drug_meta a:visited,
body:is(.single-drugs, .single-diseases) .bottom-footer p a,
body:is(.single-drugs, .single-diseases) .bottom-footer p a:visited {
    color: #0b57d0 !important;
    text-decoration: underline !important;
    text-underline-offset: 2px;
    text-decoration-thickness: 1.5px;
}

body:is(.single-drugs, .single-diseases) .users-widget .member__name a,
body:is(.single-drugs, .single-diseases) .users-widget .member__stats a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding-block: 6px;
}

body:is(.single-drugs, .single-diseases) .users-widget .member__name {
    margin-bottom: 8px !important;
}

body:is(.single-drugs, .single-diseases) .users-widget .member__name a {
    display: flex;
    padding-block: 10px;
}

body:is(.single-drugs, .single-diseases) .users-widget .member__stats {
    gap: 10px;
}

body:is(.single-drugs, .single-diseases) .users-widget .member__name>a {
    display: inline-flex !important;
    align-items: center;
    min-width: 44px;
    min-height: 44px;
    line-height: 1.2;
    padding: 10px 0 !important;
}

body.wp-singular.single-drugs,
body.wp-singular.single-diseases,
body:is(.single-drugs, .single-diseases) .breadcrumb-left .crumbs .breadcrumb-item .current,
body:is(.single-drugs, .single-diseases) .drug_content .comment-text .text p,
body:is(.single-drugs, .single-diseases) .drug_content .comment-meta .comment-author,
body:is(.single-drugs, .single-diseases) .drug_content .comment-footer-bottom .comment-share>span,
body:is(.single-drugs, .single-diseases) .drug_content #respond .alert-message p,
body:is(.single-drugs, .single-diseases) .drug_content .wpqa_form label,
body:is(.single-drugs, .single-diseases) .drug_content .wpqa_form input,
body:is(.single-drugs, .single-diseases) .drug_content .wpqa_form .wpqa_checkbox_span,
body:is(.single-drugs, .single-diseases) .questions-card li.notifications__item.question-item>div>span.author__name>a,
body:is(.single-drugs, .single-diseases) .users-widget .member__name a,
body:is(.single-drugs, .single-diseases) .users-widget .member__stats .stats__text,
body:is(.single-drugs, .single-diseases) .users-widget .member__stats .stats__count {
    color: #1f2937 !important;
    opacity: 1 !important;
}

body:is(.single-drugs, .single-diseases) .drug_content ul.drug_meta li.meta-reviewed-by>a,
body:is(.single-drugs, .single-diseases) .drug_content ul.drug_meta li.meta-author-pubdate>a,
body:is(.single-drugs, .single-diseases) .drug_content .comment-meta a.comment-date {
    color: #0b57d0 !important;
    text-decoration: underline !important;
    text-underline-offset: 2px;
    text-decoration-thickness: 1.5px;
}

/*
 * Diseases parser-safe accessibility fallback.
 * Some CSS optimizers can drop :is() selector blocks; keep critical rules explicit.
 */
body.single-diseases {
    color: #3f4652;
}

body.single-diseases .single_drug .drug_content .post-content-text,
body.single-diseases .single_drug .drug_content .post-content-text p,
body.single-diseases .single_drug .drug_content .post-content-text li,
body.single-diseases .single_drug .drug_content .post-content-text strong,
body.single-diseases .single_drug .drug_content .drug_product_detail_value,
body.single-diseases .single_drug .drug_content .drug_product_description,
body.single-diseases .single_drug .drug_content .drug_meta li,
body.single-diseases .single_drug .drug_content .drug_meta li .date,
body.single-diseases .single_drug .drug_content .breadcrumbs_wrap .crumbs .current,
body.single-diseases .single_drug .drug_content .comment-text .text p,
body.single-diseases .single_drug .drug_content .comment-meta .comment-author,
body.single-diseases .single_drug .drug_content .comment-meta .comment-date,
body.single-diseases .single_drug .drug_content .comment-footer-bottom .comment-share>span,
body.single-diseases .single_drug .drug_content .user_review_content #respond .alert-message p,
body.single-diseases .single_drug .drug_content .wpqa_form label,
body.single-diseases .single_drug .drug_content .wpqa_form input,
body.single-diseases .single_drug .drug_content .wpqa_form .wpqa_checkbox_span,
body.single-diseases .widget-posts .author__name a,
body.single-diseases .questions-card li.notifications__item.question-item>div>span.author__name>a,
body.single-diseases .users-widget .member__name a,
body.single-diseases .users-widget .member__stats .stats__text,
body.single-diseases .users-widget .member__stats .stats__count {
    color: #1f2937 !important;
    opacity: 1 !important;
}

/* Footer paragraph: light color on dark background */
body.single-diseases .bottom-footer p {
    color: #d1d5db !important;
    opacity: 1 !important;
}

body.single-diseases .single_drug .drug_content .post-content-text a,
body.single-diseases .single_drug .drug_content .post-content-text a:visited,
body.single-diseases .single_drug .drug_content .drug_meta a,
body.single-diseases .single_drug .drug_content .drug_meta a:visited,
body.single-diseases .single_drug .drug_content ul.drug_meta li.meta-reviewed-by>a,
body.single-diseases .single_drug .drug_content ul.drug_meta li.meta-author-pubdate>a,
body.single-diseases .single_drug .drug_content .comment-meta a.comment-date,
body.single-diseases .bottom-footer p a,
body.single-diseases .bottom-footer p a:visited {
    color: #0b57d0 !important;
    text-decoration: underline !important;
    text-underline-offset: 2px;
    text-decoration-thickness: 1.5px;
}

body.single-diseases .users-widget .member__name {
    margin-bottom: 8px !important;
}

body.single-diseases .users-widget .member__name>a,
body.single-diseases .users-widget .member__stats a {
    display: inline-flex !important;
    align-items: center;
    min-width: 44px;
    min-height: 44px;
    line-height: 1.2;
    padding: 10px 0 !important;
}

body.single-drugs .bottom-footer p,
body.single-drugs div.bottom-footer>div.container>div>p {
    color: #d1d5db !important;
    opacity: 1 !important;
}

body.single-drugs .bottom-footer p a,
body.single-drugs .bottom-footer p a:visited,
body.single-drugs div.container>div>p>a,
body.single-drugs div.container>div>p>a:visited {
    color: #9ec5ff !important;
    text-decoration: underline !important;
    text-underline-offset: 2px;
    text-decoration-thickness: 1.5px;
}

/* Critical visual stability styles migrated from head inline output. */
body.single-drugs .loader,
body.single-drugs .loader_html {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

body.single-drugs .imedix-gallery__stage,
body.single-drugs .imedix-gallery__hero,
body.single-drugs .drug_product_fixed_image {
    opacity: 1 !important;
    visibility: visible !important;
}

@media (max-width: 768px) {

    body.im-bar-active .drug_product .drug_product_footer,
    body.im-bar-active .storefront-handheld-footer-bar,
    body.im-bar-active .footer-bar {
        display: none !important;
    }
}

/* Sticky audit bar styles migrated from himer_custom_sticky_bar() inline output. */
.im-bar-wrapper {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 96%;
    max-width: 980px;
    z-index: 2147483647;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.im-bar-wrapper.im-bar-hiding {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
}

.im-bar-glass {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.3), 0 10px 25px rgba(0, 0, 0, 0.2);
    border-radius: 14px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    position: relative;
    min-height: 66px;
}

.im-section-trust {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    min-width: 200px;
}

.im-icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: #ecfdf5;
    border-radius: 10px;
    flex-shrink: 0;
}

.im-icon-box svg {
    width: 24px;
    height: 24px;
}

.im-trust-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.im-label {
    font-size: 11px;
    text-transform: uppercase;
    color: #64748b;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.im-status {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    margin-top: 1px;
}

.im-section-action {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: nowrap;
    flex-shrink: 0;
}

.im-code-box {
    display: flex;
    flex-direction: row;
    gap: 8px;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    align-items: center;
}

.im-code-label {
    font-size: 9px;
    color: #166534;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.im-code-row {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 8px 14px;
    border-radius: 8px;
    border: 1.5px solid #cbd5e1;
    transition: all 0.2s ease;
    height: 38px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.im-code-box:hover .im-code-row {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-color: #94a3b8;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.im-code-val {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
}

.im-code-off {
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    padding: 3px 7px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.3);
}

.im-copy-icon {
    width: 14px;
    height: 14px;
    color: #64748b;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.im-code-box:hover .im-copy-icon {
    opacity: 1;
}

.im-tooltip {
    display: none;
    position: absolute;
    top: -34px;
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    color: #fff;
    font-size: 11px;
    padding: 5px 10px;
    border-radius: 6px;
    font-weight: 600;
    white-space: nowrap;
}

.im-code-box.copied .im-tooltip {
    display: block;
}

.im-cta-button {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff !important;
    text-decoration: none;
    padding: 0 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    height: 42px;
    display: flex;
    align-items: center;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.im-cta-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.im-close-desk {
    background: none;
    border: none;
    font-size: 24px;
    color: #cbd5e1;
    cursor: pointer;
    padding: 0;
    margin-left: 4px;
    line-height: 1;
    transition: color 0.2s;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

.im-close-desk:hover {
    color: #64748b;
}

.im-close-mob {
    display: none;
}

@media (max-width: 768px) {
    .im-bar-wrapper {
        bottom: 0;
        width: 100%;
        max-width: 100%;
        left: 0;
        transform: none;
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .im-bar-wrapper.im-bar-hiding {
        opacity: 0;
        transform: translateY(20px);
    }

    .im-bar-glass {
        flex-direction: column;
        padding: 12px 16px 24px 16px;
        border-radius: 16px 16px 0 0;
        gap: 0;
        border: none;
        border-top: 1px solid #e2e8f0;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
        min-height: auto;
    }

    .im-section-trust,
    .im-close-desk {
        display: none;
    }

    .im-close-mob {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: -46px;
        right: 14px;
        width: 34px;
        height: 34px;
        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 50%;
        font-size: 22px;
        color: #64748b;
        line-height: 1;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        z-index: 2147483647;
        cursor: pointer;
        padding: 0;
        transition: all 0.2s ease;
    }

    .im-close-mob:active {
        transform: scale(0.95);
    }

    .im-section-action {
        width: 100%;
        flex-direction: column;
        gap: 0;
        align-items: stretch;
    }

    .im-code-box {
        flex-direction: column;
        width: 100%;
        align-items: center;
        margin-bottom: 4px;
        gap: 0;
    }

    .im-code-label {
        display: block;
        font-size: 9px;
        text-align: center;
        margin-bottom: 3px;
        color: #166534;
        line-height: 1;
    }

    .im-code-row {
        width: auto;
        justify-content: center;
        padding: 4px 12px;
        height: auto;
        min-height: 26px;
        gap: 6px;
        background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
        border: 1.5px solid #cbd5e1;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    }

    .im-code-val {
        font-size: 13px;
        font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    }

    .im-code-off {
        font-size: 12px;
        padding: 2px 6px;
        background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
        color: #fff;
        font-weight: 800;
    }

    .im-copy-icon {
        width: 12px;
        height: 12px;
    }

    .im-cta-button {
        width: 100%;
        justify-content: center;
        height: 48px;
        font-size: 15px;
        padding: 0 20px;
        margin-top: 8px;
    }
}

@media (max-width: 380px) {
    .im-code-val {
        font-size: 14px;
    }

    .im-code-off {
        font-size: 12px;
        padding: 2px 4px;
    }

    .im-copy-icon {
        width: 12px;
        height: 12px;
    }
}

/* ============================================================
   WP SOCIAL LINKS BLOCK — Footer fix for drugs/diseases pages
   wp-block-library is dequeued on these pages, so we restore
   the minimal flex layout and brand icon colors here.
   Scoped to .footer to avoid conflicts with page content.
   ============================================================ */
.footer ul.wp-block-social-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer ul.wp-block-social-links li.wp-block-social-link {
    display: flex;
    margin: 0;
    padding: 0;
}

.footer ul.wp-block-social-links li.wp-block-social-link a.wp-block-social-link-anchor {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    transition: opacity 0.2s ease;
}

.footer ul.wp-block-social-links li.wp-block-social-link a.wp-block-social-link-anchor:hover {
    opacity: 0.8;
}

.footer ul.wp-block-social-links li.wp-block-social-link a.wp-block-social-link-anchor svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Brand colours for each social network */
.footer .wp-social-link-facebook a {
    color: #1877f2;
}

.footer .wp-social-link-instagram a {
    color: #e1306c;
}

.footer .wp-social-link-linkedin a {
    color: #0077b5;
}

.footer .wp-social-link-x a {
    color: #000000;
}

.footer .wp-social-link-twitter a {
    color: #1da1f2;
}

.footer .wp-social-link-youtube a {
    color: #ff0000;
}

.footer .wp-social-link-pinterest a {
    color: #e60023;
}

.footer .wp-social-link-tiktok a {
    color: #010101;
}

/* Logos-only style: transparent background, icon uses brand colour */
.footer ul.wp-block-social-links.is-style-logos-only li.wp-block-social-link a {
    background: transparent;
}

/* Default (with background) style */
.footer ul.wp-block-social-links:not(.is-style-logos-only) li.wp-block-social-link a {
    background: rgba(0, 0, 0, 0.1);
}

/* Inline-color override (when has-icon-color + individual --icon-color is set via inline style) */
.footer ul.wp-block-social-links.has-icon-color li.wp-block-social-link a {
    color: inherit;
}

/**
 * iMedix Gallery Styles
 * iOS-style carousel with glassmorphism
 * Version: 2.2.1
 */

/* ==========================================================================
   Root CSS Variables (available globally for modal moved to body)
   ========================================================================== */
:root {
    --ig-color-primary: #007AFF;
    /* iOS blue */
    --ig-color-dark: #1e293b;
}

/* ==========================================================================
   CSS Custom Properties
   ========================================================================== */
.imedix-gallery {
    --ig-stage-size: 300px;
    --ig-radius: 12px;
    --ig-gap: 12px;
    --ig-nav-size: 36px;
    --ig-dot-size: 6px;
    --ig-dot-active-width: 18px;
    --ig-dot-gap: 8px;
    --ig-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --ig-glass-bg: rgba(255, 255, 255, 0.85);
    --ig-glass-border: rgba(255, 255, 255, 0.3);
    --ig-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   Gallery Container
   ========================================================================== */
.imedix-gallery {
    position: relative;
    width: 100%;
    max-width: var(--ig-stage-size);
    margin: 0 auto;
}

.imedix-gallery__data {
    display: none;
}

/* ==========================================================================
   Stage (Carousel Viewport)
   ========================================================================== */
.imedix-gallery__stage {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: var(--ig-radius);
    background: transparent;
    cursor: pointer;
}

.imedix-gallery__stage:focus {
    outline: none;
}

.imedix-gallery__stage:focus-visible {
    outline: 2px solid var(--ig-color-primary);
    outline-offset: 2px;
}

/* ==========================================================================
   Slides
   ========================================================================== */
.imedix-gallery__slides {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform var(--ig-transition);
    will-change: transform;
}

.imedix-gallery__slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.imedix-gallery__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.imedix-gallery__hero,
.imedix-gallery__img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
}

/* ==========================================================================
   Badge (Photo Count)
   ========================================================================== */
.imedix-gallery__badge {
    position: absolute;
    top: var(--ig-gap);
    right: var(--ig-gap);
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    background: var(--ig-glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--ig-glass-border);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--ig-color-dark);
    box-shadow: var(--ig-shadow);
    pointer-events: none;
    z-index: 10;
}

.imedix-gallery__badge-icon {
    width: 14px;
    height: 14px;
    opacity: 0.7;
}

/* ==========================================================================
   Navigation Arrows (Inline)
   ========================================================================== */
.imedix-gallery__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: var(--ig-nav-size);
    height: var(--ig-nav-size);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ig-glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--ig-glass-border);
    border-radius: 50%;
    box-shadow: var(--ig-shadow);
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
    padding: 0;
}

.imedix-gallery__nav:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-50%) scale(1.05);
}

.imedix-gallery__nav:focus-visible {
    outline: 2px solid var(--ig-color-primary);
    outline-offset: 2px;
}

.imedix-gallery__nav:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.imedix-gallery__nav--prev {
    left: var(--ig-gap);
}

.imedix-gallery__nav--next {
    right: var(--ig-gap);
}

.imedix-gallery__nav svg {
    color: var(--ig-color-dark);
}

/* ==========================================================================
   Dots Navigation
   ========================================================================== */
.imedix-gallery__dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--ig-dot-gap);
    margin-top: var(--ig-gap);
    padding: 4px 0;
}

.imedix-gallery__dot {
    width: 24px;
    height: 24px;
    padding: 0;
    border: none;
    border-radius: 12px;
    background: transparent;
    cursor: pointer;
    transition: all var(--ig-transition);
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.imedix-gallery__dot::before {
    content: '';
    width: var(--ig-dot-size);
    height: var(--ig-dot-size);
    border-radius: 999px;
    background: #cbd5e1;
    transition: all var(--ig-transition);
}

.imedix-gallery__dot:hover::before {
    background: #94a3b8;
}

.imedix-gallery__dot:focus-visible {
    outline: 2px solid var(--ig-color-primary);
    outline-offset: 4px;
}

.imedix-gallery__dot--active::before,
.imedix-gallery__dot[aria-selected="true"]::before {
    width: var(--ig-dot-active-width);
    background: var(--ig-color-primary);
}

/* ==========================================================================
   Counter
   ========================================================================== */
.imedix-gallery__counter {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2px;
    margin-top: 6px;
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
}

.imedix-gallery__counter-current {
    font-weight: 700;
    color: var(--ig-color-dark);
}

/* ==========================================================================
   Modal Overlay (moved to body via JS for z-index fix)
   ========================================================================== */
.imedix-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    /* Padding from screen edges */
    padding: 20px;
}

.imedix-modal[hidden] {
    display: none;
}

.imedix-modal.imedix-modal--open {
    opacity: 1;
    visibility: visible;
}

.imedix-modal__backdrop {
    position: absolute;
    inset: 0;
    z-index: 1;
    /* iOS-style: lighter, more transparent */
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.imedix-modal__container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
    /* Smaller, more compact */
    max-width: min(60vw, 550px);
    /* iOS Safari fix: use svh with vh fallback */
    max-height: 65vh;
    max-height: 65svh;
    /* Darker glass effect for better disclaimer readability */
    background: rgba(30, 30, 35, 0.75);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    /* Prevent iOS transform glitches */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

/* ==========================================================================
   Modal Close Button (top-right, always visible, high z-index)
   ========================================================================== */
.imedix-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 1000;
    width: 36px;
    height: 36px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: rgba(120, 120, 128, 0.32);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
    pointer-events: auto;
    /* iOS-style subtle shadow */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.imedix-modal__close:hover {
    background: rgba(120, 120, 128, 0.48);
    transform: scale(1.05);
}

.imedix-modal__close:active {
    transform: scale(0.95);
}

.imedix-modal__close:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.imedix-modal__close svg {
    color: #fff;
    width: 18px;
    height: 18px;
    stroke-width: 2.5;
}

/* ==========================================================================
   Modal Stage (full centered layout)
   ========================================================================== */
.imedix-modal__stage {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 0;
    /* Padding for breathing room from all edges */
    padding: 50px 20px 20px;
}

.imedix-modal__image-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.imedix-modal__image-wrap img {
    /* FIX: Scale down only, never crop - use container constraints */
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    user-select: none;
    -webkit-user-drag: none;
    /* Subtle shadow for depth */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   Modal Navigation - HIDDEN (swipe-only navigation)
   ========================================================================== */
.imedix-modal__nav {
    display: none !important;
    pointer-events: none !important;
    visibility: hidden !important;
}

/* ==========================================================================
   Modal Footer
   ========================================================================== */
.imedix-modal__footer {
    padding: 12px 20px 24px;
    text-align: center;
    flex-shrink: 0;
}

.imedix-modal__disclaimer {
    font-size: 11px;
    /* Better contrast on darker background */
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
    line-height: 1.4;
}

/* ==========================================================================
   Modal Dots Navigation (iOS-style)
   ========================================================================== */
.imedix-modal__dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    margin: 20px auto 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 20px;
    flex-shrink: 0;
}

.imedix-modal__dot {
    position: relative;
    width: 20px;
    height: 20px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    flex-shrink: 0;
}

.imedix-modal__dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.4);
    transition: width 0.25s ease, background 0.25s ease;
}

.imedix-modal__dot:hover::after {
    background: rgba(255, 255, 255, 0.6);
}

.imedix-modal__dot--active::after,
.imedix-modal__dot[aria-selected="true"]::after {
    width: 18px;
    background: var(--ig-color-primary);
}

.imedix-modal__dot:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* ==========================================================================
   Modal: Hide any captions/titles/headers (never show text)
   ========================================================================== */
.imedix-modal__caption,
.imedix-modal__title,
.imedix-modal__meta,
.imedix-modal__name,
.imedix-modal__header,
.imedix-modal__counter {
    display: none !important;
}

/* Ensure no text appears in image wrapper */
.imedix-modal__image-wrap figcaption,
.imedix-modal__image-wrap .wp-caption-text {
    display: none !important;
}

/* ==========================================================================
   Scroll Lock (applied to html/body)
   ========================================================================== */
html.is-locked,
body.is-locked {
    overflow: hidden !important;
    touch-action: none;
}

/* iOS scroll lock fix */
body.is-locked {
    position: fixed;
    width: 100%;
    height: 100%;
}

/* ==========================================================================
   Reduced Motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {

    .imedix-gallery__slides,
    .imedix-gallery__nav,
    .imedix-gallery__dot,
    .imedix-modal,
    .imedix-modal__nav,
    .imedix-modal__close {
        transition: none;
    }
}

/* ==========================================================================
   Inline Gallery: Minimal UI - Only Dots
   Hide badge, arrows, counter everywhere
   ========================================================================== */
.imedix-gallery__badge {
    display: none !important;
}

.imedix-gallery__nav {
    display: none !important;
}

.imedix-gallery__counter {
    display: none !important;
}

/* ==========================================================================
   Mobile Adjustments
   ========================================================================== */
@media (max-width: 767px) {
    .imedix-gallery {
        --ig-stage-size: 280px;
    }

    .imedix-modal {
        /* iOS safe area padding */
        padding: 16px;
        padding-top: max(16px, env(safe-area-inset-top, 16px));
        padding-bottom: max(16px, env(safe-area-inset-bottom, 16px));
        /* Ensure proper alignment */
        align-items: center;
        justify-content: center;
    }

    .imedix-modal__container {
        /* iOS Safari fix: stable sizing without vh bugs */
        width: auto;
        height: auto;
        max-width: calc(100% - 32px);
        /* svh = small viewport height (excludes dynamic UI like address bar) */
        max-height: 70vh;
        max-height: 70svh;
        /* Ensure no stretching */
        flex-shrink: 0;
        margin: auto;
        border-radius: 20px;
        /* Darker glassmorphism for better disclaimer contrast */
        background: rgba(30, 30, 35, 0.8);
        backdrop-filter: blur(40px) saturate(180%);
        -webkit-backdrop-filter: blur(40px) saturate(180%);
        border: 1px solid rgba(255, 255, 255, 0.18);
        box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
        /* Prevent iOS transform/render glitches */
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
        /* Disable any accidental zoom */
        touch-action: manipulation;
    }

    .imedix-modal__stage {
        /* Extra top padding for close button */
        padding: 44px 12px 12px;
        /* Prevent flex stretch */
        flex: 1 1 auto;
        min-height: 0;
    }

    .imedix-modal__image-wrap {
        /* Stable container for image */
        flex: 1 1 auto;
        min-height: 0;
    }

    .imedix-modal__image-wrap img {
        /* Use container constraints - prevents cropping */
        max-width: 100%;
        max-height: 100%;
    }

    /* Close button: CRITICAL - always visible on mobile */
    .imedix-modal__close {
        position: absolute;
        top: 10px;
        right: 10px;
        width: 32px;
        height: 32px;
        z-index: 9999;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        background: rgba(60, 60, 67, 0.7);
        border: none;
        /* Prevent transform glitches */
        transform: none;
    }

    .imedix-modal__close svg {
        width: 16px;
        height: 16px;
    }

    .imedix-modal__dots {
        margin: 12px auto 6px;
        padding: 6px 10px;
        gap: 6px;
        flex-shrink: 0;
    }

    .imedix-modal__dot {
        width: 16px;
        height: 16px;
    }

    .imedix-modal__footer {
        padding: 8px 16px 16px;
        padding-bottom: max(16px, env(safe-area-inset-bottom, 16px));
        flex-shrink: 0;
    }

    .imedix-modal__disclaimer {
        font-size: 10px;
        /* Better contrast on darker background */
        color: rgba(255, 255, 255, 0.7);
    }
}

/* ==========================================================================
   Tablet Adjustments
   ========================================================================== */
@media (min-width: 768px) and (max-width: 1023px) {
    .imedix-gallery {
        --ig-stage-size: 350px;
    }

    .imedix-modal {
        padding: 30px;
    }

    .imedix-modal__container {
        max-width: 60vw;
        max-height: 65vh;
        max-height: 65svh;
    }

    .imedix-modal__image-wrap img {
        /* Use container constraints - prevents cropping */
        max-width: 100%;
        max-height: 100%;
    }
}

/* ==========================================================================
   Desktop Adjustments
   ========================================================================== */
@media (min-width: 1024px) {
    .imedix-gallery {
        --ig-stage-size: 300px;
    }

    .imedix-modal {
        padding: 40px;
    }

    .imedix-modal__container {
        max-width: min(60vw, 550px);
        max-height: 65vh;
        max-height: 65svh;
    }

    .imedix-modal__stage {
        padding: 50px 30px 20px;
    }

    .imedix-modal__image-wrap img {
        /* Use container constraints - prevents cropping */
        max-width: 100%;
        max-height: 100%;
    }

    .imedix-modal__close {
        top: 14px;
        right: 14px;
        width: 38px;
        height: 38px;
    }
}

/* ==========================================================================
   Gallery in Fixed/Sticky Product Card
   ========================================================================== */
body.single-drugs .drug_product.fixed .imedix-gallery,
body.single-diseases .drug_product.fixed .imedix-gallery {
    display: none !important;
}

/* ==========================================================================
   Diseases: Compact sticky header (mirrors drugs behavior)
   Hide gallery, description, footer & reviews when .fixed is active
   ========================================================================== */
body.single-diseases .drug_product.fixed .drug_product_description {
    display: none;
}

body.single-diseases .drug_product.fixed .drug_product_footer {
    display: none;
}

body.single-diseases .drug_product.fixed .drug_product_reviews {
    display: none;
}

/* ==========================================================================
   Placeholder Styling
   ========================================================================== */
.imedix-gallery--placeholder .imedix-gallery__stage {
    background: #f1f5f9;
    cursor: default;
}

.imedix-gallery--placeholder .imedix-gallery__hero {
    opacity: 0.8;
}
