/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */

.grecaptcha-badge {
  display: none !important;
}

.custom-yith-filters h4 {
  font-size: 16px;
  color: #101010;
  padding-top: 32px;
  padding-bottom: 32px;
  margin: 0px;
  border-top: 1px solid #434343;
}

.custom-yith-filters .yith-wcan-filter:first-of-type h4 {
  border-top: none;
}

.custom-yith-filters li label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  margin-bottom: 12px;
}

.custom-yith-filters ul a {
  line-height: 24px;
  font-family: "Montserrat", Sans-Serif;
}

.custom-yith-filters ul input {
  width: 16px;
  height: 16px;
}

/* reset native checkbox */
.custom-yith-filters ul input[type="checkbox"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;

  width: 16px;
  height: 16px;
  border: 1px solid #434343;
  border-radius: 3px;
  background: transparent;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}

/* checked = solid red, no tick */
.custom-yith-filters ul input[type="checkbox"]:checked {
  background-color: #C30000;
  border-color: #C30000;
}

/* optional hover polish */
.custom-yith-filters ul input[type="checkbox"]:hover {
  box-shadow: 0 0 0 2px rgba(204, 0, 0, 0.15);
}

.custom-yith-filters .yith-wcan-filter {
  margin-bottom: 0px;
}

.custom-yith-filters .filter-content {
  padding-bottom: 32px;
}

.custom-yith-filters .filters-modal div.yith-wcan-filter {
  padding: 0px;
  margin: 0px;
  border: none;
}

.custom-yith-filters .filters-modal .apply-filters.main-modal-button {
  color: white;
}

.yith-wcan-filters-opener {
  color: #C30000;
  border-color: #C30000;
}

.yith-wcan-filters-opener:hover,
.yith-wcan-filters-opener:focus,
.yith-wcan-filters-opener:active {
  color: #FFFFFF;
  border-color: #C30000;
  background-color: #C30000;
}

.yith-wcan-filters-opener:hover .filter-icon,
.yith-wcan-filters-opener:focus .filter-icon,
.yith-wcan-filters-opener:active .filter-icon {
  filter: brightness(0) invert(1);
}


.custom-yith-filters .yith-wcan-filter .yith-wcan-dropdown {
  background-color: #ECECEC;
  border: 0;
  border-radius: 999px;
  /* pill */
  padding: 12px 44px 12px 16px;

  font-family: "Montserrat", sans-serif;
  font-weight: bold;

  outline: none;
  box-shadow: none;
  cursor: pointer;
}

.my-yith-wcan-selected-pills {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.my-yith-wcan-selected-pills .my-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid #ddd;
  border-radius: 999px;
  background: #101010;
  font-size: 16px;
  font-weight: bold;
  font-family: "Montserrat", sans-serif;
  color: white;
}

.my-yith-wcan-selected-pills .my-pill__remove {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  padding: 0;
  color: white;
}

div.elementor-widget-yith_wcan_mobile_modal_opener[data-element_type="widget"][data-widget_type="yith_wcan_mobile_modal_opener.default"] button.yith-wcan-filters-opener i.filter-icon {
  background-image: url(/wp-content/plugins/yith-woocommerce-ajax-product-filter-premium-mod/assets/images/filters.svg) !important;
}

.yith-wcan-filters .filters-container .apply-filters {
  border-color: #C30000;
  color: #C30000;
}

.yith-wcan-filters .filters-container .apply-filters:hover {
  background-color: #C30000;
  color: white;
}

.yith-wcan-filters .yith-wcan-filter .yith-wcan-dropdown.open {
  box-shadow: none;
}

.yith-wcan-filters .yith-wcan-filter .yith-wcan-dropdown .dropdown-wrapper {
  border-color: #434343;
  box-shadow: none;
}

.custom-yith-filters div.yith-wcan-filters:not(.filters-modal) {
  width: min(80vw, 360px);
  padding-right: 60px;
}

@media (max-width: 1250px) {
  .custom-yith-filters div.yith-wcan-filters:not(.filters-modal) {
    width: min(80vw, 230px);
    padding-right: 30px;
  }
}

.custom-yith-filters input[type="search"]:focus-visible {
  outline: #C30000 auto 1px;
}

/* YITH mobile modal: search filter always expanded (no accordion) */
.yith-wcan-filters.filters-modal .yith-wcan-filter.filter-search-always-open .filter-content {
  display: block !important;
}

.yith-wcan-filters.filters-modal .yith-wcan-filter.filter-search-always-open .filter-title {
  cursor: default;
  pointer-events: none;
}

.yith-wcan-filters.filters-modal .yith-wcan-filter.filter-search-always-open .filter-title:after {
  display: none;
}