/* ELOMED DARK GLOBAL FIX v2.28.3
 * Loaded after every page stylesheet. Keeps dark mode coherent across
 * WooCommerce, local SEO, profiles, content pages, forms and shared UI.
 */
:is(html[data-a11y-theme="dark"],html[data-a11y-theme="system"][data-a11y-system-dark="1"]){
  --el-dark-bg:#08151c;
  --el-dark-surface:#0d1d25;
  --el-dark-surface-2:#11242d;
  --el-dark-card:#10212a;
  --el-dark-border:#29444f;
  --el-dark-border-soft:#213a45;
  --el-dark-text:#eef8fb;
  --el-dark-muted:#a9c0ca;
  --el-dark-link:#65d8e5;
  color-scheme:dark;
}

/* Page canvases and full-width bands */
:is(html[data-a11y-theme="dark"],html[data-a11y-theme="system"][data-a11y-system-dark="1"]) body,
:is(html[data-a11y-theme="dark"],html[data-a11y-theme="system"][data-a11y-system-dark="1"]) #page,
:is(html[data-a11y-theme="dark"],html[data-a11y-theme="system"][data-a11y-system-dark="1"]) .site,
:is(html[data-a11y-theme="dark"],html[data-a11y-theme="system"][data-a11y-system-dark="1"]) .site-main,
:is(html[data-a11y-theme="dark"],html[data-a11y-theme="system"][data-a11y-system-dark="1"]) .elomed-product-page,
:is(html[data-a11y-theme="dark"],html[data-a11y-theme="system"][data-a11y-system-dark="1"]) .elomed-shop,
:is(html[data-a11y-theme="dark"],html[data-a11y-theme="system"][data-a11y-system-dark="1"]) .local-seo-page,
:is(html[data-a11y-theme="dark"],html[data-a11y-theme="system"][data-a11y-system-dark="1"]) .team-page,
:is(html[data-a11y-theme="dark"],html[data-a11y-theme="system"][data-a11y-system-dark="1"]) .contact-page,
:is(html[data-a11y-theme="dark"],html[data-a11y-theme="system"][data-a11y-system-dark="1"]) .ambulance-page,
:is(html[data-a11y-theme="dark"],html[data-a11y-theme="system"][data-a11y-system-dark="1"]) .vrtech-page,
:is(html[data-a11y-theme="dark"],html[data-a11y-theme="system"][data-a11y-system-dark="1"]) .elomed-psycholog-page,
:is(html[data-a11y-theme="dark"],html[data-a11y-theme="system"][data-a11y-system-dark="1"]) .content-layout,
:is(html[data-a11y-theme="dark"],html[data-a11y-theme="system"][data-a11y-system-dark="1"]) .entry-content,
:is(html[data-a11y-theme="dark"],html[data-a11y-theme="system"][data-a11y-system-dark="1"]) .page-content{
  background-color:var(--el-dark-bg)!important;
  color:var(--el-dark-text)!important;
}

/* Never leave a pale full-width content band in dark mode. */
:is(html[data-a11y-theme="dark"],html[data-a11y-theme="system"][data-a11y-system-dark="1"]) body :where(
  .elomed-product-details,.elomed-product-description,.elomed-product-secondary-details,.elomed-product-related,
  .elomed-product-bundle,.shop-main,.shop-content,.shop-products,.shop-section,
  .local-seo-realizations,.local-seo-faq,.local-seo-locations,
  .team-section,.contact-section,.blog-section,.knowledge-section,.partners-section,.reviews-section,
  .woocommerce,.woocommerce-page,.woocommerce-cart-form,.cart-collaterals,.checkout,.woocommerce-checkout,
  .woocommerce-account,.woocommerce-MyAccount-content
){
  background:var(--el-dark-bg)!important;
  background-image:none!important;
  color:var(--el-dark-text)!important;
  border-color:var(--el-dark-border-soft)!important;
}

/* Reusable surfaces/cards. */
:is(html[data-a11y-theme="dark"],html[data-a11y-theme="system"][data-a11y-system-dark="1"]) body :where(
  .post-card,.knowledge-card,.google-review,.google-reviews__summary,.google-reviews__empty,
  .team-card,.team-detail,.team-contact-card,.team-profile-body,.team-highlight-grid,.team-highlight,.team-psycholog-form,
  .contact-card,.contact-address,.contact-form-panel,
  .local-seo-proof,.local-seo-area-copy,.local-seo-location-grid>a,.local-seo-realizations__grid article,.local-seo-faq details,
  .elomed-product-assurance>div,.elomed-product-contact,.elomed-product-bundle__card,
  .elomed-product-specification,.elomed-product-reviews,.elomed-product-spec-table,
  .woocommerce-Tabs-panel,.woocommerce table.shop_table,.woocommerce-cart-form,.cart_totals,.elomed-cart-benefit,
  .wc-block-components-sidebar,.wc-block-components-checkout-step,.woocommerce form,
  .author-inquiry__dialog,.aside-card,.comment-body
){
  background:var(--el-dark-card)!important;
  background-image:none!important;
  color:var(--el-dark-text)!important;
  border-color:var(--el-dark-border)!important;
  box-shadow:none!important;
}

/* Product page: the screenshot showed these areas reverting to white. */
:is(html[data-a11y-theme="dark"],html[data-a11y-theme="system"][data-a11y-system-dark="1"]) .elomed-product-page{
  background:var(--el-dark-bg)!important;
  color:var(--el-dark-text)!important;
}
:is(html[data-a11y-theme="dark"],html[data-a11y-theme="system"][data-a11y-system-dark="1"]) .elomed-product-details{
  background:var(--el-dark-bg)!important;
  border-color:var(--el-dark-border)!important;
}
:is(html[data-a11y-theme="dark"],html[data-a11y-theme="system"][data-a11y-system-dark="1"]) .elomed-product-details .woocommerce-Tabs-panel,
:is(html[data-a11y-theme="dark"],html[data-a11y-theme="system"][data-a11y-system-dark="1"]) .elomed-product-specification,
:is(html[data-a11y-theme="dark"],html[data-a11y-theme="system"][data-a11y-system-dark="1"]) .elomed-product-reviews{
  background:var(--el-dark-surface)!important;
  color:var(--el-dark-text)!important;
  border-color:var(--el-dark-border)!important;
}
:is(html[data-a11y-theme="dark"],html[data-a11y-theme="system"][data-a11y-system-dark="1"]) .elomed-product-details .woocommerce-Tabs-panel h2,
:is(html[data-a11y-theme="dark"],html[data-a11y-theme="system"][data-a11y-system-dark="1"]) .elomed-product-description h2,
:is(html[data-a11y-theme="dark"],html[data-a11y-theme="system"][data-a11y-system-dark="1"]) .elomed-product-secondary-details h2,
:is(html[data-a11y-theme="dark"],html[data-a11y-theme="system"][data-a11y-system-dark="1"]) .elomed-product-bundle__head h2,
:is(html[data-a11y-theme="dark"],html[data-a11y-theme="system"][data-a11y-system-dark="1"]) .elomed-product-bundle__body h3 a{
  color:var(--el-dark-text)!important;
}
:is(html[data-a11y-theme="dark"],html[data-a11y-theme="system"][data-a11y-system-dark="1"]) .elomed-product-bundle__head p,
:is(html[data-a11y-theme="dark"],html[data-a11y-theme="system"][data-a11y-system-dark="1"]) .elomed-product-short-description,
:is(html[data-a11y-theme="dark"],html[data-a11y-theme="system"][data-a11y-system-dark="1"]) .elomed-product-meta,
:is(html[data-a11y-theme="dark"],html[data-a11y-theme="system"][data-a11y-system-dark="1"]) .elomed-product-bundle__stock{
  color:var(--el-dark-muted)!important;
}
:is(html[data-a11y-theme="dark"],html[data-a11y-theme="system"][data-a11y-system-dark="1"]) .elomed-product-spec-table th,
:is(html[data-a11y-theme="dark"],html[data-a11y-theme="system"][data-a11y-system-dark="1"]) .elomed-product-spec-table td{
  background:var(--el-dark-surface)!important;
  color:var(--el-dark-text)!important;
  border-color:var(--el-dark-border)!important;
}
:is(html[data-a11y-theme="dark"],html[data-a11y-theme="system"][data-a11y-system-dark="1"]) .elomed-product-bundle__media{
  background:#f5f8fa!important; /* neutral image canvas: preserves product photo readability */
}
:is(html[data-a11y-theme="dark"],html[data-a11y-theme="system"][data-a11y-system-dark="1"]) .elomed-product-gallery .woocommerce-product-gallery__image,
:is(html[data-a11y-theme="dark"],html[data-a11y-theme="system"][data-a11y-system-dark="1"]) .elomed-product-gallery .flex-control-thumbs li{
  background:#f7fafb!important;
  border-color:#39515c!important;
}
:is(html[data-a11y-theme="dark"],html[data-a11y-theme="system"][data-a11y-system-dark="1"]) .elomed-product-gallery .woocommerce-product-gallery__trigger,
:is(html[data-a11y-theme="dark"],html[data-a11y-theme="system"][data-a11y-system-dark="1"]) .elomed-gallery-nav,
:is(html[data-a11y-theme="dark"],html[data-a11y-theme="system"][data-a11y-system-dark="1"]) .elomed-gallery-zoom{
  background:#122630!important;color:#77dce7!important;border-color:#31505d!important;
}
:is(html[data-a11y-theme="dark"],html[data-a11y-theme="system"][data-a11y-system-dark="1"]) .elomed-product-bundle__nav button,
:is(html[data-a11y-theme="dark"],html[data-a11y-theme="system"][data-a11y-system-dark="1"]) .elomed-share-btn{
  background:#122630!important;color:#77dce7!important;border-color:#31505d!important;
}
:is(html[data-a11y-theme="dark"],html[data-a11y-theme="system"][data-a11y-system-dark="1"]) .elomed-product-bundle__nav button:hover,
:is(html[data-a11y-theme="dark"],html[data-a11y-theme="system"][data-a11y-system-dark="1"]) .elomed-share-btn:hover,
:is(html[data-a11y-theme="dark"],html[data-a11y-theme="system"][data-a11y-system-dark="1"]) .elomed-share-btn:focus-visible{
  background:#0a6079!important;color:#fff!important;border-color:#4ed5df!important;
}
:is(html[data-a11y-theme="dark"],html[data-a11y-theme="system"][data-a11y-system-dark="1"]) .elomed-product-bundle__link{
  background:#132a34!important;color:#80dfe8!important;border:1px solid #294854!important;
}
:is(html[data-a11y-theme="dark"],html[data-a11y-theme="system"][data-a11y-system-dark="1"]) .elomed-product-bundle__link:hover{background:#0a6079!important;color:#fff!important}
:is(html[data-a11y-theme="dark"],html[data-a11y-theme="system"][data-a11y-system-dark="1"]) .elomed-product-category{background:#11323d!important;color:#6edbe5!important}
:is(html[data-a11y-theme="dark"],html[data-a11y-theme="system"][data-a11y-system-dark="1"]) .elomed-product-summary h1{color:#f5fbfd!important}

/* Shop/cart/checkout/account */
:is(html[data-a11y-theme="dark"],html[data-a11y-theme="system"][data-a11y-system-dark="1"]) body.woocommerce :where(.shop_table,.cart_totals,.woocommerce-cart-form,.woocommerce-checkout-review-order,.woocommerce-MyAccount-navigation,.woocommerce-MyAccount-content),
:is(html[data-a11y-theme="dark"],html[data-a11y-theme="system"][data-a11y-system-dark="1"]) body.woocommerce-page :where(.shop_table,.cart_totals,.woocommerce-cart-form,.woocommerce-checkout-review-order,.woocommerce-MyAccount-navigation,.woocommerce-MyAccount-content){
  background:var(--el-dark-surface)!important;color:var(--el-dark-text)!important;border-color:var(--el-dark-border)!important;
}
:is(html[data-a11y-theme="dark"],html[data-a11y-theme="system"][data-a11y-system-dark="1"]) .woocommerce :where(th,td),
:is(html[data-a11y-theme="dark"],html[data-a11y-theme="system"][data-a11y-system-dark="1"]) .woocommerce-page :where(th,td){border-color:var(--el-dark-border)!important;color:var(--el-dark-text)!important}
:is(html[data-a11y-theme="dark"],html[data-a11y-theme="system"][data-a11y-system-dark="1"]) .woocommerce :where(.input-text,input,select,textarea),
:is(html[data-a11y-theme="dark"],html[data-a11y-theme="system"][data-a11y-system-dark="1"]) .woocommerce-page :where(.input-text,input,select,textarea){background:#0a171e!important;color:#f4fbfd!important;border-color:#385662!important}

/* Shared navigation / dropdowns / utility buttons */
:is(html[data-a11y-theme="dark"],html[data-a11y-theme="system"][data-a11y-system-dark="1"]) .main-nav,
:is(html[data-a11y-theme="dark"],html[data-a11y-theme="system"][data-a11y-system-dark="1"]) .main-nav .sub-menu,
:is(html[data-a11y-theme="dark"],html[data-a11y-theme="system"][data-a11y-system-dark="1"]) .nav-toggle,
:is(html[data-a11y-theme="dark"],html[data-a11y-theme="system"][data-a11y-system-dark="1"]) .main-nav .menu{
  background:#091820!important;color:var(--el-dark-text)!important;border-color:#26434f!important;
}
:is(html[data-a11y-theme="dark"],html[data-a11y-theme="system"][data-a11y-system-dark="1"]) .header-search{background:#0d1d25!important;border-color:#2d4955!important}
:is(html[data-a11y-theme="dark"],html[data-a11y-theme="system"][data-a11y-system-dark="1"]) .header-search input{background:#0d1d25!important;color:#eef8fb!important}
:is(html[data-a11y-theme="dark"],html[data-a11y-theme="system"][data-a11y-system-dark="1"]) :where(.elomed-backtotop,.partners__arrow,.google-reviews__arrow,.slider-arrow){background:#122630!important;color:#78dce7!important;border-color:#31505d!important}

/* Forms, dialogs and notices */
:is(html[data-a11y-theme="dark"],html[data-a11y-theme="system"][data-a11y-system-dark="1"]) body :where(.woocommerce-message,.woocommerce-info,.woocommerce-error,.wc-block-components-notice-banner,.contact-alert,.author-inquiry__dialog){
  background:var(--el-dark-surface)!important;color:var(--el-dark-text)!important;border-color:var(--el-dark-border)!important;
}
:is(html[data-a11y-theme="dark"],html[data-a11y-theme="system"][data-a11y-system-dark="1"]) body :where(input,select,textarea,option,.select2-selection){
  background:#0a171e!important;color:#f5fbfd!important;border-color:#385662!important;
}

/* Text contrast: only content text; do not recolor branded buttons. */
:is(html[data-a11y-theme="dark"],html[data-a11y-theme="system"][data-a11y-system-dark="1"]) body :where(.entry-content,.page-content,.woocommerce-Tabs-panel,.elomed-product-specification,.team-profile-body,.local-seo-area-copy) :where(h1,h2,h3,h4,h5,h6,p,li,dt,dd,strong,small,th,td){color:var(--el-dark-text)!important}
:is(html[data-a11y-theme="dark"],html[data-a11y-theme="system"][data-a11y-system-dark="1"]) body a:not(.button):not(.btn):not([class*="button"]):not(.elomed-a11y-launcher){color:var(--el-dark-link)}

/* Media itself must never receive a dark paint layer. */
:is(html[data-a11y-theme="dark"],html[data-a11y-theme="system"][data-a11y-system-dark="1"]) :where(img,picture,video,canvas,iframe){filter:none!important}

/* v2.28.5 - Zrealizowane szkolenia / pojedyncza realizacja: pelny dark mode */
:is(html[data-a11y-theme="dark"],html[data-a11y-theme="system"][data-a11y-system-dark="1"]) body:has(.realization-single),
:is(html[data-a11y-theme="dark"],html[data-a11y-theme="system"][data-a11y-system-dark="1"]) .realization-single,
:is(html[data-a11y-theme="dark"],html[data-a11y-theme="system"][data-a11y-system-dark="1"]) .realization-single__hero,
:is(html[data-a11y-theme="dark"],html[data-a11y-theme="system"][data-a11y-system-dark="1"]) .realization-single__content,
:is(html[data-a11y-theme="dark"],html[data-a11y-theme="system"][data-a11y-system-dark="1"]) .realization-gallery-section,
:is(html[data-a11y-theme="dark"],html[data-a11y-theme="system"][data-a11y-system-dark="1"]) .realization-video-section{
  background:var(--el-dark-bg)!important;
  background-image:none!important;
  color:var(--el-dark-text)!important;
  border-color:var(--el-dark-border-soft)!important;
}
:is(html[data-a11y-theme="dark"],html[data-a11y-theme="system"][data-a11y-system-dark="1"]) .realization-single__hero :where(h1,h2,h3,strong),
:is(html[data-a11y-theme="dark"],html[data-a11y-theme="system"][data-a11y-system-dark="1"]) .realization-single__content :where(h1,h2,h3,h4,strong),
:is(html[data-a11y-theme="dark"],html[data-a11y-theme="system"][data-a11y-system-dark="1"]) .realization-gallery-section :where(h2,h3,strong),
:is(html[data-a11y-theme="dark"],html[data-a11y-theme="system"][data-a11y-system-dark="1"]) .realization-video-section :where(h2,h3,strong){
  color:var(--el-dark-text)!important;
}
:is(html[data-a11y-theme="dark"],html[data-a11y-theme="system"][data-a11y-system-dark="1"]) .realization-single :where(.realization-single__lead,.realization-single__back,.realization-section-head p,.realization-single__editor p,.realization-single__editor li){
  color:var(--el-dark-muted)!important;
}
:is(html[data-a11y-theme="dark"],html[data-a11y-theme="system"][data-a11y-system-dark="1"]) .realization-single__facts div,
:is(html[data-a11y-theme="dark"],html[data-a11y-theme="system"][data-a11y-system-dark="1"]) .realization-single__details div{
  background:var(--el-dark-card)!important;
  color:var(--el-dark-text)!important;
  border-color:var(--el-dark-border)!important;
  box-shadow:none!important;
}
:is(html[data-a11y-theme="dark"],html[data-a11y-theme="system"][data-a11y-system-dark="1"]) .realization-single__facts span,
:is(html[data-a11y-theme="dark"],html[data-a11y-theme="system"][data-a11y-system-dark="1"]) .realization-single__details span{
  color:#90aab5!important;
}
:is(html[data-a11y-theme="dark"],html[data-a11y-theme="system"][data-a11y-system-dark="1"]) .realization-single__facts strong,
:is(html[data-a11y-theme="dark"],html[data-a11y-theme="system"][data-a11y-system-dark="1"]) .realization-single__details strong{
  color:var(--el-dark-text)!important;
}
:is(html[data-a11y-theme="dark"],html[data-a11y-theme="system"][data-a11y-system-dark="1"]) .realization-single__editor{
  color:var(--el-dark-text)!important;
}
:is(html[data-a11y-theme="dark"],html[data-a11y-theme="system"][data-a11y-system-dark="1"]) .realization-single__editor :where(a){color:var(--el-dark-link)!important}
:is(html[data-a11y-theme="dark"],html[data-a11y-theme="system"][data-a11y-system-dark="1"]) .realization-gallery__item{
  background:#10212a!important;
  border:1px solid #28434f!important;
}
:is(html[data-a11y-theme="dark"],html[data-a11y-theme="system"][data-a11y-system-dark="1"]) .realization-single__cover{
  background:#10212a!important;
  border:1px solid #28434f!important;
  box-shadow:0 18px 46px rgba(0,0,0,.28)!important;
}
:is(html[data-a11y-theme="dark"],html[data-a11y-theme="system"][data-a11y-system-dark="1"]) .realization-video{
  background:#07151d!important;
  border-color:#2b4653!important;
}
:is(html[data-a11y-theme="dark"],html[data-a11y-theme="system"][data-a11y-system-dark="1"]) .realization-single__cta{
  background:#071820!important;
  color:#fff!important;
  border-color:#24414d!important;
}
:is(html[data-a11y-theme="dark"],html[data-a11y-theme="system"][data-a11y-system-dark="1"]) .realization-btn-light{
  background:#122630!important;
  color:#7ce2eb!important;
  border:1px solid #365865!important;
}
:is(html[data-a11y-theme="dark"],html[data-a11y-theme="system"][data-a11y-system-dark="1"]) .realization-btn-light:hover,
:is(html[data-a11y-theme="dark"],html[data-a11y-theme="system"][data-a11y-system-dark="1"]) .realization-btn-light:focus-visible{
  background:#0a6079!important;
  color:#fff!important;
  border-color:#55dce5!important;
}
