/* Zmienne */
:root {
    --primary-color: #2c7820;
    --secondary-color: #ccc;
    --text-color: #000;
    --text-white: #fff;
    --background-color: #f4f4f4;
    --border-color: #ddd;
    --grey: #7f7f7f;

    --font-size: 13px;
}

/* Cookie Master Box */
.cookie-master-box {
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    position: fixed;
    border-radius: 5px;
    box-sizing: border-box;
    box-shadow: 0 0 35px 0 rgba(0,0,0,.25);
    padding: 2.5em 2.86em!important;
    opacity: 1;
    margin: 1.667em !important;
    bottom: 0px;
    z-index: 9999999999999999;
    width: calc(100% - 40px);
    border-width: 0;
    left: 0;
    opacity: 0;
    animation: fadeIn 1s ease-in-out 1s forwards;
}

/* Animacja fadeIn */
@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.cookie-master-box h3{
    font-size: 26px;
    font-weight: bold;
    line-height: 26px;
    color: var(--text-color)!important;
    margin: 0;
    margin-bottom: 21px;
}
.cookie-master-box, .cookie-master-box p, .cookie-master-box a, .cookie-master-box a:hover {
    color: var(--text-color)!important;
    font-size: 13px;
    font-weight: 400;
    line-height: 19px;
    margin: 0;
    padding-bottom: 30px;
}
.cookie-master-box p {
    text-align:justify;
}
.cookie-master-box p.category-description {
    padding-bottom: 0px;
}
.cookie-master-box .button-outline {
    background: transparent!important;
    border-color: var(--text-color)!important;
    color: var(--text-color)!important;
    font-size: 12px;
    font-weight: bold;
    width: 12.86em;
    max-width: 16em;
    cursor: pointer;
    border-width: 1px;
    border-radius: 3px;
    border-style: solid;
    background: #fff;
    padding: .625em 2em;
}
.cookie-master-box .button-second {
    background: var(--grey)!important;
    border-color: var(--grey)!important;
    color: var(--text-white)!important;
    font-size: 12px;
    font-weight: bold;
    width: 12.86em;
    max-width: 16em;
    cursor: pointer;
    border-width: 1px;
    border-radius: 3px;
    border-style: solid;
    background: #fff;
    padding: .625em 2em;
}
.cookie-master-box .button-first {
    background: var(--text-color)!important;
    border-color: var(--text-color)!important;
    color: var(--text-white)!important;
    font-size: 12px;
    font-weight: bold;
    width: 12.86em;
    max-width: 16em;
    cursor: pointer;
    border-width: 1px;
    border-radius: 3px;
    border-style: solid;
    background: #fff;
    padding: .625em 2em;
}
.cookie-master-box-intro {
    display: flex;
    flex: 1;
    align-items: center;
}
.cookie-master-box-intro-left {
    margin-right: 2em;
}
.cookie-master-box-intro-right {
    display: flex;
    justify-items: center;
    justify-content: center;
    gap: 12px;
    flex-direction: row;
}
.cookie-master-box-intro p {
    padding-bottom:0px;
}
.cookie-master-box-inner {
    height: 100%;
    max-height: 300px;
    overflow-y: scroll;
    margin-bottom: 28px;
}

/* Toggle Switch */
.cookie-master-box .toggle-label input[type="checkbox"] {
    display: none;
}

.cookie-master-box .toggle-label .toggle-switch {
    display: inline-block;
    width: 20px;
    height: 10px;
    background-color: var(--secondary-color);
    border-radius: 25px;
    position: relative;
    cursor: pointer;
}

.cookie-master-box .toggle-label .toggle-switch::before {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: white;
    border-radius: 50%;
    top: 1px;
    left: 1px;
    transition: 0.3s;
}

.cookie-master-box .toggle-label {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.cookie-master-box .toggle-label span {
    margin-right: 10px;
}

.cookie-master-box .toggle-label input[type="checkbox"]:checked + .toggle-switch {
    background-color: var(--primary-color);
}

.cookie-master-box .toggle-label input[type="checkbox"]:checked + .toggle-switch::before {
    transform: translateX(10px);
}

/* Accordion */
.cookie-master-box .accordion-button, .cookie-master-box .accordion-button:hover  {
    background-color: transparent!important;
    border: 0px !important;
    color: #000;
    width: 100%;
    padding: 0px;
    text-decoration: underline;
    cursor: pointer;
    border: none;
    text-align: left;
    outline: none;
    font-size: var(--font-size);
    transition: 0.4s;
    margin-bottom:5px;
}

.cookie-master-box .panel {
    padding: 0 18px;
    background-color: white;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
}

/* Open Cookie Master Box Button */
#open_cookie_master_box {
    position: fixed;
    bottom: 0px;
    left: 0px;
    background: var(--text-color);
    padding: 0px;
    border-radius: 5px;
    cursor: pointer;
    width:30px;
    height:30px;
    margin: 1.667em !important;
    border-radius:100px;
    opacity: 0;
    animation: fadeIn 1s ease-in-out 1.5s forwards;
    z-index:99999999;
}
#open_cookie_master_box img {
    position: absolute;
    top: 5px;
    left: 5px;
}

@media screen and (max-width: 767px) {
.cookie-master-box {
    padding: 1.5em 1.86em!important;
}
.cookie-master-box h3{
    font-size: 18px;
    line-height: 18px;
    margin-bottom: 11px;
}
.cookie-master-box, .cookie-master-box p, .cookie-master-box a, .cookie-master-box a:hover {
    font-size: 11px;
    line-height: 15px;
    padding-bottom: 10px;
}
.cookie-master-box-inner {
    max-height: 200px;
    margin-bottom: 5px;
}
.cookie-master-box-intro {
    flex-direction: column;
}
.cookie-master-box-intro-right {
    flex-direction: column-reverse;
    width: 100%;
    position: sticky;
    bottom: 0;
    box-sizing: border-box;
    border-top: 1px solid #ededef;
    padding: 0.5em 0;
}
.cookie-master-box-intro-left {
    margin-right: 0px;
}
.cookie-master-box .button-outline, .cookie-master-box .button-second, .cookie-master-box .button-first {
    width:100%;
    max-width:100%;
}
}