/* Lucentum Cookie Consent CSS */

/* Base Variables */
:root {
    --lcc-primary: #0440A8;
    /* Premium Red/Brand Color */
    --lcc-primary-hover: #0440A8;
    --lcc-secondary: #f1faee;
    --lcc-text: #1d3557;
    --lcc-bg: #ffffff;
    --lcc-overlay: rgba(0, 0, 0, 0.5);
    --lcc-border-radius: 8px;
    --lcc-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --lcc-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Utilities */
.hidden {
    display: none !important;
}

/* Banner Styles */
#lucentum-cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1000px;
    background: var(--lcc-bg);
    padding: 24px;
    box-shadow: var(--lcc-shadow);
    border-radius: var(--lcc-border-radius);
    z-index: 999999;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    border: 1px solid #f0f0f0;
    font-family: var(--lcc-font-family);
}

.lucentum-banner-content {
    flex: 1 1 500px;
}

.lucentum-banner-content h3 {
    margin: 0 0 10px 0;
    font-size: 1.25rem;
    color: var(--lcc-text);
}

.lucentum-banner-content p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #4a5568;
}

.lucentum-banner-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Button Styles */
.lucentum-btn {
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    flex: 1 1 auto;
    text-align: center;
    min-width: 100px;
}

.lucentum-btn-primary {
    background-color: var(--lcc-primary);
    color: white;
}

.lucentum-btn-primary:hover {
    background-color: var(--lcc-primary-hover);
    transform: translateY(-1px);
}

.lucentum-btn-secondary {
    background-color: #f1f3f5;
    color: #333;
}

.lucentum-btn-secondary:hover {
    background-color: #e9ecef;
}

.lucentum-btn-outline {
    background-color: transparent;
    border: 1px solid #ddd;
    color: #666;
}

.lucentum-btn-outline:hover {
    border-color: #bbb;
    color: #333;
}

/* Modal Styles */
.lucentum-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--lcc-overlay);
    z-index: 1000000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lucentum-modal-content {
    background: white;
    width: 90%;
    max-width: 600px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    font-family: var(--lcc-font-family);
}

.lucentum-modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lucentum-modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.lucentum-close {
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    color: #888;
}

.lucentum-modal-body {
    padding: 20px;
    overflow-y: auto;
}

.lucentum-modal-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    text-align: right;
    background: #f9f9f9;
}

/* Cookie Categories */
.lucentum-cookie-category {
    margin-bottom: 20px;
    border: 1px solid #f0f0f0;
    padding: 15px;
    border-radius: 8px;
}

.lucentum-cookie-category:last-child {
    margin-bottom: 0;
}

.lucentum-cat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-weight: 600;
}

.lucentum-cookie-category p {
    margin: 0;
    font-size: 0.85rem;
    color: #666;
}

/* Toggle Switch */
.lucentum-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.lucentum-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.lucentum-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.lucentum-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
}

input:checked+.lucentum-slider {
    background-color: var(--lcc-primary);
}

input:focus+.lucentum-slider {
    box-shadow: 0 0 1px var(--lcc-primary);
}

input:checked+.lucentum-slider:before {
    transform: translateX(20px);
}

.lucentum-slider.round {
    border-radius: 24px;
}

.lucentum-slider.round:before {
    border-radius: 50%;
}

.lucentum-switch.disabled input:checked+.lucentum-slider {
    background-color: #0440A8;
    cursor: not-allowed;
}

/* Footer Link */
#lucentum-manage-consent-link {
    display: none;
    position: fixed;
    bottom: 10px;
    left: 20px;
    z-index: 999990;
    font-size: 12px;
    color: #666;
    background: rgba(255, 255, 255, 0.8);
    padding: 4px 8px;
    border-radius: 4px;
    text-decoration: none;
    border: 1px solid #ddd;
    font-family: var(--lcc-font-family);
    cursor: pointer;
}

#lucentum-manage-consent-link:hover {
    color: var(--lcc-primary);
    border-color: var(--lcc-primary);
}

/* Responsive */
@media (max-width: 768px) {
    #lucentum-cookie-banner {
        flex-direction: column;
        align-items: stretch;
        bottom: 0;
        width: 100%;
        border-radius: 12px 12px 0 0;
        left: 0;
        transform: none;
        max-width: none;
    }

    .lucentum-banner-actions {
        flex-direction: column;
    }

    .lucentum-btn {
        width: 100%;
    }
}