/**
 * GDPR Cookie Consent Banner Styles - Compact Version
 */

.eurovac-cookie-banner {
    position: fixed;
    bottom: 20px;
    right: 20px;
    left: auto;
    width: 420px;
    max-width: calc(100vw - 40px);
    background: #fff;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
    z-index: 999999;
    padding: 0;
    border-radius: 12px;
    animation: slideUp 0.4s ease-out;
}

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

.cookie-banner-content {
    padding: 20px 24px;
    position: relative;
}

.cookie-banner-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
    transition: color 0.2s;
}

.cookie-banner-close:hover {
    color: #333;
}

.eurovac-cookie-banner h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #1a1a1a;
    font-weight: 600;
    padding-right: 25px;
}

.eurovac-cookie-banner p {
    margin: 0 0 15px 0;
    color: #666;
    line-height: 1.5;
    font-size: 13px;
}

.cookie-options {
    margin: 12px 0 16px 0;
}

.cookie-option {
    margin-bottom: 8px;
    padding: 8px 10px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #0066cc;
}

.cookie-option label {
    display: block;
    cursor: pointer;
    margin: 0;
}

.cookie-option input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
    width: 16px;
    height: 16px;
    vertical-align: middle;
}

.cookie-option input[type="checkbox"]:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.cookie-option strong {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 13px;
}

.cookie-desc {
    display: block;
    margin-top: 3px;
    margin-left: 24px;
    font-size: 11px;
    color: #888;
    line-height: 1.4;
}

.cookie-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.cookie-actions button {
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    flex: 1;
    min-width: auto;
}

.btn-accept-all {
    background: #0066cc;
    color: #fff;
}

.btn-accept-all:hover {
    background: #0052a3;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.btn-accept-selected {
    background: #28a745;
    color: #fff;
}

.btn-accept-selected:hover {
    background: #218838;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.btn-reject-all {
    background: #fff;
    color: #666;
    border: 2px solid #ddd;
}

.btn-reject-all:hover {
    background: #f8f9fa;
    border-color: #999;
    color: #333;
}

.cookie-footer {
    margin: 10px 0 0 0;
    padding-top: 10px;
    border-top: 1px solid #e0e0e0;
    font-size: 11px;
    color: #888;
    text-align: center;
}

.cookie-footer a {
    color: #0066cc;
    text-decoration: none;
    margin: 0 6px;
}

.cookie-footer a:hover {
    text-decoration: underline;
}

/* Cookie Settings Button - Hidden (user will add to footer manually) */
.cookie-settings-btn {
    display: none !important;
}

/* Cookie Settings Link Styles (for manual footer placement) */
a.eurovac-cookie-settings,
button.eurovac-cookie-settings {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    font-size: inherit;
    display: inline;
}

a.eurovac-cookie-settings:hover,
button.eurovac-cookie-settings:hover {
    text-decoration: underline;
    opacity: 0.8;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .eurovac-cookie-banner {
        bottom: 10px;
        right: 10px;
        left: 10px;
        width: auto;
    }
    
    .cookie-banner-content {
        padding: 16px 18px;
    }
    
    .eurovac-cookie-banner h3 {
        font-size: 15px;
        margin-bottom: 8px;
        padding-right: 25px;
    }
    
    .eurovac-cookie-banner p {
        font-size: 12px;
    }
    
    .cookie-actions {
        flex-direction: column;
    }
    
    .cookie-actions button {
        width: 100%;
        min-width: auto;
        padding: 9px 14px;
    }
}

/* Accessibility */
.eurovac-cookie-banner:focus-within {
    outline: 2px solid #0066cc;
    outline-offset: -2px;
}

button:focus-visible {
    outline: 2px solid #0066cc;
    outline-offset: 2px;
}

/* Dark mode support (if needed) */
@media (prefers-color-scheme: dark) {
    .eurovac-cookie-banner {
        background: #1a1a1a;
        color: #e0e0e0;
    }
    
    .eurovac-cookie-banner h3 {
        color: #fff;
    }
    
    .eurovac-cookie-banner p {
        color: #ccc;
    }
    
    .cookie-option {
        background: #2a2a2a;
    }
    
    .cookie-option strong {
        color: #fff;
    }
    
    .cookie-desc {
        color: #aaa;
    }
    
    .btn-reject-all {
        background: #2a2a2a;
        color: #e0e0e0;
        border-color: #555;
    }
    
    .cookie-settings-btn {
        background: #2a2a2a;
        color: #fff;
        border-color: #0066cc;
    }
}

