/* Aviso de Cookies - Generate Press */
.gp-cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #333;
    color: #fff;
    padding: 15px 0;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    animation: slideUp 0.3s ease-out;
}

.gp-cookie-notice-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.gp-cookie-notice-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.gp-cookie-notice-content p {
    margin: 0;
    flex: 1;
    min-width: 300px;
    color: #fff;
}

.gp-cookie-notice-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.gp-cookie-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.gp-cookie-btn-primary {
    background: #007cba;
    color: white;
}

.gp-cookie-btn-primary:hover {
    background: #005a87;
}

.gp-cookie-btn-secondary {
    background: transparent;
    color: #fff;
    border: 1px solid #fff;
}

.gp-cookie-btn-secondary:hover {
    background: #fff;
    color: #333;
}

.gp-cookie-link {
    color: #007cba;
    text-decoration: none;
}

.gp-cookie-link:hover {
    text-decoration: underline;
}

/* Modal de configuración */
.gp-cookie-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    animation: fadeIn 0.3s ease-out;
}

.gp-cookie-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.gp-cookie-modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gp-cookie-modal-header h3 {
    margin: 0;
    color: #333;
}

.gp-cookie-close {
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.gp-cookie-close:hover {
    color: #333;
}

.gp-cookie-modal-body {
    padding: 20px;
}

.gp-cookie-option {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 15px;
}

.gp-cookie-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.gp-cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.gp-cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.gp-cookie-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .gp-cookie-slider {
    background-color: #007cba;
}

input:checked + .gp-cookie-slider:before {
    transform: translateX(26px);
}

input:disabled + .gp-cookie-slider {
    background-color: #666;
    cursor: not-allowed;
}

.gp-cookie-option-text {
    flex: 1;
}

.gp-cookie-option-text strong {
    display: block;
    color: #333;
    margin-bottom: 2px;
}

.gp-cookie-option-text span {
    font-size: 12px;
    color: #666;
}

.gp-cookie-modal-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Pestañas en el modal de configuración */
.gp-cookie-tabs {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin: 0 20px 20px 20px;
}

.gp-cookie-tab {
    padding: 12px 20px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-bottom: none;
    cursor: pointer;
    margin-right: 5px;
    border-radius: 4px 4px 0 0;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.gp-cookie-tab:hover {
    background: #e9ecef;
}

.gp-cookie-tab.active {
    background: #007cba;
    color: white;
    border-color: #007cba;
}

.gp-cookie-tab-content {
    display: none;
    padding: 0 20px;
}

.gp-cookie-tab-content.active {
    display: block;
}

/* Contenido de la lista de cookies */
.gp-cookie-detail-list {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 15px;
    background: #fafafa;
    margin-bottom: 15px;
}

.gp-cookie-detail-item {
    padding: 10px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 13px;
    line-height: 1.4;
}

.gp-cookie-detail-item:last-child {
    border-bottom: none;
}

.gp-cookie-detail-item strong {
    color: #333;
    display: inline-block;
    min-width: 80px;
}

/* Estilos para el listado de cookies */
.gp-cookie-list-container {
    max-width: 100%;
    margin: 20px 0;
}

.gp-cookie-category {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.gp-cookie-category h4 {
    color: #333;
    margin-top: 0;
    border-bottom: 2px solid #007cba;
    padding-bottom: 10px;
}

.gp-cookie-table {
    overflow-x: auto;
    margin-top: 15px;
}

.gp-cookie-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.gp-cookie-table th {
    background: #007cba;
    color: white;
    padding: 12px;
    text-align: left;
    font-weight: 600;
}

.gp-cookie-table td {
    padding: 12px;
    border-bottom: 1px solid #e0e0e0;
}

.gp-cookie-table tr:hover {
    background: #f5f5f5;
}

.gp-cookie-table code {
    background: #f1f1f1;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: monospace;
    color: #d63384;
}

.gp-cookie-list-actions {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    border-top: 1px solid #e0e0e0;
}

/* Animaciones */
@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .gp-cookie-notice-content {
        flex-direction: column;
        text-align: center;
    }
    
    .gp-cookie-notice-content p {
        min-width: auto;
    }
    
    .gp-cookie-modal-content {
        width: 95%;
    }
    
    .gp-cookie-modal-footer {
        flex-direction: column;
    }
    
    .gp-cookie-tabs {
        flex-direction: column;
    }
    
    .gp-cookie-tab {
        margin-right: 0;
        margin-bottom: 5px;
        border-radius: 4px;
    }
}