/**
 * TT Maskin brand overrides (Figma TT-Maskin palette).
 * Loaded only when HCP_BRAND_SLUG is tt-maskin (body.hcp-brand-tt-maskin).
 */

body.hcp-brand-tt-maskin {
  --tt-navy: #06224b;
  --tt-blue: #24529b;
  --tt-link: #5588d8;
  --tt-blue-hover: #1a3d73;
  --hcp-red: var(--tt-blue);
  --hcp-red-dark: var(--tt-blue-hover);
  --hcp-dark: var(--tt-navy);
  --hcp-page: var(--tt-navy);
  --e-global-color-accent: var(--tt-blue);
  --e-global-color-primary: var(--tt-navy);
  accent-color: var(--tt-blue);
}

body.hcp-brand-tt-maskin.elementor-kit-17,
body.hcp-brand-tt-maskin .elementor-kit-17 {
  --e-global-color-accent: var(--tt-blue);
  --e-global-color-primary: var(--tt-navy);
}

/* ----- Header shell ----- */
body.hcp-brand-tt-maskin .elementor-location-header {
  background-color: var(--tt-navy) !important;
}

body.hcp-brand-tt-maskin .elementor-location-header .e-con,
body.hcp-brand-tt-maskin .elementor-location-header .elementor-section,
body.hcp-brand-tt-maskin .elementor-112 .e-con {
  background-color: var(--tt-navy) !important;
}

body.hcp-brand-tt-maskin .elementor-112 .elementor-element.elementor-element-5dae86c {
  border-top: 2px solid var(--tt-blue) !important;
  --border-top-width: 2px;
}

/* Mega panel (desktop) stays medium blue, not navy */
body.hcp-brand-tt-maskin .elementor-location-header .e-n-menu-content,
body.hcp-brand-tt-maskin .elementor-location-header .e-n-menu-content .e-con,
body.hcp-brand-tt-maskin .elementor-location-header .e-n-menu-content .e-con.e-child {
  background-color: var(--tt-blue) !important;
}

body.hcp-brand-tt-maskin .elementor-location-header .e-n-menu-content .e-con.e-child:not(:first-child) {
  border-left: 2px solid var(--tt-link) !important;
}

/* Mega top-level active / hover (replaces HCP red plate) */
body.hcp-brand-tt-maskin .elementor-location-header .e-n-menu-heading .e-n-menu-item > .e-n-menu-title.e-current,
body.hcp-brand-tt-maskin .elementor-location-header .e-n-menu-heading .e-n-menu-item > .e-n-menu-title:hover {
  background-color: var(--tt-blue) !important;
  border-style: solid !important;
  border-width: 0 0 4px 0 !important;
  border-color: transparent transparent #ffffff transparent !important;
}

@media (max-width: 1024px) {
  body.hcp-brand-tt-maskin .elementor-location-header .e-n-menu[data-layout="dropdown"] .e-n-menu-wrapper,
  body.hcp-brand-tt-maskin .elementor-location-header .e-n-menu[data-layout="dropdown"] .e-n-menu-heading,
  body.hcp-brand-tt-maskin .elementor-location-header .e-n-menu[data-layout="dropdown"] .e-n-menu-item,
  body.hcp-brand-tt-maskin .elementor-location-header .e-n-menu[data-layout="dropdown"] .e-n-menu-content,
  body.hcp-brand-tt-maskin .elementor-location-header .e-n-menu[data-layout="dropdown"] .e-n-menu-title {
    background-color: var(--tt-navy) !important;
  }

  body.hcp-brand-tt-maskin .elementor-location-header .e-n-menu-heading .e-n-menu-item > .e-n-menu-title.e-current {
    background-color: var(--tt-blue) !important;
  }
}

/* ----- Search (closed = Figma underline) ----- */
body.hcp-brand-tt-maskin .search-products-ajax .search-products-input {
  color: var(--tt-link);
  border-bottom: 2px solid var(--tt-blue);
}

body.hcp-brand-tt-maskin .search-products-input::placeholder {
  color: var(--tt-link);
}

body.hcp-brand-tt-maskin .search-products-ajax::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%235588d8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z'/%3E%3C/svg%3E");
}

body.hcp-brand-tt-maskin .search-products-ajax:not(:focus-within):not(.is-open) .search-products-input:hover {
  background-color: transparent;
  color: var(--tt-link);
}

/* ----- Footer ----- */
body.hcp-brand-tt-maskin .elementor-location-footer,
body.hcp-brand-tt-maskin .elementor-location-footer .e-con,
body.hcp-brand-tt-maskin .elementor-206 .e-con {
  background-color: var(--tt-blue) !important;
}

body.hcp-brand-tt-maskin .elementor-location-footer .elementor-background-overlay {
  background-image: none !important;
  opacity: 0 !important;
}

/* Footer: hide HCP diagonal stripe graphic (Footer_BG.svg on acbfa8a) */
body.hcp-brand-tt-maskin .elementor-location-footer .elementor-element-acbfa8a,
body.hcp-brand-tt-maskin .elementor-206 .elementor-element-acbfa8a {
  display: none !important;
}

body.hcp-brand-tt-maskin .elementor-location-footer .elementor-element-acbfa8a:not(.elementor-motion-effects-element-type-background),
body.hcp-brand-tt-maskin .elementor-location-footer .elementor-element-acbfa8a > .elementor-motion-effects-container > .elementor-motion-effects-layer,
body.hcp-brand-tt-maskin .elementor-206 .elementor-element-acbfa8a:not(.elementor-motion-effects-element-type-background),
body.hcp-brand-tt-maskin .elementor-206 .elementor-element-acbfa8a > .elementor-motion-effects-container > .elementor-motion-effects-layer {
  background-image: none !important;
}

/* Subpage hero: hide stripe overlay (single-banner-bg.svg) */
body.hcp-brand-tt-maskin .elementor-element-3616d6b7::before,
body.hcp-brand-tt-maskin .elementor-element-3616d6b7 > .elementor-background-video-container::before,
body.hcp-brand-tt-maskin .elementor-element-3616d6b7 > .e-con-inner > .elementor-background-video-container::before,
body.hcp-brand-tt-maskin .elementor-element-3616d6b7 > .elementor-background-slideshow::before,
body.hcp-brand-tt-maskin .elementor-element-3616d6b7 > .e-con-inner > .elementor-background-slideshow::before,
body.hcp-brand-tt-maskin .elementor-element-3616d6b7 > .elementor-motion-effects-container > .elementor-motion-effects-layer::before {
  background-image: none !important;
  opacity: 0 !important;
}

/* Favorites badge */
body.hcp-brand-tt-maskin .elementor-location-header .hcp-favorites-count {
  background: var(--tt-blue);
}

/* ----- Primary CTAs (hardcoded HCP red in parent theme) ----- */
body.hcp-brand-tt-maskin .hcp-favorites-modal .hcp-favorites-modal__btn--primary,
body.hcp-brand-tt-maskin .hcp-favorites-modal a.hcp-favorites-modal__btn--primary {
  background: var(--tt-blue) !important;
  background-color: var(--tt-blue) !important;
  border: 2px solid var(--tt-blue) !important;
}

body.hcp-brand-tt-maskin .hcp-favorites-modal .hcp-favorites-modal__btn--primary:hover,
body.hcp-brand-tt-maskin .hcp-favorites-modal .hcp-favorites-modal__btn--primary:focus-visible,
body.hcp-brand-tt-maskin .hcp-favorites-modal a.hcp-favorites-modal__btn--primary:hover,
body.hcp-brand-tt-maskin .hcp-favorites-modal a.hcp-favorites-modal__btn--primary:focus-visible {
  background: var(--tt-blue-hover) !important;
  background-color: var(--tt-blue-hover) !important;
  border-color: var(--tt-blue-hover) !important;
}

body.hcp-brand-tt-maskin .woocommerce a.button.alt,
body.hcp-brand-tt-maskin .woocommerce button.button.alt,
body.hcp-brand-tt-maskin .woocommerce input.button.alt {
  background-color: var(--tt-blue) !important;
  border-color: var(--tt-blue) !important;
  color: #fafafa !important;
}

body.hcp-brand-tt-maskin .woocommerce a.button.alt:hover,
body.hcp-brand-tt-maskin .woocommerce button.button.alt:hover,
body.hcp-brand-tt-maskin .woocommerce input.button.alt:hover {
  background-color: var(--tt-blue-hover) !important;
  border-color: var(--tt-blue-hover) !important;
}

/* ----- Elementor buttons (Figma: outline + text/arrow links) ----- */

body.hcp-brand-tt-maskin a.elementor-button.elementor-button-link {
  background-color: transparent !important;
  color: #1d1d1b !important;
  fill: #1d1d1b !important;
}

/* Outlined CTAs (no icon): default border + TT hover fill */
body.hcp-brand-tt-maskin a.elementor-button.elementor-button-link:not(:has(.elementor-button-icon)) {
  border-color: #41413f !important;
  border-radius: 4px !important;
}

body.hcp-brand-tt-maskin a.elementor-button.elementor-button-link:not(:has(.elementor-button-icon)):hover,
body.hcp-brand-tt-maskin a.elementor-button.elementor-button-link:not(:has(.elementor-button-icon)):focus-visible {
  background-color: var(--tt-blue) !important;
  border-color: var(--tt-blue) !important;
  color: #fafafa !important;
  fill: #fafafa !important;
}

/* Text + arrow links: no filled hover plate (matches homepage Figma) */
body.hcp-brand-tt-maskin a.elementor-button.elementor-button-link:has(.elementor-button-icon):hover,
body.hcp-brand-tt-maskin a.elementor-button.elementor-button-link:has(.elementor-button-icon):focus-visible {
  background-color: transparent !important;
  border-color: transparent !important;
  color: inherit !important;
  fill: currentColor !important;
  opacity: 0.88;
}

/* Solid Elementor buttons (not link style) */
body.hcp-brand-tt-maskin a.elementor-button:not(.elementor-button-link) {
  background-color: var(--tt-blue) !important;
  border-color: var(--tt-blue) !important;
  color: #fafafa !important;
  fill: #fafafa !important;
}

body.hcp-brand-tt-maskin a.elementor-button:not(.elementor-button-link):hover,
body.hcp-brand-tt-maskin a.elementor-button:not(.elementor-button-link):focus-visible {
  background-color: var(--tt-blue-hover) !important;
  border-color: var(--tt-blue-hover) !important;
}

/* Beat child theme homepage rule that still falls back to HCP red */
body.hcp-brand-tt-maskin .elementor-43 .elementor-element.elementor-element-7e5e0e6 .elementor-button:hover,
body.hcp-brand-tt-maskin .elementor-43 .elementor-element.elementor-element-7e5e0e6 .elementor-button:focus,
body.hcp-brand-tt-maskin .elementor-43 .elementor-element.elementor-element-7e5e0e6 .elementor-button:focus-visible {
  background-color: var(--tt-blue) !important;
  border-color: var(--tt-blue) !important;
  color: #fafafa !important;
}

body.hcp-brand-tt-maskin .display-all-child-category-links .elementor-button.product-child-category-link:is(:hover, :focus, :focus-visible) {
  background-color: var(--tt-blue-hover) !important;
  border-color: var(--tt-blue-hover) !important;
}

body.hcp-brand-tt-maskin .elementor-widget-text-editor a:not(.elementor-button),
body.hcp-brand-tt-maskin .entry-content a:not(.elementor-button):not(.button) {
  color: var(--tt-blue);
}

body.hcp-brand-tt-maskin .elementor-location-footer a,
body.hcp-brand-tt-maskin .elementor-location-header a {
  color: #fafafa;
}

/* Kampanjer list (separate stylesheet) */
body.hcp-brand-tt-maskin .hcp-kampanje-list__badge,
body.hcp-brand-tt-maskin .hcp-kampanje-card__ribbon {
  background: var(--tt-blue) !important;
}

body.hcp-brand-tt-maskin .hcp-kampanje-card__link,
body.hcp-brand-tt-maskin .hcp-kampanje-list a.hcp-kampanje-card__title {
  color: var(--tt-blue) !important;
}