/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.2
 Text Domain:  woodmart
*/

:root {
  --wd-primary-color: #e2001a;
  --btn-accented-bgcolor: #e2001a;
  --btn-accented-bgcolor-hover: #c40016;
  --btn-accented-color: #fff;
  --btn-accented-color-hover: #fff;
}

/* Hover icons: red cart button only */
.wd-hover-icons .wd-add-btn > a,
.wd-hover-icons a.add_to_cart_button.add-to-cart-loop,
.wd-hover-icons .wd-buttons a.add_to_cart_button {
  background-color: #e2001a !important;
  background: #e2001a !important;
  border-color: #e2001a !important;
  color: #fff !important;
}
.wd-hover-icons .wd-add-btn > a:hover,
.wd-hover-icons .wd-add-btn > a:focus,
.wd-hover-icons a.add_to_cart_button:hover,
.wd-hover-icons a.add_to_cart_button:focus {
  background-color: #c40016 !important;
  background: #c40016 !important;
  color: #fff !important;
}
.wd-hover-icons .wd-add-btn .wd-action-icon,
.wd-hover-icons .wd-add-btn .wd-action-icon:before,
.wd-hover-icons a.add_to_cart_button .wd-action-icon,
.wd-hover-icons a.add_to_cart_button .wd-action-icon:before {
  color: #fff !important;
}

/* Product page ATC stays Visus red */
.single_add_to_cart_button,
.cart .single_add_to_cart_button {
  background-color: #e2001a !important;
  color: #fff !important;
  border: none !important;
}
.single_add_to_cart_button:hover,
.single_add_to_cart_button:focus {
  background-color: #c40016 !important;
  color: #fff !important;
}

/* P24 legal pages + footer contact */
#dane-kontaktowe { scroll-margin-top: 96px; }
.vsf-legal {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.12);
}
.vsf-legal h4 { color: #fff !important; margin: 0 0 12px; font-size: 16px; }
.vsf-legal-links { margin-top: 14px; }
.visus-legal { max-width: 820px; color: #e8e8e8; line-height: 1.7; }
.visus-legal h2 { color: #fff; font-size: 1.25rem; margin: 1.6em 0 .55em; }
.visus-legal a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.visus-contact-card {
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  padding: 28px;
  background: #1a1a1a;
  margin: 20px 0;
}
.visus-contact-card h2 { margin-top: .2em; }
.visus-contact-card dl {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 10px 16px;
  margin: 18px 0;
}
.visus-contact-card dt { color: #aaa; margin: 0; }
.visus-contact-card dd { margin: 0; }
.visus-contact-kicker {
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 12px;
  color: #bbb;
  margin: 0 0 8px;
}
@media (max-width: 640px) {
  .visus-contact-card dl { grid-template-columns: 1fr; gap: 4px; }
  .visus-contact-card dt { margin-top: 10px; }
}

/* Full-width legal pages */
.page-id-35552 .wd-sidebar,
.page-id-35553 .wd-sidebar,
.page-id-35554 .wd-sidebar,
.page-id-35552 .sidebar-container,
.page-id-35553 .sidebar-container,
.page-id-35554 .sidebar-container {
  display: none !important;
}
.page-id-35552 .wd-content-area,
.page-id-35553 .wd-content-area,
.page-id-35554 .wd-content-area,
.page-id-35552 .site-content,
.page-id-35553 .site-content,
.page-id-35554 .site-content {
  width: 100% !important;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

/* Underline only the current Sklep item, not Dane kontaktowe (home hash link) */
.whb-header .wd-nav > li > a,
.wd-nav-mobile > li > a,
.mobile-nav .wd-nav > li > a {
  text-decoration: none !important;
}
#menu-item-35276.current-menu-item > a .nav-link-text::after,
#menu-item-35269.current-menu-item > a .nav-link-text::after,
#menu-item-35276.menu-item-home > a .nav-link-text::after,
#menu-item-35269.menu-item-home > a .nav-link-text::after {
  width: 0 !important;
}

/* Contact band spans the whole footer, not one column */
.visus-shop-footer,
.vsf-legal {
  width: 100% !important;
  max-width: none !important;
}
.vsf-legal {
  display: block !important;
  grid-column: 1 / -1 !important;
  clear: both;
}
.vsf-legal-row {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.1fr 1.1fr 1.2fr;
  gap: 12px 28px;
  width: 100%;
}
.vsf-legal-row a { color: #fff !important; }
@media (max-width: 1024px) {
  .vsf-legal-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .vsf-legal-row { grid-template-columns: 1fr; }
}

.visus-brand-hero { margin: 10px 0 28px; }
.visus-brand-hero img { max-width: 280px; width: 100%; height: auto; }
.wd-brands .wd-brand-item img { max-height: 64px; width: auto; object-fit: contain; }

/* Brand bar: dark strip, six logos across */
.elementor-element-43608bf,
.wd-brands.brands-widget {
  background-color: #131313 !important;
}
.wd-brands.brands-widget {
  position: relative;
  padding: 28px 0 32px;
}
.elementor-element-43608bf {
  border-top: 0 !important;
  border-bottom: 0 !important;
}
.wd-brands.brands-widget::before,
.wd-brands.brands-widget::after {
  content: "" !important;
  display: block !important;
  position: absolute;
  left: 50%;
  width: 100vw;
  height: 1px;
  transform: translateX(-50%) scaleY(0.5);
  background: rgba(255,255,255,.4);
  pointer-events: none;
}
.wd-brands.brands-widget::before { top: 0; }
.wd-brands.brands-widget::after { bottom: 0; }
@media (min-width: 1025px) {
  .single-product-content .product-images.wd-stretched {
    left: 0 !important;
    right: auto !important;
    width: min(100%, 920px) !important;
    min-width: 0 !important;
    max-width: 920px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  /* Main photo only. Desktop filmstrip thumbs are styled by VISUS PRODUCT GALLERY DESKTOP. */
  .single-product-content .wd-gallery-images .wd-carousel-item img {
    max-height: 520px !important;
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain;
  }
}
.wd-brands .wd-carousel.wd-grid {
  --wd-col-lg: 6 !important;
  --wd-col-md: 3 !important;
  --wd-col-sm: 2 !important;
}
.wd-brands .wd-carousel-item {
  width: calc(100% / 6) !important;
}
@media (max-width: 1024px) {
  .wd-brands .wd-carousel-item { width: calc(100% / 3) !important; }
}
@media (max-width: 640px) {
  .wd-brands .wd-carousel-item { width: calc(100% / 2) !important; }
}

/* Footer photo, same as galeriavisus.pl */
footer.wd-footer {
  border-top: 1px solid #262626 !important;
  background-color: #131313 !important;
  background-image: url("https://galeriavisus.pl/wp-content/uploads/2025/02/centrala_009-copy-1-1.jpg") !important;
  background-repeat: no-repeat !important;
  background-position: 50% 170px !important;
  background-size: cover !important;
  background-attachment: fixed !important;
}
@media (max-width: 999px) {
  footer.wd-footer {
    background-position: 50% 0 !important;
  }
}
footer.wd-footer .main-footer,
footer.wd-footer .footer-sidebar,
footer.wd-footer .footer-widget,
footer.wd-footer .visus-shop-footer {
  background: transparent !important;
}
footer.wd-footer .wd-copyrights {
  background-color: #131313 !important;
}

/* === VISUS LIGHT THEME START — experimental, delete this block to remove ===
   Light palette is the content band, edge to edge. Header, hero, brand
   strip, and footer stay dark. The sliding cart panel is light too.
*/
html.visus-light #main-content {
  color-scheme: light;
  --color-white: #fff;
  --color-gray-100: #f7f7f7;
  --color-gray-200: #f1f1f1;
  --color-gray-300: #bbb;
  --color-gray-400: #a5a5a5;
  --color-gray-500: #767676;
  --color-gray-600: #666;
  --color-gray-700: #555;
  --color-gray-800: #333;
  --color-gray-900: #242424;
  --color-black-rgb: 0, 0, 0;
  --bgcolor-white: #fff;
  --bgcolor-gray-100: #f7f7f7;
  --bgcolor-gray-200: #f7f7f7;
  --bgcolor-gray-300: #f1f1f1;
  --bgcolor-black-rgb: 0, 0, 0;
  --bgcolor-white-rgb: 255, 255, 255;
  --brdcolor-gray-200: rgba(0, 0, 0, .075);
  --brdcolor-gray-300: rgba(0, 0, 0, .105);
  --brdcolor-gray-400: rgba(0, 0, 0, .12);
  --brdcolor-gray-500: rgba(0, 0, 0, .2);
  --wd-text-color: #4a4a4a;
  --wd-title-color: #242424;
  --wd-widget-title-color: #333;
  --wd-entities-title-color: #333;
  --wd-entities-title-color-hover: rgba(51, 51, 51, .65);
  --wd-link-color: #333;
  --wd-link-color-hover: #242424;
  --wd-form-brd-color: rgba(0, 0, 0, .15);
  --wd-form-brd-color-focus: rgba(0, 0, 0, .35);
  --wd-form-placeholder-color: #767676;
  --wd-form-chevron: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNSIgaGVpZ2h0PSIyNSIgZmlsbD0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2U9IiNiYmIiPjxwYXRoIGQ9Ik02IDlsNiA2IDYtNiIvPjwvc3ZnPg==");
  --wd-main-bgcolor: #fff;
  --wd-navigation-color: 51, 51, 51;
  background-color: #fff !important;
  color: #4a4a4a;
  position: relative;
  z-index: 1;
}
html.visus-light .wd-page-content {
  background-color: #fff !important;
}
html.visus-light #main-content::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: #fff;
  pointer-events: none;
}
html.visus-light #main-content .wd-content-area,
html.visus-light #main-content .filters-area,
html.visus-light #main-content .products,
html.visus-light #main-content .wd-products {
  background-color: #fff;
  color: #4a4a4a;
}
html.visus-light .shop-loop-head,
html.visus-light .shop-loop-head .wd-shop-tools,
html.visus-light .shop-loop-head .woocommerce-ordering,
html.visus-light .shop-loop-head .wd-filter-buttons,
html.visus-light .shop-loop-head .wd-products-per-page,
html.visus-light .shop-loop-head .wd-products-shop-view {
  background-color: #fff !important;
  color: #242424 !important;
  --wd-text-color: #242424;
  --wd-title-color: #242424;
  --wd-link-color: #242424;
  --wd-link-color-hover: #000;
  --wd-form-brd-color: rgba(0, 0, 0, .2);
  --wd-form-brd-color-focus: rgba(0, 0, 0, .45);
  --wd-main-bgcolor: #fff;
  --color-gray-300: #555;
  --color-gray-500: #333;
  --color-gray-800: #333;
  --color-gray-900: #242424;
  --wd-form-chevron: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNSIgaGVpZ2h0PSIyNSIgZmlsbD0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2U9IiMzMzMiPjxwYXRoIGQ9Ik02IDlsNiA2IDYtNiIvPjwvc3ZnPg==");
}
html.visus-light .shop-loop-head::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -12px;
  bottom: -12px;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: #fff;
  pointer-events: none;
}
html.visus-light .shop-loop-head {
  position: relative;
}
html.visus-light .shop-loop-head a,
html.visus-light .shop-loop-head .wd-label,
html.visus-light .shop-loop-head select,
html.visus-light .shop-loop-head .per-page-title,
html.visus-light .shop-loop-head .wd-action-text,
html.visus-light .shop-loop-head .wd-action-icon,
html.visus-light .shop-loop-head .wd-action-icon:before,
html.visus-light .shop-loop-head button {
  color: #242424 !important;
}
html.visus-light #main-content .wd-entities-title,
html.visus-light #main-content .wd-entities-title a,
html.visus-light #main-content .product_title,
html.visus-light #main-content .entry-title {
  color: #242424 !important;
}
html.visus-light #main-content .visus-legal,
html.visus-light #main-content .visus-legal h2,
html.visus-light #main-content .visus-legal p,
html.visus-light #main-content .visus-legal li {
  color: #333 !important;
}
html.visus-light #main-content .visus-legal a {
  color: #242424 !important;
}
html.visus-light #main-content .visus-contact-card {
  background: #fff !important;
  border-color: rgba(0, 0, 0, .12) !important;
  color: #333 !important;
}
html.visus-light #main-content .visus-contact-card dt,
html.visus-light #main-content .visus-contact-card h2,
html.visus-light #main-content .visus-contact-kicker {
  color: #555 !important;
}
html.visus-light #main-content .visus-contact-card h2 {
  color: #242424 !important;
}
html.visus-light .cart-widget-side {
  color-scheme: light;
  background-color: #fff !important;
  color: #242424 !important;
  --color-white: #fff;
  --color-gray-100: #f7f7f7;
  --color-gray-200: #f1f1f1;
  --color-gray-300: #bbb;
  --color-gray-400: #a5a5a5;
  --color-gray-500: #767676;
  --color-gray-600: #666;
  --color-gray-700: #555;
  --color-gray-800: #333;
  --color-gray-900: #242424;
  --bgcolor-white: #fff;
  --bgcolor-gray-100: #f7f7f7;
  --bgcolor-gray-200: #f7f7f7;
  --bgcolor-gray-300: #f1f1f1;
  --bgcolor-white-rgb: 255, 255, 255;
  --bgcolor-black-rgb: 0, 0, 0;
  --brdcolor-gray-200: rgba(0, 0, 0, .075);
  --brdcolor-gray-300: rgba(0, 0, 0, .105);
  --wd-text-color: #4a4a4a;
  --wd-title-color: #242424;
  --wd-link-color: #333;
  --wd-link-color-hover: #242424;
  --wd-entities-title-color: #333;
  --wd-main-bgcolor: #fff;
}
html.visus-light .cart-widget-side .wd-heading .title,
html.visus-light .cart-widget-side a,
html.visus-light .cart-widget-side .woocommerce-Price-amount,
html.visus-light .cart-widget-side .wd-entities-title {
  color: #242424 !important;
}
.wd-nav > li.visus-theme-toggle-item,
.visus-theme-toggle-item {
  list-style: none;
  display: inline-flex !important;
  align-items: center !important;
  align-self: center !important;
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 0 !important;
}
.visus-theme-toggle {
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 36px !important;
  align-self: center !important;
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  max-width: 36px !important;
  max-height: 36px !important;
  aspect-ratio: 1 / 1 !important;
  margin: 0 0 0 8px !important;
  padding: 0 !important;
  border: 1px solid rgba(255, 255, 255, .7) !important;
  border-radius: 50% !important;
  background: transparent !important;
  color: #f5f5f5 !important;
  cursor: pointer;
  line-height: 36px !important;
  overflow: visible !important;
}
.visus-theme-toggle:hover,
.visus-theme-toggle:focus-visible {
  border-color: #fff !important;
  outline: none;
}
.visus-theme-toggle svg {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  flex: 0 0 18px !important;
  overflow: visible !important;
}
.visus-theme-toggle .visus-theme-toggle__sun {
  display: block !important;
}
.visus-theme-toggle .visus-theme-toggle__sun,
.visus-theme-toggle .visus-theme-toggle__sun * {
  fill: none !important;
  stroke: currentColor !important;
}
.visus-theme-toggle .visus-theme-toggle__moon {
  display: none !important;
}
.visus-theme-toggle .visus-theme-toggle__moon,
.visus-theme-toggle .visus-theme-toggle__moon * {
  fill: currentColor !important;
  stroke: none !important;
}
html.visus-light .visus-theme-toggle .visus-theme-toggle__sun {
  display: none !important;
}
html.visus-light .visus-theme-toggle .visus-theme-toggle__moon {
  display: block !important;
}
html.visus-light .wd-side-hidden.mobile-nav .visus-theme-toggle,
html.visus-light .wd-nav-mobile .visus-theme-toggle {
  color: #f5f5f5 !important;
  border-color: rgba(255, 255, 255, .7) !important;
}
.whb-mobile-right .visus-theme-toggle-slot {
  display: flex;
  align-items: center;
}
@media (min-width: 1025px) {
  .visus-theme-toggle-slot {
    display: none !important;
  }
}
/* === VISUS LIGHT THEME END === */

/* === VISUS ICON FIXES START — delete this block to remove === */
html.visus-light .wd-wishlist-content .wd-social-icons .wd-social-icon,
html.visus-light .wd-wishlist-content .wd-social-icons .wd-icon,
html.visus-light .wd-wishlist-content .wd-social-icons .wd-icon:before,
html.visus-light .wd-wishlist-content .share-title,
html.visus-light .wd-wishlist-content .wd-label {
  color: #242424 !important;
}
html.visus-light .wd-wishlist-content .wd-social-icons svg,
html.visus-light .wd-wishlist-content .wd-social-icons svg * {
  fill: #242424 !important;
  stroke: #242424 !important;
}
.wd-product.wd-hover-icons .wd-buttons {
  padding-left: 0 !important;
}
@media (max-width: 1024px) {
  .wd-product.wd-hover-icons .wd-buttons {
    border-top-left-radius: 35px !important;
    border-bottom-left-radius: 35px !important;
  }
  .wd-product.wd-hover-icons .wd-add-btn > a {
    border-top-left-radius: 35px !important;
    border-bottom-left-radius: 35px !important;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
  }
  .wd-product.wd-hover-icons .wd-wishlist-btn > a {
    border-top-right-radius: 35px !important;
    border-bottom-right-radius: 35px !important;
  }
}
/* === VISUS ICON FIXES END === */

/* Product loop cards: 5px corners on the image frame and the card surface. */
.wd-product,
.product-wrapper,
.product-element-top,
.product-image-link,
.wd-product .product-element-top img {
  border-radius: 5px;
}

/* Product delivery tab: keep the InPost artwork itself, without a white frame. */
.single-product .woocommerce-tabs .visus-dostawa img {
  width: min(100%, 190px) !important;
  height: auto !important;
  max-width: 190px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 5px !important;
  background: transparent !important;
  box-shadow: none !important;
}

html.visus-light .single-product .woocommerce-tabs .visus-dostawa,
html.visus-light .single-product .woocommerce-tabs .visus-dostawa h3,
html.visus-light .single-product .woocommerce-tabs .visus-dostawa p,
html.visus-light .single-product .woocommerce-tabs .visus-dostawa li,
html.visus-light .single-product .woocommerce-tabs .visus-dostawa strong {
  color: #242424 !important;
}

@media (max-width: 768.98px) {
  /* WoodMart's mobile icon mode hides the sort label; show a usable select. */
  .shop-loop-head .woocommerce-ordering.wd-ordering-mb-icon {
    flex: 1 1 0 !important;
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    justify-content: flex-start !important;
  }
  .shop-loop-head .woocommerce-ordering.wd-ordering-mb-icon select {
    position: static !important;
    inset: auto !important;
    width: 100% !important;
    height: 40px !important;
    padding: 0 24px 0 10px !important;
    border: 1px solid currentColor !important;
    border-radius: 5px !important;
    background: transparent !important;
    color: inherit !important;
    font-size: 14px !important;
    text-overflow: ellipsis;
    appearance: auto !important;
  }
  .shop-loop-head .woocommerce-ordering.wd-ordering-mb-icon::after {
    display: none !important;
  }
  .shop-loop-head .wd-filter-buttons {
    flex: 0 0 auto;
  }
}

/* Keep transparent secondary product photos on the same surface as the shop. */
.wd-product .wd-product-img-hover {
  background-color: var(--wd-main-bgcolor) !important;
}

/* The 404 template uses an overlapping header without the shop page title. */
html.visus-light body.error404 .whb-main-header,
html.visus-light body.error404 .whb-general-header {
  background-color: #fff !important;
}
html.visus-light body.error404 .whb-general-header .wd-nav > li > a,
html.visus-light body.error404 .whb-general-header .wd-tools-element > a,
html.visus-light body.error404 .whb-general-header .visus-theme-toggle {
  color: #242424 !important;
}
html.visus-light body.error404 .whb-general-header .visus-theme-toggle {
  border-color: rgba(0, 0, 0, .3) !important;
}
body.error404 .wd-page-content {
  padding-top: 96px;
}

/* The light 404 header needs the dark-lettered shop logo. */
html.visus-light body.error404 .wd-logo img {
  content: url('https://sklep.galeriavisus.pl/wp-content/uploads/2026/09/new_logo-1_shop_gray.png') !important;
}

/* Complianz follows the storefront's light theme; dark styling stays intact. */
html.visus-light .cmplz-cookiebanner {
  background: #fff !important;
  border-color: #dedede !important;
  color: #303030 !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .16) !important;
}
html.visus-light .cmplz-cookiebanner .cmplz-title,
html.visus-light .cmplz-cookiebanner .cmplz-message,
html.visus-light .cmplz-cookiebanner .cmplz-close,
html.visus-light .cmplz-cookiebanner .cmplz-category-header,
html.visus-light .cmplz-cookiebanner .cmplz-category-toggle,
html.visus-light .cmplz-cookiebanner .cmplz-description {
  color: #303030 !important;
}
html.visus-light .cmplz-cookiebanner .cmplz-divider,
html.visus-light .cmplz-cookiebanner .cmplz-category {
  border-color: #e3e3e3 !important;
}
html.visus-light .cmplz-cookiebanner .cmplz-btn.cmplz-deny,
html.visus-light .cmplz-cookiebanner .cmplz-btn.cmplz-view-preferences,
html.visus-light .cmplz-cookiebanner .cmplz-btn.cmplz-save-preferences {
  background: #f5f5f5 !important;
  border-color: #d8d8d8 !important;
  color: #242424 !important;
}
html.visus-light .cmplz-cookiebanner .cmplz-links a {
  color: #075b9c !important;
}

/* Use the current, locally hosted cookie illustration for each palette. */
.cmplz-cookiebanner .cmplz-message img[src*="gdpr"] {
  content: url('https://sklep.galeriavisus.pl/wp-content/uploads/2026/09/gdpr.png') !important;
  width: 120px;
  height: 120px;
  object-fit: contain;
}
html.visus-light .cmplz-cookiebanner .cmplz-message img[src*="gdpr"] {
  content: url('https://sklep.galeriavisus.pl/wp-content/uploads/2026/09/gdpr_dark.png') !important;
}

body.error404 .visus-404-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 28px;
  border-radius: 5px;
  background: #e2001a;
  color: #fff !important;
  font-weight: 600;
  text-decoration: none;
}
body.error404 .visus-404-back:hover,
body.error404 .visus-404-back:focus-visible {
  background: #c40016;
  color: #fff !important;
}

html.visus-light .cmplz-cookiebanner .cmplz-message p {
  color: #303030 !important;
}

/* Stronger contrast for the light cookie notice. */
html.visus-light .cmplz-cookiebanner .cmplz-message p {
  color: #1a1a1a !important;
}
html.visus-light .cmplz-cookiebanner .cmplz-btn.cmplz-deny,
html.visus-light .cmplz-cookiebanner .cmplz-btn.cmplz-view-preferences,
html.visus-light .cmplz-cookiebanner .cmplz-btn.cmplz-save-preferences {
  background: #505050 !important;
  border-color: #505050 !important;
  color: #fff !important;
}
html.visus-light .cmplz-cookiebanner .cmplz-btn.cmplz-deny:hover,
html.visus-light .cmplz-cookiebanner .cmplz-btn.cmplz-view-preferences:hover,
html.visus-light .cmplz-cookiebanner .cmplz-btn.cmplz-save-preferences:hover,
html.visus-light .cmplz-cookiebanner .cmplz-btn.cmplz-deny:focus-visible,
html.visus-light .cmplz-cookiebanner .cmplz-btn.cmplz-view-preferences:focus-visible,
html.visus-light .cmplz-cookiebanner .cmplz-btn.cmplz-save-preferences:focus-visible {
  background: #333 !important;
  border-color: #333 !important;
  color: #fff !important;
}

/* Match the shop footer's typography and spacing to the main Visus site. */
footer.wd-footer .footer-sidebar { padding: 55px 0 30px !important; }
footer.wd-footer .visus-shop-footer { color: #acacac; font-size: 16px; line-height: 1.7; }
footer.wd-footer .vsf-col h4 { margin: 0 0 20px !important; color: #fff !important; font-size: 24px !important; font-weight: 700 !important; line-height: 30px !important; }
footer.wd-footer .vsf-col p { margin: 0 0 30px !important; color: #acacac !important; font-size: 16px !important; line-height: 32px !important; }
footer.wd-footer .vsf-col p.vsf-tagline { margin: 0 0 20px !important; color: #acacac !important; font-size: 18px !important; font-weight: 200 !important; line-height: 22.32px !important; }
footer.wd-footer .vsf-col p.vsf-company-ids { color: #acacac !important; font-size: 16px !important; line-height: 32px !important; }
footer.wd-footer .wd-copyrights, footer.wd-footer .wd-copyrights p { color: #acacac !important; font-size: 14px !important; line-height: 23.8px !important; }
footer.wd-footer .vsf-col a, footer.wd-footer .wd-copyrights a { color: #e2001a !important; }
footer.wd-footer .vsf-col a:hover, footer.wd-footer .vsf-col a:focus-visible, footer.wd-footer .wd-copyrights a:hover, footer.wd-footer .wd-copyrights a:focus-visible { color: #ff4054 !important; }
/* Use the shop's red accent in the consent notice. */
.cmplz-cookiebanner .cmplz-btn.cmplz-accept { background: #e2001a !important; border-color: #e2001a !important; color: #fff !important; }
.cmplz-cookiebanner .cmplz-btn.cmplz-accept:hover, .cmplz-cookiebanner .cmplz-btn.cmplz-accept:focus-visible { background: #c40016 !important; border-color: #c40016 !important; }
.cmplz-cookiebanner .cmplz-links a, html.visus-light .cmplz-cookiebanner .cmplz-links a { color: #e2001a !important; }
.cmplz-cookiebanner .cmplz-links a:hover, .cmplz-cookiebanner .cmplz-links a:focus-visible, html.visus-light .cmplz-cookiebanner .cmplz-links a:hover, html.visus-light .cmplz-cookiebanner .cmplz-links a:focus-visible { color: #c40016 !important; }

/* Footer logo: 60% larger than the previous 140px size. */
footer.wd-footer .vsf-logo img { width: 224px !important; max-width: 100% !important; height: auto !important; }

/* Allow the footer logo artwork to grow with its width. */
footer.wd-footer .vsf-logo img { max-height: none !important; object-fit: contain !important; }

/* Remove the empty paragraph inserted between the footer logo and tagline. */
footer.wd-footer .vsf-brand > p:empty { display: none !important; }

/* Align the footer logo top edge with the other column headings. */
footer.wd-footer .vsf-logo br { display: none !important; }

footer.wd-footer .vsf-col p.vsf-tagline { margin-top: 8px !important; }

/* Fine-tune the footer brand alignment. */
footer.wd-footer .vsf-logo img { position: relative; top: 6px; }
footer.wd-footer .vsf-col p.vsf-tagline { margin-top: 28px !important; }

/* Keep the eye drops category before accessories, with a two-line label. */
.wd-nav-product-cat > .cat-item-90 { order: 1; }
.wd-nav-product-cat > .cat-item-27 { order: 2; }
.wd-nav-product-cat > .cat-item-90 .nav-link-text { width: 63px; margin-inline: auto; text-align: center; }

/* Give every desktop category an equal column and consistent icon-to-label spacing. */
@media (min-width: 1025px) {
  .wd-nav-product-cat { display: grid !important; grid-template-columns: repeat(7, minmax(0, 1fr)); column-gap: 12px !important; row-gap: 0 !important; align-items: stretch; text-align: left; }
  .wd-nav-product-cat > li { width: auto !important; min-width: 0; }
  .wd-nav-product-cat > .cat-item-78 { order: 1; }
  .wd-nav-product-cat > .cat-item-79 { order: 2; }
  .wd-nav-product-cat > .cat-item-80 { order: 3; }
  .wd-nav-product-cat > .cat-item-90 { order: 4; }
  .wd-nav-product-cat > .cat-item-27 { order: 5; }
  .wd-nav-product-cat > .cat-item-92 { order: 6; }
  .wd-nav-product-cat > .cat-item-94 { order: 7; }
  .wd-nav-product-cat .category-nav-link { display: flex; align-items: center; gap: 10px; width: 100%; height: 100%; padding: 5px 0; text-align: left; }
  .wd-nav-product-cat .wd-nav-img { width: 36px !important; height: 36px !important; flex: 0 0 36px; object-fit: contain; margin: 0 !important; }
  .wd-nav-product-cat .nav-link-summary { flex: 1 1 auto; min-width: 0; text-align: left; }
  .wd-nav-product-cat .nav-link-text { width: auto !important; margin: 0 !important; text-align: left !important; line-height: 1.2; }
  .wd-nav-product-cat .nav-link-count { text-align: left; }
}

@media (min-width: 1025px) { .wd-nav-product-cat .nav-link-text { overflow-wrap: anywhere; } }

/* Keep the full sunglasses category name on two lines. */
@media (min-width: 1025px) { .wd-nav-product-cat { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) repeat(5, minmax(0, 1fr)); } }

@media (min-width: 1025px) { .wd-nav-product-cat { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) repeat(5, minmax(0, 1fr)); } }

@media (min-width: 1025px) { .wd-nav-product-cat .nav-link-text { max-width: none !important; } }

/* Six visible categories after combining eye drops and eyelid care. */
@media (min-width: 1025px) {
  .wd-nav-product-cat { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) repeat(4, minmax(0, 1fr)); }
  .wd-nav-product-cat > .cat-item-90 .nav-link-text { max-width: 74px !important; }
}

@media (min-width: 1025px) { .wd-nav-product-cat > .cat-item-90 .nav-link-text { max-width: 66px !important; } }

/* Product tab order: product information, instructions, reviews, delivery. */
.woocommerce-tabs ul.tabs li.wd_custom_tab_tab { order: 1; }
.woocommerce-tabs ul.tabs li.reviews_tab { order: 2; }
.woocommerce-tabs ul.tabs li[id$="_custom"] { order: 3; }

/* Keep the eye care category on one line and widen the supplement icon. */
@media (min-width: 1025px) {
  .wd-nav-product-cat > .cat-item-90 .nav-link-text { max-width: none !important; white-space: nowrap; }
  .wd-nav-product-cat > .cat-item-94 .wd-nav-img { width: 41.4px !important; height: 36px !important; flex: 0 0 41.4px !important; object-fit: fill; }
}

/* Place contact-lens solutions directly after contact lenses on every breakpoint. */
.woocommerce-shop .wd-nav-product-cat > .cat-item-119 { order: 4 !important; }
.woocommerce-shop .wd-nav-product-cat > .cat-item-90 { order: 5 !important; }

/* Keep quick-view gallery arrows legible on the light popup surface. */
html.visus-light .product-quick-view .wd-gallery-images .wd-nav-arrows {
  --wd-arrow-color: #333 !important;
  --wd-arrow-color-hover: #242424 !important;
  --wd-arrow-color-dis: #666 !important;
}
