/* Nova Plet - filtry a kontaktni formular */

/* =========================================================
   1. FILTRY KOREJSKE KOSMETIKY
   ========================================================= */

/* Nadpisy skupin */
body.np-cosmetics-listing #filters-wrapper .filter-section-parametric > h4,
body.np-cosmetics-listing #filters-wrapper #manufacturer-filter > h4 {
  margin: 0 0 11px !important;
  padding: 0 0 9px !important;
  border-bottom: 2px solid #cba69d !important;
  color: #3f2d26 !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
  letter-spacing: 1.1px !important;
  text-align: left !important;
  text-transform: uppercase !important;
}

/* Plynule zvyrazneni moznosti */
body.np-cosmetics-listing #filters-wrapper
.filter-section-parametric fieldset > div:not(.advanced-filters-wrapper),
body.np-cosmetics-listing #filters-wrapper
#manufacturer-filter fieldset > div {
  border-radius: 7px;
  transition: background-color 0.18s ease;
}

body.np-cosmetics-listing #filters-wrapper
.filter-section-parametric label.filter-label,
body.np-cosmetics-listing #filters-wrapper
#manufacturer-filter label.filter-label {
  transition: color 0.18s ease, transform 0.18s ease;
}

@media (hover: hover) and (pointer: fine) {
  body.np-cosmetics-listing #filters-wrapper
  .filter-section-parametric fieldset > div:not(.advanced-filters-wrapper):hover,
  body.np-cosmetics-listing #filters-wrapper
  #manufacturer-filter fieldset > div:hover {
    background-color: rgba(159, 117, 107, 0.13) !important;
  }

  body.np-cosmetics-listing #filters-wrapper
  .filter-section-parametric fieldset > div:not(.advanced-filters-wrapper):hover
  label.filter-label,
  body.np-cosmetics-listing #filters-wrapper
  #manufacturer-filter fieldset > div:hover label.filter-label {
    color: #7b4f46 !important;
    transform: translateX(3px);
  }
}

/* Vlastni checkboxy pouze v desktopovem filtru */
@media (min-width: 992px) {
  body.np-cosmetics-listing #filters-wrapper
  fieldset > div:not(.advanced-filters-wrapper) {
    display: block !important;
    position: relative !important;
  }

  body.np-cosmetics-listing #filters-wrapper
  fieldset > div > input[type="checkbox"] {
    position: absolute !important;
    width: 1px !important;
    min-width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
    opacity: 0 !important;
  }

  body.np-cosmetics-listing #filters-wrapper
  input[type="checkbox"] + label.filter-label {
    display: block !important;
    position: relative !important;
    grid-column: auto !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 6px 4px 6px 29px !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
  }

  body.np-cosmetics-listing #filters-wrapper
  input[type="checkbox"] + label.filter-label::before {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    left: 3px !important;
    top: 50% !important;
    width: 16px !important;
    height: 16px !important;
    border: 1.5px solid #cba69d !important;
    border-radius: 4px !important;
    background: #fff !important;
    transform: translateY(-50%) !important;
    box-sizing: border-box !important;
  }

  body.np-cosmetics-listing #filters-wrapper
  input[type="checkbox"]:not(:checked) + label.filter-label::after {
    content: "" !important;
    display: none !important;
  }

  body.np-cosmetics-listing #filters-wrapper
  input[type="checkbox"]:checked + label.filter-label::after {
    content: "\2713" !important;
    display: flex !important;
    position: absolute !important;
    left: 3px !important;
    top: 50% !important;
    width: 16px !important;
    height: 16px !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1.5px solid #9f756b !important;
    border-radius: 4px !important;
    background: #9f756b !important;
    color: #fff !important;
    font-family: Arial, sans-serif !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    transform: translateY(-50%) !important;
    box-sizing: border-box !important;
  }

  body.np-cosmetics-listing #filters-wrapper
  input[type="checkbox"]:checked + label.filter-label {
    color: #7b4f46 !important;
    font-weight: 700 !important;
  }

  body.np-cosmetics-listing #filters-wrapper
  input[type="checkbox"]:focus-visible + label.filter-label::before {
    outline: 2px solid #7b4f46 !important;
    outline-offset: 2px !important;
  }
}

/* =========================================================
   2. KONTAKTNI FORMULAR
   ========================================================= */

/* Skryje pouze puvodni vetu Shoptetu vlozenou tesne pred formular. */
body.in-kontakty .pageArticleDetail [itemprop="about"] > p:not([style]):has(+ #formContact) {
  display: none !important;
}

body.in-kontakty #formContact {
  display: block !important;
  width: calc(100% - 30px) !important;
  max-width: 760px !important;
  margin: 25px auto 60px !important;
  padding: 32px !important;
  background: #f7efed !important;
  border: 1px solid #ead7d2 !important;
  border-radius: 16px !important;
  box-shadow: 0 8px 24px rgba(95, 70, 63, 0.08) !important;
  box-sizing: border-box !important;
}

body.in-kontakty #formContact > fieldset {
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

body.in-kontakty #formContact .form-group,
body.in-kontakty #formContact .form-control-wrapper {
  width: 100% !important;
  max-width: none !important;
}

body.in-kontakty #formContact .form-group {
  margin-bottom: 19px !important;
}

body.in-kontakty #formContact label {
  display: block !important;
  margin-bottom: 7px !important;
  color: #332925 !important;
  font-weight: 700 !important;
}

body.in-kontakty #formContact .form-control {
  width: 100% !important;
  max-width: none !important;
  min-height: 46px !important;
  padding: 10px 13px !important;
  background: #fff !important;
  border: 1px solid #d7c1bb !important;
  border-radius: 8px !important;
  box-sizing: border-box !important;
}

body.in-kontakty #formContact textarea.form-control {
  min-height: 165px !important;
  resize: vertical !important;
}

body.in-kontakty #formContact .form-control:focus {
  border-color: #9f756b !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(159, 117, 107, 0.16) !important;
}

body.in-kontakty #formContact fieldset.box {
  margin: 5px 0 20px !important;
  padding: 20px !important;
  background: rgba(255, 255, 255, 0.55) !important;
  border: 1px solid #ead7d2 !important;
  border-radius: 10px !important;
}

body.in-kontakty #formContact fieldset.box h2 {
  margin: 0 0 16px !important;
  font-size: 19px !important;
  text-align: left !important;
}

body.in-kontakty #formContact .form-control.short {
  max-width: 220px !important;
}

body.in-kontakty #formContact .consents .label {
  margin: 0 !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
}

body.in-kontakty #formContact .submit-wrapper {
  margin: 24px 0 0 !important;
  text-align: center !important;
}

body.in-kontakty #formContact .btn-primary {
  min-width: 170px !important;
  padding: 13px 25px !important;
  background: #9f756b !important;
  border-color: #9f756b !important;
  border-radius: 7px !important;
  color: #fff !important;
  font-weight: 700 !important;
}

body.in-kontakty #formContact .btn-primary:hover {
  background: #7b4f46 !important;
  border-color: #7b4f46 !important;
}

@media (max-width: 767px) {
  body.in-kontakty #formContact {
    width: 100% !important;
    margin: 20px auto 40px !important;
    padding: 22px 18px !important;
    border-radius: 12px !important;
  }

  body.in-kontakty #formContact fieldset.box {
    padding: 16px !important;
  }
}
