/**
 * Custom stylesheet for Sigma Trukit webshop integration
 * 
 * Purpose: Override conflicting styles from Sigma's scraped CSS (Bulma framework)
 * that bleed into the Mascus webshop content area.
 * 
 * Sigma's site uses Bulma CSS framework which defines global styles for common
 * class names (.content, .column, .columns) and elements (body, ol, li, h1-h6, p).
 * These conflict with the webshop's styled-components when addHtmlTemplateStyles is enabled.
 */

/* ==========================================================================
   Cookie Consent - Hide CookieHub popup from scraped site
   Reason: Their cookie consent is for sigmatrukit.fi domain only.
   Our webshop should have its own consent mechanism if needed.
   ========================================================================== */
#ch2-dialog, #ch2-container, .ch2-dialog, [id^="ch2-"] {
  display: none !important;
}

/* ==========================================================================
   Body Fixes
   - padding-top: Compensate for Sigma's fixed/sticky navbar (66px height)
   - display: block: Sigma's CSS sets body to display:flex which breaks the
     webshop's grid layout
   ========================================================================== */
body {
  padding-top: 66px !important;
  display: block !important;
}

/* ==========================================================================
   Hide page-specific elements from the scraped Sigma homepage
   (hero video section that gets scraped but is irrelevant to our webshop)
   ========================================================================== */
.block-pagehero {
  display: none;
}

/* ==========================================================================
   Webshop Content Protection
   Sigma's Bulma CSS defines .content h1-h6, .content p, .content ul/ol etc.
   with custom font-sizes, margins, and list-styles. These override the
   webshop's styled-components. Using `all: revert` resets them to browser defaults.
   ========================================================================== */
#__next .content,
#__next .content h1,
#__next .content h2,
#__next .content h3,
#__next .content h4,
#__next .content h5,
#__next .content h6,
#__next .content p,
#__next .content ul,
#__next .content ol,
#__next .content li,
#__next .content blockquote {
  all: revert;
}

/* ==========================================================================
   Column Layout Protection
   Sigma's .column class sets display:block, flex-basis:0, flex-grow:1, padding:2rem
   which breaks the webshop's CSS grid layout. Only revert inside .content area
   to avoid breaking the footer's Bulma column layout.
   ========================================================================== */
#__next .webshopMainContent > .content .column {
  display: revert !important;
  flex-basis: revert !important;
  flex-grow: revert !important;
  flex-shrink: revert !important;
  padding: revert !important;
}

/* ==========================================================================
   Footer Column Layout
   Restore Bulma's flex layout for footer sections (newsletter, partners, widgets).
   These need Bulma's .column/.columns to display correctly side-by-side.
   ========================================================================== */
.content-info .column,
.logoribbon .column,
.newsletter-subscribe-wrapper .column {
  display: block;
  flex-basis: 0;
  flex-grow: 1;
  flex-shrink: 1;
  padding: 2rem;
}

.content-info .columns,
.logoribbon .columns,
.newsletter-subscribe-wrapper .columns {
  display: flex;
  flex-wrap: wrap;
  margin-left: -2rem;
  margin-right: -2rem;
  margin-top: -2rem;
}

.content-info .columns:last-child {
  margin-bottom: -2rem;
}

/* ==========================================================================
   Footer Section Spacing
   Restore spacing between footer sections (partners logos, widgets area)
   that gets lost when Sigma's CSS is partially overridden.
   ========================================================================== */
.partners-container {
  margin-top: 2rem;
  text-align: center;
}

.widgets-container {
  border-top: 1px solid #666;
  margin-top: 2rem;
  padding-top: 2rem;
  color: #fff;
  font-size: .9rem;
  display: flex;
  flex-flow: row nowrap;
}

/* ==========================================================================
   Breadcrumb Fix
   Sigma's .content ol { list-style: decimal; margin-left: 2em } turns the
   breadcrumb into a numbered list. Also .content li { display: block } stacks
   items vertically instead of horizontal row.
   ========================================================================== */
.breadcrumb-nav ol {
  list-style: none !important;
  margin-left: 0 !important;
  margin-top: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-wrap: wrap !important;
}

.breadcrumb-nav ol li {
  display: inline-flex !important;
  margin-top: 0 !important;
}

.breadcrumb-nav button {
  border: none !important;
  background: none !important;
  padding: 0 !important;
  cursor: pointer;
}

.breadcrumb-nav ol li.collapsed {
  display: none !important;
}

.breadcrumb-nav a {
  text-decoration: none !important;
  border-bottom: none !important;
}

/* ==========================================================================
   Latest Ads Carousel Fix
   Sigma's .content h5, .content p rules inflate text size inside the
   Latest Ads horizontal scroll cards, causing the container to overflow.
   Reset font properties only inside the scroll container (not the title).
   ========================================================================== */
.content .latestAds .react-horizontal-scrolling-menu--scroll-container * {
  font-size: initial !important;
  margin-top: initial !important;
  margin-bottom: initial !important;
  line-height: normal !important;
}
.content #search-facet-container  ul{
  margin-left:0;
  list-style:none !important;
}
.content #search-facet-container  a{
  border: none !important;
  
}