.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 3px solid #5B69FC;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    padding: 20px;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-text {
    flex: 1;
    min-width: 300px;
}

.cookie-text h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    color: #333;
    font-weight: 600;
}

.cookie-text p {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

.cookie-text a {
    color: #5B69FC !important;
    text-decoration: none;
}

.cookie-text a:hover {
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none !important;
    display: inline-block;
    text-align: center;
}

.btn-accept {
    background: #5B69FC !important;
    color: white !important;
    border: none !important;
}

.btn-accept:hover {
    background: #4A58E8 !important;
    color: white !important;
}

.btn-decline {
    background: #f5f5f5 !important;
    color: #666 !important;
    border: 1px solid #ddd !important;
}

.btn-decline:hover {
    background: #e5e5e5 !important;
    color: #666 !important;
}

.btn-settings {
    background: transparent !important;
    color: #5B69FC !important;
    border: 1px solid #5B69FC !important;
}

.btn-settings:hover {
    background: #5B69FC !important;
    color: white !important;
}

.cookie-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 30px;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    margin-bottom: 20px;
}

.modal-header h2 {
    margin: 0;
    color: #333;
}

.cookie-category {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 6px;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.toggle-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;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #5B69FC;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.close-modal {
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
}

.close-modal:hover {
    color: #333;
}

.privacy-float-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: #5B69FC !important;
    color: white !important;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(91, 105, 252, 0.3);
    transition: all 0.3s ease;
    z-index: 9998;
    display: none;
}

.privacy-float-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(91, 105, 252, 0.4);
}

.privacy-float-btn.show {
    display: block;
}

/* Si hay admin bar de WordPress */
.admin-bar .privacy-float-btn {
    bottom: 52px;
}

@media (max-width: 782px) {
    .admin-bar .privacy-float-btn {
        bottom: 66px;
    }
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-actions {
        justify-content: center;
    }
    
    .btn {
        flex: 1;
        min-width: 120px;
    }
    
    .privacy-float-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}