/*
Theme Name: Avada Child
Description: Child theme for Avada theme
Author: ThemeFusion
Author URI: https://theme-fusion.com
Template: Avada
Version: 1.0.0
Text Domain:  Avada
*/


/* --- Stylowanie zapisu do newslettera na stronie postów/wpisów --- */



/* --- Pole e-mail --- */
.shopmagic-input-email {
    background: #ffffff;
    color: #333;
    padding: 14px 18px;
    border-radius: 6px;
    border: none;
    width: 100%;
    font-size: 16px;
}

/* Placeholder w szarym kolorze */
.shopmagic-input-email::placeholder {
    color: #999999;
    opacity: 1;
}

/* Kolor tekstu w trakcie wpisywania */
.shopmagic-input-email {
    color: #555555 !important;        /* szary tekst */
}

/* Usunięcie koloru Avada podczas focus */
.shopmagic-input-email:focus {
    color: #555555 !important;
    border-color: #cccccc !important;
    box-shadow: none !important;
    outline: none !important;
}

/* --- Checkbox + tekst akceptacji --- */
#agreement {
    transform: scale(1.2);
    margin-right: 10px;
}

.shopmagic-form-field-email label {
    color: #ffffff !important;
    font-size: 16px;
}

/* --- Przycisk --- */
.shopmagic-submit {
    background-color: #2E7664; /* zielony – dopasuj do tła */
    color: #ffffff;
    padding: 12px 28px;
    border-radius: 6px;
    border: none;
    font-size: 18px;
    cursor: pointer;
    display: block;
    margin: 20px auto 0; /* wyśrodkowanie */
    transition: 0.3s;
}

/* efekt hover */
.shopmagic-submit:hover {
    background-color: #245B4E;
}

/* wyrównanie całego formularza */
.shopmagic-form {
    text-align: center;
}

.shopmagic-form-field {
    margin-bottom: 18px;
}

/* Podstawowy styl wszystkich komunikatów */
.shopmagic-message {
    background: none !important;   /* bez tła */
    padding: 0 !important;
    margin-top: 10px;
    font-size: 16px;
    font-weight: 500;
    border: none !important;
}

/* Sukces – ciemnozielony tekst */
.shopmagic-message.success {
    color: #ffffff !important;     /* ten sam zielony co hover przycisku */
}

/* Błąd – ciemnoczerwony tekst (ładny, stonowany) */
.shopmagic-message.error {
    color: #ffffff !important;
}




/* Post/Wpis nazwa kategoii nad tytułem */

.cs-post-category p a {color: #c2ab53!important;}
.cs-post-category p a:hover {color: #286245!important;}



/* dostosowanie wygłądu dla płwyjającego kontaktu ikonki poczty i wyskakującego okienka z formularzem */


.mgswpcf7-popup-contactForm {
  position: fixed;
  inset: 0;
  z-index: 9999999;
}

.mgswpcf7-popup-contactForm .mgsmodal-background {
  background: rgba(0,0,0,0.8);
}



.mgswpcf7-popup-contactForm .wpcf7-form-control.wpcf7-submit {

  left: 0px!important;
margin: 10px 0px!important;
height: auto!important;
}

.mgswpcf7-popup-contactForm .wpcf7-form-control .wpcf7-list-item{
 text-align:left !important;
 display: block!important;

}


.mgswpcf7-popup-contactForm .wpcf7-form-control .wpcf7-list-item-label{
 text-align:left !important;
}




/* Formularz kontakt */

.uacf7-form-2089 .uacf7-row {
  padding-top: 20px!important;
}

.uacf7-form-2089 .uacf7-row .wpcf7-text {
  border-color: #f4ecec !important;
}

.uacf7-form-2089 .uacf7-row .wpcf7-textarea {
  border-color: #f4ecec !important;
}


/* rezerwacja zapis - stylowanie css wyglądu mobile */


/* HYDRABOOKING – bezpieczny układ mobile + tablet */
@media (max-width: 1024px) {

  /* cała karta */
  .meetings-mobile .tfhb-meeting-list__wrap__items {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
  }

  /* blok: obrazek + treść */
  .meetings-mobile .tfhb-meeting-list__wrap__items__wrap {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 0 !important;
    position: static !important;
  }

  /* wszystkie dzieci bez dziwnych szerokości/wysokości */
  .meetings-mobile .tfhb-meeting-list__wrap__items__wrap > * {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    flex: 0 0 auto !important;
    position: static !important;
    float: none !important;
  }

  /* obrazek */
  .meetings-mobile .tfhb-meeting-list__wrap__items__wrap__img {
    order: 1 !important;
    margin: 0 0 20px 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border-radius: 16px !important;
  }

  .meetings-mobile .tfhb-meeting-list__wrap__items__wrap__img img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    object-fit: cover !important;
    border-radius: 16px !important;
  }

  /* treść */
  .meetings-mobile .tfhb-meeting-list__wrap__items__wrap__content {
    order: 2 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 0 24px 0 !important;
    padding: 0 !important;
    position: static !important;
    overflow: visible !important;
  }

  /* tytuł – mniejszy i stabilniejszy na telefonach */
  .meetings-mobile .tfhb-meeting-list__wrap__items__wrap__content h3 {
    margin: 0 0 16px 0 !important;
    padding: 0 !important;
    line-height: 1.15 !important;
    font-size: 36px !important;
    word-break: break-word !important;
  }

  .meetings-mobile .tfhb-meeting-list__wrap__items__wrap__content h3 a {
    display: block !important;
    line-height: inherit !important;
  }

  /* dane prowadzącego */
  .meetings-mobile .tfhb-meeting-list__wrap__items__wrap__content__tags {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    width: 100% !important;
    margin: 18px 0 0 0 !important;
    padding: 0 !important;
  }

  .meetings-mobile .tfhb-meeting-list__wrap__items__wrap__content__tags span {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    line-height: 1.4 !important;
    margin: 0 !important;
  }

  /* przycisk zawsze pod treścią */
  .meetings-mobile .tfhb-meeting-list__wrap__items__actions {
    order: 3 !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
    position: static !important;
    float: none !important;
    clear: both !important;
  }

  /* przycisk pełna szerokość */
  .meetings-mobile .tfhb-meeting-list__wrap__items__actions .tfhb-btn,
  .meetings-mobile .tfhb-meeting-list__wrap__items__actions a.tfhb-btn {
    display: flex !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    height: auto !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 14px 20px !important;
    box-sizing: border-box !important;
    position: static !important;
    transform: none !important;
  }
}

/* telefony */
@media (max-width: 767px) {
  .meetings-mobile .tfhb-meeting-list__wrap__items__wrap__content h3 {
    font-size: 28px !important;
    line-height: 1.15 !important;
  }
}

/* małe telefony */
@media (max-width: 480px) {
  .meetings-mobile .tfhb-meeting-list__wrap__items__wrap__content h3 {
    font-size: 24px !important;
  }
}