/* =========================================================
   COOKIE CONSENT
   Styl jak Bernard - kolor główny: CZARNY
   ========================================================= */

#cookie-consent-backdrop {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;

    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);

    z-index: 99998;
}


/* =========================================================
   MODAL
   ========================================================= */

#cookie-consent-modal {
    display: block;

    position: fixed;

    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);

    width: 560px;
    max-width: 95%;
    max-height: 92vh;

    overflow-y: auto;

    background: #fff;
    color: #222;

    padding: 24px;

    box-sizing: border-box;

    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.25);

    z-index: 99999;

    font-family: Lato, Arial, sans-serif;

    animation: cookieConsentFadeIn 0.25s ease;
}


/* =========================================================
   HEADER
   ========================================================= */

.cc-header {
    padding-bottom: 10px;
}

.cc-header h2 {
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0px;

    font-size: 20px;
    line-height: 1.3;

    font-weight: 700;
}

.cc-header p {
    margin: 0;
    padding-top: 10px;

    letter-spacing: 0px;
    text-align: justify;

    font-size: 14px;
    line-height: 1.6;

    color: #555;
}

.cc-header p a {
}


/* =========================================================
   BUTTONS
   ========================================================= */

.cc-actions {
    display: flex;
    flex-direction: column;

    gap: 10px;

    margin-top: 20px;
}


.cc-btn {
    width: 100%;

    min-height: 46px;

    padding: 10px 16px;

    font-family: inherit;
    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}


/* GŁÓWNY - CZARNY */

.cc-btn-green {
    background: #000;
    border: 1px solid #000;
    color: #fff;
}

.cc-btn-green:hover {
    background: #222;
    border-color: #222;
}


/* BIAŁY */

.cc-btn-white {
    background: #fff;
    border: 1px solid #ccc;
    color: #222;
}

.cc-btn-white:hover {
    background: #f5f5f5;
    border-color: #999;
}


/* USTAWIENIA */

.cc-btn-link {
    background: transparent;
    border: 0;

    color: #222;

    text-decoration: underline;

    min-height: auto;
    padding: 8px;
}

.cc-btn-link:hover {
    color: #000;
}


/* =========================================================
   SETTINGS
   ========================================================= */

#cookie-consent-settings {
    display: none;

    margin-top: 20px;

    border-top: 1px solid #ececec;
}


/* =========================================================
   CATEGORY
   ========================================================= */

.cc-category {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    padding: 20px 0;

    border-bottom: 1px solid #ececec;
}


.cc-category-text {
    flex: 1;
}


.cc-category-text h3 {
    margin: 0 0 6px 0;

    font-size: 15px;
    line-height: 1.4;

    font-weight: 700;
}


.cc-category-text p {
    margin: 0;

    font-size: 13px;
    line-height: 1.5;

    color: #666;
}


/* =========================================================
   SWITCH
   ========================================================= */

.cc-switch {
    position: relative;

    display: inline-block;

    width: 48px;
    min-width: 48px;
    height: 26px;
}


.cc-switch input {
    display: none;
}


.cc-slider {
    position: absolute;

    inset: 0;

    background: #d5d5d5;

    border-radius: 50px;

    cursor: pointer;

    transition: background 0.2s ease;
}


.cc-slider:before {
    content: "";

    position: absolute;

    width: 20px;
    height: 20px;

    left: 3px;
    top: 3px;

    background: #fff;

    border-radius: 50%;

    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);

    transition: transform 0.2s ease;
}


.cc-switch input:checked + .cc-slider {
    background: #000;
}


.cc-switch input:checked + .cc-slider:before {
    transform: translateX(22px);
}


.cc-switch input:disabled + .cc-slider {
    opacity: 0.75;

    cursor: default;
}


/* =========================================================
   SAVE
   ========================================================= */

.cc-save {
    padding-top: 20px;
}


/* =========================================================
   ANIMACJA
   ========================================================= */

@keyframes cookieConsentFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -48%);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    #cookie-consent-modal {
        width: 95%;

        max-width: 95%;

        max-height: 92vh;

        padding: 20px;

        border-radius: 6px;
    }

    .cc-header h2 {
        font-size: 20px;
    }

    .cc-header p {
        font-size: 13px;
    }

    .cc-category {
        gap: 12px;

        padding: 16px 0;
    }

    .cc-category-text h3 {
        font-size: 14px;
    }

    .cc-category-text p {
        font-size: 12px;
    }

}


/* =========================================================
   IKONA COOKIE
   ========================================================= */

#cookie-consent-open {
    position: fixed;

    left: 15px;
    bottom: 15px;

    width: 52px;
    height: 52px;

    padding: 0;

    background: #000;
    color: #fff;

    border: 0;
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    z-index: 99997;

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);

    font-size: 24px;

    transition: 0.2s;
}

#cookie-consent-open:hover {
    transform: scale(1.08);
}


/* =========================================================
   UKRYWANIE PO ZAPISANIU ZGODY
   ========================================================= */

#cookie-consent-modal[style*="display:none"],
#cookie-consent-backdrop[style*="display:none"] {
    display: none !important;
}