#nwn_ccm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* Czarne półprzezroczyste tło */
    z-index: 999;
    /* Pod banerem */
    display: none;
    /* Domyślnie ukryte */
}

/* Główne style banera */
#nwn_ccm-cookie-banner {
    position: fixed;
    bottom: 50%;
    left: 50%;
    transform: translate(-50%, 50%);
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    background-color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    font-family: Lato, sans-serif;
    letter-spacing: 0.4px;
    padding: 20px;
    display: none;
    border-radius: 10px;
    overflow: hidden;
}

/* Logo */
.nwn_ccm-logo {
    max-width: 150px;
    margin: 10px auto;
    display: block;
	max-height: 75px;
}

/* Style dla kart (tabs) */
.nwn_ccm-tabs {
    display: flex;
    justify-content: space-around;
    list-style: none;
    padding: 0;
    border-bottom: 2px solid #ddd;
    margin-bottom: 20px;
}

.nwn_ccm-tab {
    padding: 10px;
    cursor: pointer;
    font-weight: bold;
    flex-basis: 33.3%;
    text-align: center;
}

.nwn_ccm-tab.active {
    border-bottom: 3px solid var(--nawnet-nwn_ccm-primary-color, #28a745);
    color: var(--nawnet-nwn_ccm-primary-color, #28a745);
}

/* Zawartość kart */
.nwn_ccm-tab-content {
    display: none;
    padding: 15px 10px;
    font-size: 14px;
    max-height: 40vh;
    overflow-y: auto;
}
.nwn_ccm-tab-content a{
    text-decoration: underline;
    font-weight: 600;
    color: var(--nawnet-nwn_ccm-primary-color, #28a745);
    transition: all .3s;
}
.nwn_ccm-tab-content a:hover{
    color: #333;
}

.nwn_ccm-tab-content.active {
    display: block;
    
    /*min-height: 400px;*/
    
}

/* Każda sekcja zgody */
.nwn_ccm-consent-item {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
}

/* Nagłówek każdej zgody - tytuł po lewej, toggle po prawej, chevron przed tytułem */
.nwn_ccm-consent-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    color: #333;
    cursor: pointer;
}

.chevron {
    display: inline-block;
    margin-right: 10px;
    transition: transform 0.3s ease;
}

.rotated {
    transform: rotate(90deg);
}

/* Toggle (suwak) */
.nwn_ccm-toggle {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
    margin-left: auto;
}

.nwn_ccm-toggle input {
    opacity: 0!important;
    width: 0;
    height: 0;
}

.nwn_ccm-consent-item .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.nwn_ccm-consent-item .slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: var(--nawnet-nwn_ccm-primary-color, #28a745);
}

input:checked+.slider:before {
    transform: translateX(20px);
}

.cmm-consent-item-title{
    font-size: 16px;
}
/* Styl akordeonu */
.nwn_ccm-consent-description {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    /* Płynna animacja */
}

/* Styl dla rozwiniętego akordeonu */
.nwn_ccm-consent-item.expanded .nwn_ccm-consent-description {
    max-height: 200px;
    /* Ustaw odpowiednią wartość, np. 200px lub więcej */
}

/* Przyciski w stopce banera */
.nwn_ccm-banner-footer {
    display: flex;
    justify-content: space-between;
    /*padding: 20px 0;*/
    padding-top: 20px;
    /*background-color: #f8f9fa;*/
    border-top: 1px solid #ddd;
}

.nwn_ccm-button {
    padding: 10px 20px;
    border: 1px solid #adadad;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s;
    color: #fff!important;
    background-color: #adadad!important;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.nwn_ccm-button.primary {
    background-color: var(--nawnet-nwn_ccm-primary-color, #28a745)!important;
    color: #ffffff!important;
    opacity: 1;
	border-color: var(--nawnet-nwn_ccm-primary-color, #28a745)!important;
    
}

.nwn_ccm-button.primary:hover {
    background-color: var(--nawnet-nwn_ccm-primary-color, #28a745)!important;
    opacity: .9;
}

.nwn_ccm-button:hover {
    background-color: #7e7e7e!important;
}

/* Ikonka do otwierania banera zgód */
#nwn_ccm-cookie-icon {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--nawnet-nwn_ccm-primary-color, #28a745);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    cursor: pointer;
    z-index: 1001;
    padding: 5px;
}
#nwn_ccm-cookie-icon.hidden{
    display: none;
}


.icon-chevron svg {
    width: 14px;
    height: 14px;
    display: flex;
    /*transition: transform 0.2s ease;*/
    margin-right: 15px;
    transform: rotate(180deg);
}
.icon-chevron svg path {
    fill: #757575
}

.icon-chevron svg.rotated {
    transform: rotate(0deg);
    /* Obrót o 90 stopni po rozwinięciu */
}

.nwn_ccm-consent-item.required .nwn_ccm-toggle {
    opacity: 0.5;
    cursor: not-allowed;
    position: relative;
}

/* Kursor 'not-allowed' na hover */
.nwn_ccm-consent-item.required .nwn_ccm-toggle:hover, .nwn_ccm-consent-item.required .slider:hover {
    cursor: not-allowed!important;
}


.nwn_ccm-consent-description p{
    margin-block-start: 1rem;
    margin-block-end: .3rem;
}




/* Tooltip */
.nwn_ccm-consent-item.required .nwn_ccm-toggle[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    top: -30px;
    /* Umieszczamy tooltip nad toggle */
    right: 0%;
    transform: translateX(-0%);
    background-color: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 10;
    opacity: 1;
    transition: opacity 0.3s ease;
}


/* Ukrycie tooltipa domyślnie */
.nwn_ccm-consent-item.required .nwn_ccm-toggle[data-tooltip]::after,
.nwn_ccm-consent-item.required .nwn_ccm-toggle[data-tooltip]::before {
    opacity: 0;
    pointer-events: none;
}

/* Pokaż tooltip na hover */
.nwn_ccm-consent-item.required .nwn_ccm-toggle[data-tooltip]:hover::after,
.nwn_ccm-consent-item.required .nwn_ccm-toggle[data-tooltip]:hover::before {
    opacity: 1;
}







/* Tooltip */
#nwn_ccm-cookie-icon[data-tooltip]::after {
    content: attr(data-tooltip);
    /* Pobierz tekst tooltipa z atrybutu data-tooltip */
    position: absolute;
    top: -35px;
    /* Umieszcza tooltip nad ikoną */
    left: 0%;
    background-color: rgba(0, 0, 0, 0.75);
    /* Ciemne tło */
    color: #fff;
    /* Biały tekst */
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
    /* Uniemożliwia interakcje z tooltipem */
    z-index: 1001;
}
/* Pokaż tooltip na hover */
#nwn_ccm-cookie-icon:hover[data-tooltip]::after,
#nwn_ccm-cookie-icon:hover[data-tooltip]::before {
    opacity: 1;
}


.nawnet-nwn_ccm-copyright, .nawnet-nwn_ccm-copyright a{
    text-align: center;
    font-weight: 300;
    font-size: 12px;
    margin-top: 15px;
}


@media (max-width: 768px) {
    .nwn_ccm-banner-footer{
        flex-direction: column;
        row-gap: 10px;
    }

    .nwn_ccm-tab-content{
        max-height: 40vh;
    }
    .nwn_ccm-logo {
        margin: 0px auto 10px auto;
		max-height: 50px;
    }
    .nwn_ccm-consent-item.required .nwn_ccm-toggle[data-tooltip]:hover::after{
        width: 185px;
        text-wrap: auto;
        word-break: normal;
        overflow-wrap: normal;
        white-space: normal;
    }
	#nwn_ccm-cookie-banner{
		max-height: 90vh;
	}
	li.nwn_ccm-tab{
		font-size: 16px;
	}
}