@keyframes gdpr-slide-up {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes gdpr-fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes gdpr-scale-in {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes gdpr-btn-pop {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

#gdpr-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #e0e0e0;
    padding: 24px 20px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.12);
    z-index: 9999;
    font-family: inherit;
    display: none;
}

#gdpr-cookie-banner.gdpr-visible {
    display: block;
    animation: gdpr-slide-up 0.4s ease-out;
}

.gdpr-cookie-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.gdpr-cookie-text {
    flex: 1;
    min-width: 280px;
    color: #333;
    font-size: 14px;
    line-height: 1.6;
}

.gdpr-cookie-text p {
    margin: 0 0 6px 0;
}

.gdpr-cookie-text p:last-child {
    margin-bottom: 0;
}

.gdpr-cookie-text a {
    color: #007bff;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.gdpr-cookie-text a:hover {
    color: #0056b3;
}

.gdpr-cookie-text a:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

.gdpr-cookie-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.gdpr-btn {
    padding: 10px 22px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
    font-weight: 500;
    white-space: nowrap;
}

.gdpr-btn:focus-visible {
    outline: 2px solid #0056b3;
    outline-offset: 2px;
}

.gdpr-btn:active {
    transform: scale(0.97);
}

.gdpr-btn-accept {
    background: #007bff;
    color: #fff;
}

.gdpr-btn-accept:hover {
    background: #0062cc;
    box-shadow: 0 2px 8px rgba(0,123,255,0.3);
}

.gdpr-btn-reject {
    background: #6c757d;
    color: #fff;
}

.gdpr-btn-reject:hover {
    background: #5a6268;
    box-shadow: 0 2px 8px rgba(108,117,125,0.3);
}

.gdpr-btn-settings {
    background: transparent;
    color: #007bff;
    border: 1px solid #007bff;
}

.gdpr-btn-settings:hover {
    background: #f0f6ff;
    box-shadow: 0 2px 8px rgba(0,123,255,0.15);
}

#gdpr-cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

#gdpr-cookie-modal.gdpr-visible {
    display: flex;
    animation: gdpr-fade-in 0.2s ease-out;
}

.gdpr-modal-content {
    background: #fff;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 28px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    animation: gdpr-scale-in 0.3s ease-out;
}

.gdpr-modal-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 24px 0;
    color: #222;
}

.gdpr-category {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.gdpr-category:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.gdpr-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.gdpr-category-name {
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

.gdpr-toggle {
    position: relative;
    width: 50px;
    height: 26px;
    flex-shrink: 0;
    margin-left: 12px;
}

.gdpr-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.gdpr-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ccc;
    border-radius: 26px;
    transition: background 0.3s;
}

.gdpr-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.gdpr-toggle input:checked + .gdpr-slider {
    background: #007bff;
}

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

.gdpr-toggle input:disabled + .gdpr-slider {
    background: #007bff;
    opacity: 0.5;
    cursor: not-allowed;
}

.gdpr-toggle input:disabled + .gdpr-slider:before {
    box-shadow: none;
}

.gdpr-toggle input:focus-visible + .gdpr-slider {
    outline: 2px solid #0056b3;
    outline-offset: 2px;
}

.gdpr-slider:hover {
    background: #bbb;
}

.gdpr-toggle input:checked + .gdpr-slider:hover {
    background: #0062cc;
}

.gdpr-category-description {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

.gdpr-modal-buttons {
    display: flex;
    gap: 10px;
    margin-top: 24px;
}

.gdpr-modal-buttons .gdpr-btn {
    flex: 1;
}

.gdpr-floating-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9998;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 12px rgba(0,123,255,0.4);
    transition: background 0.2s, transform 0.2s;
    padding: 0;
}

.gdpr-floating-btn:hover {
    background: #0056b3;
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(0,123,255,0.5);
}

.gdpr-floating-btn:focus-visible {
    outline: 2px solid #0056b3;
    outline-offset: 3px;
}

.gdpr-floating-btn.gdpr-floating-visible {
    display: flex;
    animation: gdpr-btn-pop 0.3s ease-out;
}

.gdpr-cookie-hidden {
    display: none !important;
}

@media (max-width: 576px) {
    #gdpr-cookie-banner {
        padding: 16px;
    }

    .gdpr-cookie-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .gdpr-cookie-text {
        min-width: 100%;
        font-size: 13px;
    }

    .gdpr-cookie-buttons {
        width: 100%;
        justify-content: stretch;
    }

    .gdpr-cookie-buttons .gdpr-btn {
        flex: 1;
        min-width: 0;
        padding: 10px 12px;
        font-size: 13px;
    }

    .gdpr-modal-content {
        width: 95%;
        padding: 20px;
    }

    .gdpr-modal-title {
        font-size: 18px;
    }
}