/*
Theme Name: Breakdance Zero Theme
Theme URI: https://breakdance.com/zero-theme // todo
Author: Breakdance Builder
Author URI: https://breakdance.com/
Description: Entirely disables the WordPress theme system and lets you design every part of your site with Breakdance, while keeping other theme functionality like templates overrides and functions.php.
Version: 1.0.0
Tested up to: 5.9
Requires PHP: 7
License: GNU General Public License v2 or later // todo no idea about this
License URI: LICENSE
Text Domain: breakdance

Requires Breakdance to be installed.
/*--------------------------------------------------------------*/

.wpgb-facet>fieldset:last-child {
    margin-bottom: 20px !important;
}



/* === CFVSW Swatch Brand Overrides === */

.cfvsw_variations_form .cfvsw-swatches-container,
.cfvsw-product-page .cfvsw-swatches-container {
  gap: 8px !important;
}

.cfvsw_variations_form .cfvsw-swatches-option,
.cfvsw-product-page .cfvsw-swatches-option {
  padding: 8px 8px !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  letter-spacing: 0.01em !important;
  color: var(--hcl-brand-12) !important;
  background-color: var(--hcl-brand-3) !important;
  border: 1.5px solid var(--hcl-brand-8) !important;
  border-radius: 6px !important;
  /* min-width: 52px !important;
  min-height: 36px !important; */
  transition: all 180ms ease !important;
  box-sizing: border-box !important;
}

.cfvsw_variations_form .cfvsw-swatches-option:not(.cfvsw-swatches-disabled):hover,
.cfvsw-product-page .cfvsw-swatches-option:not(.cfvsw-swatches-disabled):hover {
  background-color: var(--hcl-brand-5) !important;
  border-color: var(--hcl-brand-11) !important;
  box-shadow: 0 0 0 1px var(--hcl-brand-11) !important;
}

.cfvsw_variations_form .cfvsw-selected-swatch,
.cfvsw-product-page .cfvsw-selected-swatch,
.cfvsw_variations_form .cfvsw-selected-swatch:not(.cfvsw-label-option),
.cfvsw-product-page .cfvsw-selected-swatch:not(.cfvsw-label-option) {
  background-color: var(--hcl-brand-6) !important;
  border-color: var(--hcl-brand-11) !important;
  box-shadow: 0 0 0 1px var(--hcl-brand-11) !important;
  color: var(--hcl-brand-12) !important;
}

/* === Disabled state === */
.cfvsw-swatches-blur-cross-disable.cfvsw-swatches-disabled {
  cursor: not-allowed !important;
  border-color: var(--hcl-brand-7) !important;
  background-color: var(--hcl-brand-3) !important;
  color: var(--hcl-brand-9) !important;
  opacity: 0.75 !important;
  overflow: visible !important;
}

.cfvsw-swatches-blur-cross-disable.cfvsw-swatches-disabled:hover {
  opacity: 0.85 !important;
}

/* Diagonal strikethrough */
.cfvsw-swatches-blur-cross-disable.cfvsw-swatches-disabled::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  background: transparent !important;
  background-image: linear-gradient(
    to top right,
    transparent calc(50% - 0.8px),
    var(--hcl-brand-10) calc(50% - 0.8px),
    var(--hcl-brand-10) calc(50% + 0.8px),
    transparent calc(50% + 0.8px)
  ) !important;
  border-radius: 6px !important;
  z-index: 1 !important;
}

/* Tooltip — hidden by default */
.cfvsw-swatches-blur-cross-disable.cfvsw-swatches-disabled::after {
  content: "Nincs raktáron" !important;
  position: absolute !important;
  bottom: calc(100% + 8px) !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  background-color: var(--hcl-brand-12) !important;
  color: var(--hcl-brand-3) !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  padding: 5px 10px !important;
  border-radius: 4px !important;
  white-space: nowrap !important;
  z-index: 10 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 180ms ease !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
  line-height: 1.3 !important;
}

/* Show tooltip on hover */
.cfvsw-swatches-blur-cross-disable.cfvsw-swatches-disabled:hover::after {
  opacity: 1 !important;
}

/* === Shop Loop Tweaks === */

/* === Shop Loop Tweaks === */

/* Hide Clear button */
.cfvsw_variations_form .reset_variations {
  display: none !important;
}

/* Qty inside footer — hidden by default for variable */
/* .product-type-variable .bde-woo-product-footer .quantity {
  display: none !important;
}
.product-type-variable.pkdev-variation-active .bde-woo-product-footer .quantity {
  display: inline-flex !important;
} */

/* Qty inside footer — hidden by default, slides in */
/* Hide qty on variable products everywhere, not just in footer */
.woocommerce-shop .product-type-variable .quantity {
    max-width: 0 !important;
    opacity: 0 !important;
    overflow: hidden !important;
    transition: max-width 250ms ease, opacity 200ms ease, margin 250ms ease !important;
    margin-right: 0 !important;
}
.product-type-variable.pkdev-variation-active .quantity {
    max-width: 90px !important;
    opacity: 1 !important;
    /* margin-right: 8px !important; */
}

/* Footer alignment */
.product-type-variable .bde-woo-product-footer {
  align-items: center !important;
}

.bde-woo-product-footer{
  justify-content: center !important;
}

.bde-woo-product-footer a.button{
  width: auto !important;
  border-radius: 5px !important;
}

/* "Added to cart" link → checkmark linking to checkout */
.added_to_cart {
  font-size: 0 !important;
  min-width: 20px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  border-radius: 5px !important;
  max-width:2.2rem !important;
}


.added_to_cart::after {
  content: "" !important;
  display: inline-block !important;
  width: 20px !important;
  height: 20px !important;
  margin-left: 0 !important;          /* centered by flex already */
  background-color: var(--hcl-brand-11) !important;
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22black%22%3E%3Cpath%20d%3D%22M9%2016.17%204.83%2012l-1.42%201.41L9%2019%2021%207l-1.41-1.41z%22%2F%3E%3C%2Fsvg%3E") center / contain no-repeat !important;
          mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22black%22%3E%3Cpath%20d%3D%22M9%2016.17%204.83%2012l-1.42%201.41L9%2019%2021%207l-1.41-1.41z%22%2F%3E%3C%2Fsvg%3E") center / contain no-repeat !important;
}


.added_to_cart:hover::after {
  background-color: #fff !important;
}