 /* =========================================================
   ovniTEK Cookie Consent
   ========================================================= */


/* ---------------------------------------------------------
   Banner
   --------------------------------------------------------- */

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;

    background: #080808;
    border-top: 1px solid rgba(165, 255, 238, 0.35);

    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.45);

    padding: 25px 30px;

}


.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;

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

    gap: 35px;
}


.cookie-banner-text {
    max-width: 750px;
}


.cookie-banner-text h2 {
    color: #A5FFEE;
    font-size: 20px;
    margin: 0 0 10px;

}


.cookie-banner-text p {
    color: #d0d0d0;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 8px;

}


.cookie-banner-text a {
    color: #A5FFEE;
    text-decoration: none;
}


.cookie-banner-text a:hover {
    color: white;
    text-decoration: underline;
}


/* ---------------------------------------------------------
   Buttons
   --------------------------------------------------------- */

.cookie-banner-buttons {
    display: flex;
    align-items: center;
    gap: 10px;

    flex-shrink: 0;
}


.cookie-button {
    border-radius: 4px;
    padding: 12px 18px;

    font-size: 14px;
    font-weight: bold;

    cursor: pointer;


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


.cookie-preferences-button,
.cookie-decline {
    background: transparent;
    color: #A5FFEE;

    border: 1px solid #A5FFEE;
}


.cookie-preferences-button:hover,
.cookie-decline:hover {
    background: rgba(165, 255, 238, 0.1);
    color: white;
}


.cookie-accept,
.cookie-save {
    background: #A5FFEE;
    color: #050505;

    border: 1px solid #A5FFEE;
}


.cookie-accept:hover,
.cookie-save:hover {
    background: white;
    border-color: white;
}


/* ---------------------------------------------------------
   Keyboard Focus
   --------------------------------------------------------- */

.cookie-button:focus-visible,
.cookie-close:focus-visible,
.cookie-slider:focus-visible,
.privacy-preferences-link:focus-visible {
    outline: 2px solid white;
    outline-offset: 3px;
}


/* ---------------------------------------------------------
   Preferences Overlay
   --------------------------------------------------------- */

.cookie-preferences-overlay {
    position: fixed;

    inset: 0;

    z-index: 10000;

    background: rgba(0, 0, 0, 0.75);

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

    padding: 25px;

}


.cookie-preferences {
    width: 100%;
    max-width: 650px;

    background: #080808;

    border: 1px solid rgba(165, 255, 238, 0.35);

    border-radius: 8px;

    padding: 35px;


    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}


.cookie-preferences-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 15px;
}


.cookie-preferences h2 {
    color: #A5FFEE;

    font-size: 28px;

    margin: 0;

}


.cookie-close {
    background: transparent;
    border: none;

    color: #aaa;

    font-size: 30px;
    line-height: 1;

    cursor: pointer;

    padding: 5px 8px;
}


.cookie-close:hover {
    color: white;
}


.cookie-preferences-intro {
    color: #c8c8c8;

    font-size: 15px;

    line-height: 1.6;

    margin-bottom: 25px;

}


/* ---------------------------------------------------------
   Preference Options
   --------------------------------------------------------- */

.cookie-option {
    display: flex;

    justify-content: space-between;
    align-items: center;

    gap: 25px;

    padding: 20px 0;

    border-top: 1px solid rgba(255, 255, 255, 0.08);
}


.cookie-option h3 {
    color: white;

    font-size: 17px;

    margin: 0 0 6px;

}


.cookie-option p {
    color: #aaa;

    font-size: 14px;

    line-height: 1.5;

    margin: 0;

    max-width: 480px;

}


.cookie-status {
    color: #A5FFEE;

    font-size: 12px;

    font-weight: bold;

    white-space: nowrap;
}


/* ---------------------------------------------------------
   Toggle
   --------------------------------------------------------- */

.cookie-switch {
    position: relative;

    display: inline-block;

    width: 48px;
    height: 26px;

    flex-shrink: 0;
}


.cookie-switch input {
    position: absolute;

    opacity: 0;

    width: 1px;
    height: 1px;
}


.cookie-slider {
    position: absolute;

    inset: 0;

    cursor: pointer;

    background: #333;

    border-radius: 30px;

    transition: background-color 0.2s ease;
}


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

    position: absolute;

    height: 20px;
    width: 20px;

    left: 3px;
    bottom: 3px;

    background: white;

    border-radius: 50%;

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


.cookie-switch input:checked + .cookie-slider {
    background: #A5FFEE;
}


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

    background: #050505;
}


/* ---------------------------------------------------------
   Preferences Actions
   --------------------------------------------------------- */

.cookie-preferences-actions {
    display: flex;

    justify-content: flex-end;

    margin-top: 25px;
}


/* ---------------------------------------------------------
   Tablet
   --------------------------------------------------------- */

@media screen and (max-width: 800px) {

    .cookie-banner {
        padding: 20px;
    }


    .cookie-banner-content {
        flex-direction: column;

        align-items: flex-start;

        gap: 20px;
    }


    .cookie-banner-buttons {
        width: 100%;

        flex-wrap: wrap;
    }


    .cookie-button {
        flex: 1;
    }

}


/* ---------------------------------------------------------
   Mobile
   --------------------------------------------------------- */

@media screen and (max-width: 500px) {

    .cookie-banner-buttons {
        flex-direction: column;
    }


    .cookie-button {
        width: 100%;
    }


    .cookie-preferences {
        padding: 25px 20px;

        max-height: 90vh;
        overflow-y: auto;
    }


    .cookie-preferences h2 {
        font-size: 24px;
    }


    .cookie-option {
        align-items: flex-start;

        gap: 15px;
    }


    .cookie-option p {
        font-size: 13px;
    }

}
