/*!
Theme Name: Kadence Child
Theme URI: https://www.kadencewp.com/kadence-theme/
Template: kadence
Author: Kadence WP
Author URI: https://www.kadencewp.com/
Description: A child theme for the Kadence Theme.
Version: 1.0.0
License: GNU General Public License v3.0 (or later)
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: kadence-child
*/

/* Theme customization starts here
-------------------------------------------------------------- */

/* Custom Category Header */
/* Top menu adjustments */

/* Add @font-face for local Open Sans variable font */
@font-face {
    font-family: 'Open Sans';
    font-style: italic;
    font-weight: 400;
    font-stretch: 100%;
    src: url(https://fonts.mailerlite.com/fonts/s/opensans/v44/memtYaGs126MiZpBA-UFUIcVXSCEkx2cmqvXlWqWtE6FxZCJgvAQ.woff2) format('woff2');
    unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 300;
  font-stretch: 100%;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/opensans/v44/memSYaGs126MiZpBA-UvWbX2vVnXBbObj2OVZyOOSr4dVJWUgsiH0B4gaVI.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 300;
  font-stretch: 100%;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/opensans/v44/memSYaGs126MiZpBA-UvWbX2vVnXBbObj2OVZyOOSr4dVJWUgsiH0B4uaVIGxA.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Set default font styles */
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
span,
a,
li,
td,
th,
input,
textarea,
button {
    font-family: 'Open Sans', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@media (max-width: 768px) {
    .h1 {
        font-size: 2rem!important;
    }
}

strong,
b {
    font-weight: 700;
}


.privacy-policy h1.entry-title,
.page-slug-polityka-prywatnosci h1.entry-title,
.page-slug-privacy-policy h1.entry-title {
    font-weight: 700;
    letter-spacing: -1px;
    text-align: center;
    padding: 27px 0;
    margin: 0;
}

.main-navigation .primary-menu-container>ul li.menu-item>a {
    font-size: 18px;
    font-weight: 600;
}

#main-header {
    -webkit-box-shadow: 0 1px 0 rgba(0, 0, 0, .1);
    box-shadow: 0 1px 0 rgba(0, 0, 0, .1);
}

/* Header language switcher wrapper (overrides inline max-width:150px). */
.header-html-inner > div {
    max-width: 138px !important;
}

/* Polish WPML view — tighter switcher (e.g. „Polski” label). */
.header-html-inner > div:has(.wpml-ls-item-pl.wpml-ls-current-language) {
    max-width: 130px !important;
}

.header-navigation .header-menu-container ul ul.sub-menu {
    border-top: 3px solid #c3cc21;
    border-right: none;
    border-bottom: none;
    border-left: none;
}

/* pierwsze submenu (poziom 1) */
.header-navigation .header-menu-container ul ul li.menu-item>a {
    font-size: 16px !important;
}

.kadence-sticky-header.item-is-fixed:not(.item-at-start) .site-branding a.brand img:not(.svg-logo-image) {
    max-width: 70%;

}

.kadence-sticky-header.item-is-fixed:not(.item-at-start) #primary-menu a {

    font-size: 16px !important;
}

.item-is-stuck .header-navigation .menu
{
    flex-wrap: nowrap;
}
.main-navigation .primary-menu-container > ul > li.menu-item.current-menu-item > a,
#main-header .main-navigation .primary-menu-container > ul > li.menu-item.current-menu-ancestor > a,
.header-navigation .header-menu-container ul ul li.menu-item.current-menu-item > a,
/* Rodzice w podmenu (np. Accessories, gdy aktywne jest trzeciopoziomowe dziecko — Sitting Boxes) */
.header-navigation .header-menu-container ul ul li.menu-item.current-menu-ancestor > a,
.header-navigation .header-menu-container ul ul li.menu-item.current-menu-parent > a
{
    font-weight: 600;
}

.site-footer li.menu-divider::after {
  content: "";
  display: block;
  height: 13px;

}
.widget_pages a, .widget_nav_menu a {
    display: block;
    padding: .1em 0;
    text-decoration: none;
}
.site-footer ul li {
    list-style: none;
}
.site-footer ul {margin: 0;
}
/* Search bar */
.dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp input[type=search].dgwt-wcas-search-input,
.dgwt-wcas-style-pirx.dgwt-wcas-search-wrapp.dgwt-wcas-search-focused input[type=search].dgwt-wcas-search-input:hover,
.dgwt-wcas-style-pirx.dgwt-wcas-search-wrapp.dgwt-wcas-search-focused input[type=search].dgwt-wcas-search-input
{
    border-radius: 8px;
    border-width: 2px;
     
}
.dgwt-wcas-style-pirx.dgwt-wcas-search-focused .dgwt-wcas-sf-wrapp input[type=search].dgwt-wcas-search-input
{
    border-color: #505050;
    
}
.dgwt-wcas-style-pirx.dgwt-wcas-has-submit .dgwt-wcas-search-submit svg path
{
    fill:#505050;
}
html:not(.dgwt-wcas-overlay-mobile-on) .dgwt-wcas-search-wrapp.dgwt-wcas-layout-icon.dgwt-wcas-layout-icon-open .dgwt-wcas-search-form
{
    box-shadow: rgba(0, 0, 0, 0.05) 0px 1px 2px 0px;
}
.dgwt-wcas-st
{
    color:#505050;
}
.dgwt-wcas-open-pirx.dgwt-wcas-overlay-mobile-on .dgwt-wcas-om-bar button.dgwt-wcas-om-return path, .dgwt-wcas-style-pirx .dgwt-wcas-close:not(.dgwt-wcas-inner-preloader) path, .dgwt-wcas-style-pirx .dgwt-wcas-voice-search svg path, .dgwt-wcas-style-pirx.dgwt-wcas-has-submit .dgwt-wcas-search-submit svg path
{
    fill: #505050;
}

/* Mobile FiboSearch overlay tweaks */
@media (max-width: 768px) {
    .dgwt-wcas-overlay-mobile .dgwt-wcas-search-form {

            position: relative;
            padding-bottom: 14px;
            padding-right: 10px;
            margin: 10px 10px 0 0;
        }
    
    .dgwt-wcas-om-bar button.dgwt-wcas-om-return
    {
        margin-top:10px;
    }
    .dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp 
    {
        background-color: #ebebeb;
    }
    .dgwt-wcas-overlay-mobile .dgwt-wcas-search-form::after {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        bottom: 6px;
        height: 1px;
        background: #d6d6d6;
        width: 90%;
    }
    .dgwt-wcas-overlay-mobile-on .dgwt-wcas-suggestions-wrapp
    {
        top:61px!important;
    }
    .dgwt-wcas-overlay-mobile .dgwt-wcas-search-input {
        background-color: #f3f3f3;
        border-color: #cfcfcf;
        color: #2d2d2d;
        padding-right: 48px;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23777' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='16.65' y1='16.65' x2='21' y2='21'/%3E%3C/svg%3E") !important;
        background-repeat: no-repeat !important;
        background-position: right 20px center !important;
        background-size: 18px !important;
    }

    .dgwt-wcas-overlay-mobile .dgwt-wcas-search-input::placeholder {
        color: #5f5f5f;
    }
}

/* Enlarge search icon in header - mobile only */
@media (max-width: 1024px) {
    .dgwt-wcas-search-icon {
        width: 25px !important;
        height: 25px !important;
    }

    .dgwt-wcas-search-icon path {
        fill: #424242 !important;
    }

    .dgwt-wcas-ico-magnifier-handler {
        max-width: 25px !important;
        width: 25px !important;
        height: 25px !important;
    }

    .dgwt-wcas-ico-magnifier-handler svg {
        width: 25px !important; 
        height: 25px !important;
    }

    html:not(.dgwt-wcas-overlay-mobile-on) .dgwt-wcas-search-wrapp.dgwt-wcas-layout-icon {
        max-width: 25px !important; 
    }
}
.dgwt-wcas-si img
{
    padding: 0 !important;
    border: none !important;
}
.dgwt-wcas-is-details .dgwt-wcas-si
{
    width: 35px !important;
}
a.dgwt-wcas-details-product-title {

	line-height: 110%;
	margin: 10px 0;
}
a.dgwt-wcas-details-post-title:hover,
a.dgwt-wcas-details-product-title:hover {
	text-decoration: underline;
    text-decoration-color: #c0ce30!important;
    transition: color 0.2s ease;
}
/* container  */
.content-area
{
    min-height: 60vh;
    margin-bottom: 60px!important;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section
{
    animation: fadeInUp 0.6s ease-out;
}
.section-decoration::before {
    content: '';
    display: block;
    width: 100px;
    height: 6px;
    background-color: #c4cd26;
    margin: 10px auto;
    transition: transform 0.3s ease;
}
.section-decoration:hover::before {
    transform: scale(1.05);
}
/* Button styles */
.button-all {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 4px;
}

.button-green {
    display: flex;
    align-items: center;
    background-color: #c4cd26;

    font-size: 22px;
    letter-spacing: -0.5px;
    font-weight: 400;
    height: 50px;
    padding: 0 12px;
    border-radius: 10px 0px 0px 10px;
}

.button-green-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    margin-left: -2px;
    font-size: 22px;
    padding: 0 16px 0 7px;
    background-color: #c4cd26;
    border-radius: 0px 10px 10px 0px;
    transition: padding 0.3s ease, width 0.3s ease;
}

.button-all:hover .button-green-arrow {
    padding: 0 24px 0 15px;
}

/* Treść edytora: czasem <i class="arrow-right"> jest bezpośrednio w <a> zamiast w span.button-green-arrow */
.button-all-kategorie > .button-green + i.arrow-right {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    min-width: 44px;
    margin-left: -2px;
    padding: 0 16px 0 7px;
    background-color: #c4cd26;
    border-radius: 0 10px 10px 0;
    transition: padding 0.3s ease, width 0.3s ease;
}

.button-all-kategorie:hover > .button-green + i.arrow-right {
    padding: 0 24px 0 15px;
}

i.arrow-right {
    margin-bottom: -1px;
    border: solid #505050;
    border-width: 0 2px 2px 0;
    display: inline-block;
    height: 16px;
    width: 16px;
    transform: rotate(-45deg);
    -webkit-transform: rotate(-45deg);
}

div.button-contener {
    height: 50px;
}

/* Więcej niż jeden .button-all — jeden rząd (centrowanie, odstęp); nadpisuje wysokość 50px */
div.button-contener.button-contener-kategorie {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem 1.25rem;
    height: auto;
    margin: 40px 0;
}

div.button-contener.button-contener-kategorie .button-all {
    flex: 0 0 auto;
}

@media (max-width: 768px) {
    .button-green {
        font-size: 20px;
    }
}


/* Single page  */

.featured-image-header {
    width: 100%;
    height: auto;
    overflow: hidden;
    border-radius: 10px;
    position: relative;
}

.featured-image-header img.wp-image-featured-header {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.featured-image-header img.wp-image-featured-header:hover {
    transform: scale(1.01);
}

.page-template-page-instructions-php h1 {

    font-size: 43px;
    color: #505050 !important;
    letter-spacing: -1px;
    text-align: center;
    padding: 27px 0;
}

.img-radius {
	border-radius: 10px;
}

/* DGWT Ajax Search – przycisk z szablonu fibosearch/details-panel/product.php używa .button-all / .button-green */

/* Contact Form 7 + reCAPTCHA v3: badge tylko na stronach z CF7 (klasa body .bb-has-cf7) */
body:not(.bb-has-cf7) .grecaptcha-badge {
    visibility: hidden !important;
    pointer-events: none !important;
    opacity: 0 !important;
}

body.bb-has-cf7 .grecaptcha-badge {
    transform: scale(0.55);
    transform-origin: bottom right;
    bottom: 10px !important;
    right: 8px !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12) !important;
    opacity: 0.92;
    border-radius: 3px !important;
}

body.bb-has-cf7 .grecaptcha-badge:hover {
    opacity: 1;
}

/* Karta produktu: CF7 w modalu (#contactPopup) — badge reCAPTCHA tylko przy otwartym modalu */
body.single-product.bb-has-cf7:not(.bb-contact-popup-open) .grecaptcha-badge {
    visibility: hidden !important;
    pointer-events: none !important;
    opacity: 0 !important;
}

/* Nad overlay modala (.popup-overlay ma z-index: 9999 w contact-form.css) */
body.single-product.bb-contact-popup-open .grecaptcha-badge {
	z-index: 10001 !important;
}

/* —— Wklejany układ: tekst + obraz (bb-split) —— */
.bb-split {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	gap: clamp(1.25rem, 3vw, 2.5rem);
	margin: 1.5rem 0;
}

.bb-split__text {
	flex: 1 1 min(18rem, 100%);
	min-width: 0;
	color: #505050;
}

.bb-split__text > :first-child {
	margin-top: 0;
}

.bb-split__text > :last-child {
	margin-bottom: 0;
}

.bb-split__media {
	flex: 1 1 min(16rem, 100%);
	min-width: 0;
}

.bb-split__media img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 10px;
}

.bb-split--reverse {
	flex-direction: row-reverse;
}

@media (max-width: 782px) {
	.bb-split {
		flex-direction: column;
		align-items: stretch;
	}

	.bb-split--reverse {
		flex-direction: column-reverse;
	}
}

/* —— Sekcja fullwidth: tekst + CTA + obraz —— */
.bb-fullwidth-promo {
	width: 100%;
	background: #55575a;
	margin: 0 0 15px;
	padding: clamp(1.25rem, 3vw, 1.5rem) 0;
	max-width: none;
	position: relative;
	left: 50%;
	right: 50%;
	width: 100vw;
	margin-left: -50vw;
	margin-right: -50vw;
}

.bb-fullwidth-promo__inner {
	max-width: 1079px;
	margin: 0 auto;

	display: grid;
	grid-template-columns: minmax(260px, 1fr) minmax(320px, 1.1fr);
	gap: clamp(1rem, 2.5vw, 2rem);
	align-items: center;
}

.bb-fullwidth-promo__content {
	color: #fff;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-start;
	height: 100%;
}

.bb-fullwidth-promo__title {
	display: block;
	margin: 0 0 0.85rem;
	color: #fff;
	font-size: clamp(1.5rem, 3.2vw, 2.2rem);
	line-height: 1.1;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	font-weight: 700;
}

.bb-fullwidth-promo__text {
	margin: 0 0 1.1rem;
	font-size: 18px;
	line-height: 1.5;

}

.bb-fullwidth-promo__content .button-all {
	margin-top: auto;
}

.bb-fullwidth-promo__btn {
	display: inline-flex;
	align-items: center;
	gap: 0.65rem;
	background: #c4cd26;
	color: #505050;
	text-decoration: none;
	font-weight: 600;
	border-radius: 10px;
	padding: 0.62rem 0.95rem 0.62rem 1rem;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.bb-fullwidth-promo__btn:hover,
.bb-fullwidth-promo__btn:focus-visible {
	transform: translateY(-1px);
	opacity: 0.92;
}

.bb-fullwidth-promo__btn-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.45rem;
	height: 1.45rem;
	border: 1px solid rgba(80, 80, 80, 0.45);
	border-radius: 6px;
	font-size: 1.1rem;
	line-height: 1;
}

.bb-fullwidth-promo__media img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 10px;
	object-fit: cover;
}

@media (max-width: 1024px) {
	.bb-fullwidth-promo {
		padding-left: 30px;
		padding-right: 30px;
	}
}

@media (max-width: 860px) {
	.bb-fullwidth-promo__inner {
		grid-template-columns: 1fr;
	}

	.bb-fullwidth-promo__media {
		order: 2;
	}

	.bb-fullwidth-promo__content {
		order: 1;
	}
}
.info-frame
{
    padding: 10px;
    border: 3px solid #C3CC21;
    border-radius: 10px;
    margin: 20px 0;
}

.info-frame .tooltip-title
{
    display: block;
    min-width: 100%;

}

.entry-content a
{
    text-decoration: underline;
    text-decoration-color: #C3CC21;
    transition: text-decoration-color 0.3s ease;
}
.entry-content a:hover
{
    text-decoration: none;
}

/* —— Full width YouTube embed (shortcode: [bb_youtube_fullwidth]) —— */
.bb-youtube-fullwidth {
	max-width: 980px;
	margin: 0 auto;
	margin-top: 1.5rem;
	margin-bottom: 2.5rem;

	overflow: hidden;
}

.bb-youtube-fullwidth__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 clamp(1rem, 3vw, 2rem);
}

.bb-youtube-fullwidth__frame {
	position: relative;
	width: 100%;
	padding-top: 56.25%;
	background: #111;
	border-radius: 10px;
	overflow: hidden;
}

.bb-youtube-fullwidth__frame iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}
.bb-home-cooperation-shortcode
{
    margin-top: 45px;
	margin-bottom: 20px;
}
/* Shortcode: [bb_home_cooperation] */
.bb-home-cooperation-shortcode .cooperation-title {
	text-align: center;
}

.homepage-cooperation-slider .cooperation-slider {
	padding: 0 50px;
}

.bb-home-cooperation-shortcode .cooperation-slider .slick-slide {
	transform: scale(0.85);
	opacity: 0.7;
	transition: transform 0.3s ease, opacity 0.3s ease;
}

.bb-home-cooperation-shortcode .cooperation-slider .slick-center {
	transform: scale(1);
	opacity: 1;
}

.homepage-cooperation-slider .cooperation-slider .slick-dots button {
	width: 12px;
	height: 12px;
}

/* Shortcode: [bb_lokalizacja_galeria] — ten sam układ co cooperation */
.bb-lokalizacja-galeria-shortcode {
	margin-bottom: 20px;
}

.bb-lokalizacja-galeria-shortcode .cooperation-title {
	text-align: center;
}

