/* Banner Cookie Consent */
.cookie-consent-banner {
    position: fixed;
    z-index: 999999;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 14px;
    line-height: 1.5;
    max-width: 400px;
    width: calc(100% - 40px);
    margin: 20px;
}

/* Pozycje bannera */
.cookie-consent-banner--bottom {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.cookie-consent-banner--top {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.cookie-consent-banner--top-left {
    top: 20px;
    left: 20px;
    transform: none;
}

.cookie-consent-banner--top-right {
    top: 20px;
    right: 20px;
    transform: none;
}

.cookie-consent-banner--bottom-left {
    bottom: 20px;
    left: 20px;
    transform: none;
}

.cookie-consent-banner--bottom-right {
    bottom: 20px;
    right: 20px;
    transform: none;
}

/* Styl nowoczesny */
.cookie-consent-banner--modern {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 16px;
}

.cookie-consent-banner--modern .cookie-consent-banner__title {
    color: white;
}

.cookie-consent-banner--modern .cookie-consent-banner__btn--secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cookie-consent-banner--modern .cookie-consent-banner__btn--secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}

.cookie-consent-banner--modern .cookie-consent-banner__btn--primary {
    background: white;
    color: #667eea;
}

.cookie-consent-banner--modern .cookie-consent-banner__btn--primary:hover {
    background: #f8f9fa;
}

/* Styl klasyczny */
.cookie-consent-banner--classic {
    background: #f8f9fa;
    border: 2px solid #007cba;
    border-radius: 4px;
}

.cookie-consent-banner--classic .cookie-consent-banner__title {
    color: #007cba;
}

/* Styl minimalistyczny */
.cookie-consent-banner--minimal {
    background: white;
    border: 1px solid #ddd;
    border-radius: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.cookie-consent-banner__content {
    padding: 20px;
}

.cookie-consent-banner__header {
    margin-bottom: 15px;
}

.cookie-consent-banner__title {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.cookie-consent-banner__body {
    margin-bottom: 20px;
}

.cookie-consent-banner__text,
.cookie-consent-banner__consent-text {
    margin: 0 0 10px 0;
    color: inherit;
}

.cookie-consent-banner__footer {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cookie-consent-banner__buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-consent-banner__btn {
    padding: 10px 16px;
    border: 1px solid #007cba;
    border-radius: 4px;
    background: white;
    color: #007cba;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    min-width: 80px;
}

.cookie-consent-banner__btn:hover {
    background: #f8f9fa;
    transform: translateY(-1px);
}

.cookie-consent-banner__btn--primary {
    background: #007cba;
    color: white;
}

.cookie-consent-banner__btn--primary:hover {
    background: #005a87;
}

.cookie-consent-banner__policy {
    text-align: center;
}

.cookie-consent-banner__policy a {
    color: inherit;
    text-decoration: underline;
    font-size: 12px;
    opacity: 0.8;
}

.cookie-consent-banner__policy a:hover {
    opacity: 1;
}

/* Modal z kategoriami */
.cookie-consent-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-consent-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.cookie-consent-modal__content {
    position: relative;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: calc(100% - 40px);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.cookie-consent-modal__header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-consent-modal__title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.cookie-consent-modal__close {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.cookie-consent-modal__close:hover {
    background: #f0f0f0;
}

.cookie-consent-modal__body {
    padding: 24px;
}

.cookie-consent-modal__intro {
    margin: 0 0 24px 0;
    color: #666;
    line-height: 1.6;
}

.cookie-consent-categories {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cookie-consent-category {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    background: #fafafa;
}

.cookie-consent-category--necessary {
    background: #e8f5e8;
    border-color: #4caf50;
}

.cookie-consent-category__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.cookie-consent-category__title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.cookie-consent-category__status {
    font-size: 12px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 12px;
}

.fajne-cookie-category__status--always {
    background: #4caf50;
    color: white;
}

.fajne-cookie-category__description {
    margin: 0;
    color: #666;
    line-height: 1.5;
    font-size: 14px;
}

/* Toggle switch */
.fajne-cookie-category__toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.fajne-cookie-category__toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.fajne-cookie-category__toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 24px;
}

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

.fajne-cookie-category__toggle input:checked + .fajne-cookie-category__toggle-slider {
    background-color: #007cba;
}

.fajne-cookie-category__toggle input:checked + .fajne-cookie-category__toggle-slider:before {
    transform: translateX(26px);
}

.fajne-cookie-modal__footer {
    padding: 20px 24px 24px;
    border-top: 1px solid #e0e0e0;
}

.cookie-consent-modal__buttons {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.cookie-consent-modal__btn {
    padding: 12px 20px;
    border: 1px solid #007cba;
    border-radius: 6px;
    background: white;
    color: #007cba;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 120px;
}

.cookie-consent-modal__btn:hover {
    background: #f8f9fa;
    transform: translateY(-1px);
}

.cookie-consent-modal__btn--primary {
    background: #007cba;
    color: white;
}

.cookie-consent-modal__btn--primary:hover {
    background: #005a87;
}

/* Responsywność */
@media (max-width: 768px) {
    .cookie-consent-banner {
        max-width: none;
        width: calc(100% - 20px);
        margin: 10px;
        font-size: 13px;
    }
    
    .cookie-consent-banner__content {
        padding: 16px;
    }
    
    .cookie-consent-banner__buttons {
        flex-direction: column;
    }
    
    .cookie-consent-banner__btn {
        width: 100%;
    }
    
    .cookie-consent-modal__content {
        width: calc(100% - 20px);
        margin: 10px;
    }
    
    .cookie-consent-modal__header,
    .cookie-consent-modal__body,
    .cookie-consent-modal__footer {
        padding: 16px;
    }
    
    .cookie-consent-modal__buttons {
        flex-direction: column;
    }
    
    .cookie-consent-modal__btn {
        width: 100%;
    }
}

/* Animacje */
.cookie-consent-banner,
.cookie-consent-modal {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ukrywanie */
.cookie-consent-banner.cookie-consent-banner--hidden,
.cookie-consent-modal.cookie-consent-modal--hidden {
    display: none !important;
}
