/* Cookie Banner Styles - Lab-Wet */
/* Wersja: 2.0 - Zielony motyw medyczny */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    padding: 25px;
    z-index: 9999;
    display: none;
    animation: slideUp 0.3s ease-out;
    border-top: 3px solid #4a7c7e;
}

.cookie-banner.show {
    display: block;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

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

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

.banner-header h2 {
    font-size: 18px;
    color: #2d5456;
    margin: 0;
    font-weight: 600;
}

.banner-text {
    color: #5a6c6d;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.banner-text a {
    color: #4a7c7e;
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

.banner-text a:hover {
    color: #5d9ea0;
    text-decoration: underline;
}

.consent-options {
    display: none;
    margin: 20px 0;
    padding: 20px;
    background: #f8fafa;
    border-radius: 8px;
    border: 1px solid #d4e3e4;
}

.consent-options.show {
    display: block;
}

.consent-category {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #e8f0f1;
}

.consent-category:last-child {
    border-bottom: none;
}

.category-info h3 {
    font-size: 15px;
    color: #2d5456;
    margin: 0 0 5px 0;
    font-weight: 600;
}

.category-info p {
    font-size: 13px;
    color: #5a6c6d;
    margin: 0;
}

.toggle-switch {
    position: relative;
    width: 50px;
    height: 26px;
    flex-shrink: 0;
}

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

.cookie-banner .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #d4e3e4;
    transition: .4s;
    border-radius: 26px;
}

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

.cookie-banner input:checked + .slider {
    background-color: #4a7c7e;
}

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

.cookie-banner input:disabled + .slider {
    background-color: #4a7c7e;
    opacity: 0.6;
    cursor: not-allowed;
}

.banner-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 28px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.btn-primary {
    background: #4a7c7e;
    color: white;
    box-shadow: 0 2px 8px rgba(74, 124, 126, 0.25);
}

.btn-primary:hover {
    background: #3d6567;
    box-shadow: 0 4px 12px rgba(74, 124, 126, 0.35);
    transform: translateY(-1px);
}

.btn-secondary {
    background: #ffffff;
    color: #4a7c7e;
    border: 2px solid #4a7c7e;
}

.btn-secondary:hover {
    background: #f8fafa;
    border-color: #3d6567;
}

.btn-text {
    background: transparent;
    color: #5a6c6d;
    text-decoration: underline;
}

.btn-text:hover {
    color: #2d5456;
}

/* Responsywność */
@media (max-width: 768px) {
    .cookie-banner {
        padding: 15px;
    }

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

    .btn {
        width: 100%;
    }

    .consent-category {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .toggle-switch {
        align-self: flex-end;
    }
}

/* ---- v4.0: link do ponownego otwarcia ustawien (shortcode) ---- */
.ccc-reopen { cursor: pointer; text-decoration: underline; }

/* ---- v4.0: dluzsze teksty DE/SV nie rozpychaja przyciskow ---- */
.cookie-banner .banner-buttons .btn { white-space: normal; }
