/* ===== System zarządzania plikami cookie ===== */
.cookie-consent {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    max-width: 1200px;
    margin: 0 auto;
    transform: translateY(150%);
    transition: transform 0.5s ease;
}

.cookie-consent.show {
    transform: translateY(0);
}

.cookie-content {
    padding: 25px;
}

.cookie-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #2056a0;
}

.cookie-content p {
    margin-bottom: 20px;
    line-height: 1.6;
}

.cookie-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.btn-cookie {
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.accept-all {
    background-color: #2056a0;
    color: #fff;
    border: none;
}

.accept-all:hover {
    background-color: #0f3b78;
}

.accept-necessary {
    background-color: transparent;
    color: #333;
    border: 1px solid #ddd;
}

.accept-necessary:hover {
    background-color: #f0f0f0;
}

.cookie-settings {
    background-color: transparent;
    color: #2056a0;
    border: 1px solid #2056a0;
}

.cookie-settings:hover {
    background-color: #f0f0f0;
}

/* ===== Panel ustawień plików cookie ===== */
.cookie-settings-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 1010;
    width: 90%;
    max-width: 600px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cookie-settings-panel.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
}

.settings-header h3 {
    font-size: 1.5rem;
    color: #2056a0;
}

.close-settings {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #888;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-settings:hover {
    color: #333;
}

.settings-content {
    padding: 20px 25px;
    max-height: 70vh;
    overflow-y: auto;
}

.cookie-option {
    margin-bottom: 25px;
}

.option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.option-header h4 {
    font-size: 1.1rem;
    color: #333;
}

/* Toggle switch */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: #2056a0;
}

input:focus + .slider {
    box-shadow: 0 0 1px #2056a0;
}

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

/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.settings-footer {
    padding: 15px 25px;
    border-top: 1px solid #eee;
    text-align: center;
}

/* Nakładka tła podczas wyświetlania panelu ustawień */
.cookie-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1005;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cookie-overlay.show {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {
    .cookie-buttons {
        flex-direction: column;
    }
    
    .btn-cookie {
        width: 100%;
        text-align: center;
    }
}
