/*
Theme Name: Felifam Child
Theme URI: @ONChumak
Description: Child Theme for Felifam
Author: @ONChumak
Author URI: @ONChumak
Template: felifam
Version: 1.0.0
*/
/*ТЕСТ 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 */
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%);
}

.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;
}