/*
Theme Name: Felifam Child
Theme URI: @ONChumak
Description: Child Theme for Felifam
Author: @ONChumak
Author URI: @ONChumak
Template: felifam
Version: 1.0.0
*/
/*ТЕСТ*/
body.post-type-archive-projects .filter-category,
body.post-type-archive-projects .left-filter-row{
  grid-column: 1 / -1;
}


/* =========================
   Projects filters: layout
   ========================= */

.filter-category .left-filter-row{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
}

/* "Проєкти з відео" — поруч із фільтрами */
.filter-category .block-filter-checkbox{
  margin-left: 12px;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.filter-category .filter-option{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

/* =========================
   Premium checkbox (default 18px) — для dropdown
   ========================= */

.filter-category .filter-dropdown-menu input[type="checkbox"].project-category-filter{
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 1px solid rgba(33,45,56,.25);
  background: #fff;
  display: inline-grid;
  place-content: center;
  margin: 0;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.filter-category .filter-dropdown-menu input[type="checkbox"].project-category-filter::before{
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 3px;
  transform: scale(0);
  transition: transform .12s ease;
  background: #212d38;
}

.filter-category .filter-dropdown-menu input[type="checkbox"].project-category-filter:checked::before{
  transform: scale(1);
}

.filter-category .filter-dropdown-menu .filter-option:hover input[type="checkbox"].project-category-filter{
  border-color: rgba(33,45,56,.45);
}

.filter-category .filter-dropdown-menu input[type="checkbox"].project-category-filter:focus-visible{
  box-shadow: 0 0 0 4px rgba(33,45,56,.14);
  outline: none;
}

/* =========================
   Premium checkbox (22px) — тільки для "Проєкти з відео"
   ========================= */

.filter-category .block-filter-checkbox input[type="checkbox"].project-category-filter{
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  border: 1px solid rgba(33,45,56,.28);
  background: #fff;
  display: inline-grid;
  place-content: center;
  margin: 0;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.filter-category .block-filter-checkbox input[type="checkbox"].project-category-filter::before{
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 4px;
  transform: scale(0);
  transition: transform .12s ease;
  background: #212d38;
}

.filter-category .block-filter-checkbox input[type="checkbox"].project-category-filter:checked::before{
  transform: scale(1);
}

.filter-category .block-filter-checkbox input[type="checkbox"].project-category-filter:focus-visible{
  box-shadow: 0 0 0 4px rgba(33,45,56,.14);
  outline: none;
}
/* ТЕСТ */
/*ТЕСТ QUIZ */
/*ТЕСТ*/
/* =========================
   QUIZ (popup) — Step 1 layout fix (Variant 2: “designer spacing”, NO text styling)
   ========================= */

#pop-up-form .step[data-step="1"]{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  min-height: 0;
}

#pop-up-form .step[data-step="1"] .step-text{
  width: min(980px, 92vw);
  max-height: none;
  height: auto;
  overflow: visible;
  margin: 0;
  padding: 0;
  min-height: 0;
}

#pop-up-form .step[data-step="1"] .step-text p{
  margin: 0;
}

#pop-up-form .step[data-step="1"] h2{
  width: min(980px, 92vw);
  margin: 0;
  padding: 0;
  min-height: 0;
}

#pop-up-form .step[data-step="1"] img.qyiz-img{
  display: block;
  width: 100%;
  height: auto;
  max-width: min(700px, 88vw);
  max-height: clamp(260px, 58vh, 640px);
  object-fit: contain;
  margin: 6px auto 0;
  border-radius: 14px;
}

#pop-up-form .step[data-step="1"] .form-viriable,
#pop-up-form .step[data-step="1"] .button-next-variable{
  width: min(980px, 92vw);
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 0;
}

#pop-up-form .step[data-step="1"] .form-viriable{
  margin-top: 10px;
}

#pop-up-form .step[data-step="1"] .next-btn{
  width: min(300px, 84vw);
  margin: 0;
}

@media (max-height: 800px){
  #pop-up-form .step[data-step="1"]{
    padding: 12px 14px;
    gap: 8px;
  }

  #pop-up-form .step[data-step="1"] img.qyiz-img{
    max-height: 46vh;
    margin-top: 4px;
  }

  #pop-up-form .step[data-step="1"] .form-viriable{
    margin-top: 4px;
  }
}

/* =========================
   QUIZ — Step 8 (relaxed spacing + CENTER FIX)
   ========================= */

#pop-up-form .step[data-step="8"]{
  gap: 18px;
  padding: 22px 22px;
}

#pop-up-form .step[data-step="8"] .step-text{
  margin: 0;
}

#pop-up-form .step[data-step="8"] h1{
  font-size: clamp(30px, 3.4vw, 48px) !important;
  line-height: 1.12;
  margin: 10px 0 10px;
}

#pop-up-form .step[data-step="8"] h2{
  font-size: clamp(18px, 2.1vw, 26px);
  line-height: 1.3;
  margin: 0 0 12px;
}

/* Форма: ширина + центрування */
#pop-up-form .step[data-step="8"] .form-variable{
  width: min(560px, 92vw);
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Контакт-блок: відстані + центрування чекбокса/кнопки */
#pop-up-form .step[data-step="8"] .contact-pop{
  gap: 14px;
  align-items: center;
}

#pop-up-form .step[data-step="8"] .contact-pop input[type="text"],
#pop-up-form .step[data-step="8"] .contact-pop input[type="tel"],
#pop-up-form .step[data-step="8"] .contact-pop .iti{
  margin: 0 !important;
}

#pop-up-form .step[data-step="8"] .contact-pop label,
#pop-up-form .step[data-step="8"] .contact-pop .privacy-check,
#pop-up-form .step[data-step="8"] .contact-pop .privacy-accept{
  justify-content: center;
}

#pop-up-form .step[data-step="8"] .submit-btn{
  margin-top: 10px;
  align-self: center;
}

@media (max-height: 800px){
  #pop-up-form .step[data-step="8"]{
    gap: 14px;
    padding: 18px 18px;
  }
  #pop-up-form .step[data-step="8"] .contact-pop{
    gap: 12px;
  }
}
/* FIX: Step 1 — мобільний, кнопка строго по центру */
@media (max-width: 768px){

  /* Контейнер кнопки розтягуємо на всю ширину */
  #pop-up-form .step[data-step="1"] .button-next-variable{
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 0 auto !important;
    padding: 0 !important;
  }

  /* На випадок якщо кнопка має свої “зсуви” */
  #pop-up-form .step[data-step="1"] .button-next-variable .next-btn,
  #pop-up-form .step[data-step="1"] .button-next-variable button,
  #pop-up-form .step[data-step="1"] .button-next-variable a{
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    float: none !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
  }
}

/*ТЕСТ QUIZ */
/* =========================
   Dropdown menu polishing
   ========================= */

.filter-category .filter-dropdown-menu{
  padding: 10px;
  border-radius: 12px;
}

.filter-category .filter-dropdown-menu .filter-option{
  width: 100%;
  justify-content: flex-start;
  padding: 6px 6px;
  border-radius: 8px;
}

.filter-category .filter-dropdown-menu .filter-option:hover{
  background: rgba(33,45,56,.06);
}

/*ТЕСТ*/
ul.products.columns-4 {
    width: 100%;
}


/*Custom*/

.undefined.item-with-flag {
    display: flex;
    gap: 10px;
}

img.flag-icon {
    width: 42px;
}


.choices {
    width: 300px;
}

.choices__inner {
    border-radius: 0;
	padding:0!important;
}

.undefined {
    padding: 20px 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/*.undefined:hover {
    background-color: hsl(0deg 0% 0% / 10%);
}*/

.choices__list--single {
    padding: 0;
}

.undefined.is-highlighted {
    background-color: hwb(29deg 50% 9% / 20%);
}

/*Lang switcher*/
.lang select {
    border: none;
    background-color: transparent;
    color: #fff;
    cursor: pointer;
}

.lang select option {
    background-color: #2F4447;
    color: #fff;
}

.woocommerce-NoticeGroup.woocommerce-NoticeGroup-checkout {
    position: absolute;
    width: 100%;
    background-color: red;
    left: 0;
    top: 13%;
}

ul.woocommerce-error {
    padding-left: 3%;
    padding-right: 3%;
    padding-top: 2%;
    padding-bottom: 2%;
    color: #fff;
    line-height: 1.8;
}