/* Contact Form 7 */

.wpcf7-form,
.form-fields-container,
.form-submit-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;              
}
.form-fields-container > div > p > label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.wpcf7-form-control-wrap input:not([type="checkbox"]) {
    display: block;
    width: 100%;
    padding: 1rem 1.25rem; 
    
    background-color: #ffffff;
    border: 2px solid var(--color-secondary-300); 
    border-radius: 1rem; 
    
    color: #3E533C;
    font-weight: 400;

    font-size: 1.125rem;
    line-height: 1.5rem;
    
    transition: all 0.3s ease;
    outline: none;
}

.wpcf7-form-control.wpcf7-acceptance .wpcf7-list-item {
    margin-left: 0;
}

/* checkbox */

.wpcf7-form-control.wpcf7-acceptance .wpcf7-list-item label input[type="checkbox"] {
    /* Reset stylu przeglądarki */
    -webkit-appearance: none;
    appearance: none;
    
    margin-right: 6px;
    margin-top: -2px;

    /* Wymiary i ramka */
    width: 1.5rem;   /* 24px */
    height: 1.5rem;  /* 24px */
    border: 2px solid var(--color-secondary-300); 
    border-radius: 8px; /* Zaokrąglone rogi */
    
    background-color: #ffffff;
    cursor: pointer;
    display: inline-block;
    vertical-align: middle;
    position: relative;
    transition: all 0.2s ease-in-out;
}

/* Hover na checkboxie */
.wpcf7-form-control.wpcf7-acceptance .wpcf7-list-item label input[type="checkbox"]:hover {
    border-color: var(--color-secondary-800);
}

/* Stan zaznaczony (Checked) */
.wpcf7-form-control.wpcf7-acceptance .wpcf7-list-item label input[type="checkbox"]:checked {
    background-color: var(--color-secondary-800);
    border-color: var(--color-secondary-800);
}

/* Dodanie białego "ptaszka" (Tick) po zaznaczeniu */
.wpcf7-form-control.wpcf7-acceptance .wpcf7-list-item label input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 7px;  /* Pozycjonowanie ptaszka */
    top: 3px;
    width: 6px;
    height: 11px;
    border: solid white;
    border-width: 0 2px 2px 0; /* Grubość ptaszka */
    transform: rotate(45deg);
}

/* tekst zgody */

.wpcf7-form-control.wpcf7-acceptance .wpcf7-list-item label span.wpcf7-list-item-label label {
    font-size: 0.875rem;
}





/* Stan Hover - kolor ramki: #3E533C */
.wpcf7-form-control-wrap input:hover {
    border-color: var(--color-secondary-800);
}

/* Stan Focus (kliknięcie w pole) */
.wpcf7-form-control-wrap input:focus {
    border-color: var(--color-secondary-800);
    outline: none; /* Usuwa domyślne obramowanie przeglądarki */
    box-shadow: none; /* Usuwa ewentualny cień, jeśli był wcześniej ustawiony */
}

/* Styl dla placeholder (tekst pomocniczy) */
.wpcf7-form-control-wrap input::placeholder {
    color: var(--color-secondary-300);
}

/* Responsywność dla desktopu */
@media (min-width: 768px) {
    .wpcf7-form-control-wrap input {
        font-size: 1.25rem; /* Twoje 20px */
        line-height: 1.75rem;
    }
}

.wpcf7-submit {
    /* Ustawienia rozmiaru i odstępów */
    width: 100%;
    padding: 0 24px; /* px-6 w Tailwind = 24px padding poziomy */
    height: 60px; /* h-14 w Tailwind = 3.5rem = 56px wysokości */

    /* Kolory i czcionka */
    background-color: var(--color-secondary-800);
    color: #fff; /* text-white */
    font-size: 1.125rem; /* text-lg w Tailwind = 18px */
    font-family: "Satoshi-Bold", sans-serif;

    /* Kształt i układ */
    border-radius: 16px; /* rounded-lg w Tailwind = 8px */
    -webkit-border-radius: 16px; 
    -moz-border-radius: 16px;
    display: flex; /* flex */
    align-items: center; /* items-center */
    justify-content: center; /* justify-center */
    border: none; /* Upewnij się, że nie ma domyślnych ramek */
    cursor: pointer; /* Zmienia kursor na wskaźnik */
    text-decoration: none; /* Usuwa podkreślenie, jeśli button jest linkiem */

    /* Efekty przejścia */
    transition: all 300ms ease-in-out; /* Połączenie transition-property, transition-duration, transition-timing-function w jedną właściwość */
}
.wpcf7-submit:hover {
    background-color: var(--color-secondary-900);
}





/* Zmiana tła dla wszystkich autofilli */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0px 1000px #fff inset !important;
    
    /* Zmiana koloru tekstu w autofillu */
    /*-webkit-text-fill-color: var(--color-primary-700) !important;*/
}






.wpcf7 form .wpcf7-response-output {
    margin: 0;
    padding: 1em 1.4em;
    border-radius: 8px; 
    -webkit-border-radius: 8px; 
    -moz-border-radius: 8px;
}

.wpcf7-not-valid-tip {
    margin-top: 8px;
}











.breadcrumbs {
    opacity: 0.5;
}










/* menu w stopce */

.shps-footer-menu li:not(:first-child) {
    margin-top: 12px;
}
.shps-footer-menu li a {
    /* text-base */
    font-size: 16px !important;
    line-height: 1.68rem;
    color: var(--color-primary-700);
    transition-property: opacity;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}
.shps-footer-menu li a:hover {
    opacity: 0.7;
}
@media (min-width: 768px) {
    .shps-footer-menu li a {
        font-size: 18px !important;
        line-height: 1.75rem;
    }
}
/* ukrywa kontakt w stopce */
.shps-footer-menu li:last-child {
    display: none;
}













/* customizacja kolorow Cookie Yes */
.cky-btn-accept {
    background: #324230 !important;
    border: 2px solid #324230 !important;
}

.cky-btn-reject,
.cky-btn-customize {
    color: #324230 !important;
    border: 2px solid #324230 !important;
}
    










/* Style artykułu */

/* pierwszy element we wpisie bez górnego marginesu */
.shps-the-content figure:first-child,
.shps-the-content h2:first-child,
.shps-the-content meta + figure,
.shps-the-content meta + h2 { 
    margin-top: 0;
}

/* zapobiega rozpychaniu strony */
.size-full {
    height: auto;
}

/* radius na zdjeciach w tresci wpisu */
figure.wp-block-image img {
    border-radius: 24px; 
    -webkit-border-radius: 24px; 
    -moz-border-radius: 24px;
}

/* radius na zdjeciach galerii w tresci wpisu */
.wp-block-gallery.has-nested-images:not(.is-cropped) figure.wp-block-image:not(#individual-image) {
    border-radius: 24px; 
    -webkit-border-radius: 24px; 
    -moz-border-radius: 24px;
}
/* radius na figcaption zdjec galerii w tresci wpisu */
.wp-block-gallery.has-nested-images figure.wp-block-image figcaption {
    border-radius: 24px; 
    -webkit-border-radius: 24px; 
    -moz-border-radius: 24px;
}
/* radius na :before figure galerii w tresci wpisu */
.wp-block-gallery.has-nested-images figure.wp-block-image:has(figcaption):before {
    border-radius: 24px; 
    -webkit-border-radius: 24px; 
    -moz-border-radius: 24px;
}








/* dwa zdjecia w galerii wpisu */

.wp-block-gallery {
    --wp--style--unstable-gallery-gap: var(--wp--style--gallery-gap-default, var(--gallery-block--gutter-size, var(--wp--style--block-gap, 2.5em))) !important;
    gap: var(--wp--style--gallery-gap-default, var(--gallery-block--gutter-size, var(--wp--style--block-gap, 2.5em))) !important;
}





/* linki w tresci wpisu */

.shps-the-content p a,
.shps-the-content li a,
.shps-the-content ol a,
.shps-the-content table a {
    color: var(--color-primary-700);
    font-weight: 600;
    border-bottom: 2px solid var(--color-secondary-300);
}

.shps-the-content p a:hover,
.shps-the-content li a:hover,
.shps-the-content ol a:hover,
.shps-the-content table a:hover {
    border-bottom: 2px solid var(--color-primary-700);
}





/* listy uporzadkowane w tresci wpisu */

ul.wp-block-list {
    list-style-type: disc;
}

ol.wp-block-list {
    list-style-type: decimal;
}

.wp-block-list li {
    margin-left: 24px;
    padding-bottom: 16px;
    padding-left: 12px;
}





/* jednokolumnowa galeria artykułowa na mobile */

@media (max-width: 640px) {

    .wp-block-gallery.is-layout-flex {
        flex-direction: column !important;
        align-items: center !important;
    }


    .wp-block-gallery.has-nested-images figure.wp-block-image {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        flex-basis: 100% !important;
        max-width: 100% !important;
    }


    .wp-block-gallery.has-nested-images figure.wp-block-image img {
        width: 100% !important;
        height: auto !important;
        object-fit: contain;
    }

    /* Nadpisuje wszelkie inline'owe style, które mogłyby ustawiać szerokość na figure */
    .wp-block-gallery figure.wp-block-image[style] {
        width: 100% !important;
    }
}