/* Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    z-index: 9999;
    font-size: 14px;
    line-height: 1.5;
}

/* Banner Positions */
.cookie-banner.bottom {
    left: 0;
    right: 0;
    bottom: 0;
}

.cookie-banner.top {
    left: 0;
    right: 0;
    top: 0;
}

.cookie-banner.bottom-left {
    left: 20px;
    bottom: 20px;
    max-width: 400px;
}

.cookie-banner.bottom-right {
    right: 20px;
    bottom: 20px;
    max-width: 400px;
}

/* Banner Layouts */
.cookie-banner.bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-banner.box {
    border-radius: 8px;
}

.cookie-banner.floating {
    border-radius: 8px;
    max-width: 400px;
}

.cookie-banner-content h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 600;
}

.cookie-banner-content p {
    margin: 0 0 15px 0;
}

.cookie-banner-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-banner-buttons button {
    padding: 8px 16px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.accept-all-cookies {
    background: #4CAF50;
    color: white;
}

.accept-all-cookies:hover {
    background: #45a049;
}

.reject-all-cookies {
    background: #f44336;
    color: white;
}

.reject-all-cookies:hover {
    background: #da190b;
}

.cookie-settings-button {
    background: #f1f1f1;
    color: #333;
}

.cookie-settings-button:hover {
    background: #ddd;
}

/* Modal Styles */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
}

.cookie-modal-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.cookie-categories {
    margin: 20px 0;
}

.cookie-category {
    margin-bottom: 15px;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 4px;
}

.cookie-category label {
    display: flex;
    align-items: center;
    font-weight: 600;
    margin-bottom: 5px;
}

.cookie-category input[type="checkbox"] {
    margin-right: 10px;
}

.category-description {
    margin: 5px 0 0 25px;
    color: #666;
    font-size: 13px;
}

/* Floating Button Styles */
.cookie-floating-button {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 9998;
    display: none; /* Initially hidden, shown via JS after banner is closed */
}

.cookie-floating-button button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 12px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.save-cookie-settings{
    background: #000;
    border: 0;
    outline: 0;
    color: #fff;
    padding: 17px 30px;
    border-radius: 41px;
    margin-top: 13px;
}

.cookie-floating-button button:hover {
    background: #45a049;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transform: translateY(-2px);
}

.cookie-floating-button svg {
    width: 20px;
    height: 20px;
}

/* Initial state handling */
.cookie-banner.initial-hidden {
    display: none;
}

/* Fade in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cookie-banner.show {
    display: block;
    animation: fadeIn 0.5s ease-out forwards;
}

/* Animation for floating button */
@keyframes slideIn {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-floating-button.visible {
    display: block;
    animation: slideIn 0.5s ease-out;
}