/* Variables */
:root {
    --accent-color: #DEDE7A;
    --accent-secondary: #bfbd6a;
    --accent-hover: #f4f5d7;
    --background-dark: #0f0f23;
    --background-light: #EBFAFE;
    --background-card: #EBFAFE;
    --text-dark: #1E1E24;
    --text-light: #666666;
    --text-muted: #9a9a9a;
    --border-radius: 20px;
    --border-radius-small: 12px;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.18);
    --gradient-primary: linear-gradient(135deg, #DEDE7A 0%, #bfbd6a 100%);
    --gradient-secondary: linear-gradient(135deg, #EBFAFE 0%, #DEDE7A1A 100%);
}

/* Simplified Keyframes */
@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Popup Container Styles */
.cookie-popup-container {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 15, 35, 0.85);
    position: fixed;
    left: 0;
    top: 0;
    z-index: 9999999;
    padding: 0;
    box-sizing: border-box;
    animation: fade-in 0.3s ease-out;
}

/* Popup Modal Styles */
.cookie-popup-container .cookie-popup {
    background: var(--gradient-secondary);
    color: var(--text-dark);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    box-shadow: var(--shadow);
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
    animation: slide-up 0.3s ease-out;
    border: 2px solid rgba(222, 222, 122, 0.3);
    border-bottom: none;
    display: grid;
    grid-template-rows: auto 1fr auto;
    overflow: hidden;
    box-sizing: border-box;
    max-height: 90vh;
}

.cookie-popup-container .cookie-popup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    z-index: 1;
}

.cookie-popup-container .cookie-popup:hover {
    box-shadow: var(--shadow-hover);
}

/* Cookie Panel Styles (Header Area) */
.cookie-panel {
    padding: 32px 40px 0px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(222, 222, 122, 0.2);
    position: relative;
}

.cookie-popup .cookie-panel ul {
    list-style: none;
    display: flex;
    gap: 0;
    padding: 0;
    margin: 0;
    justify-content: center;
    border-bottom: none;
    width: 100%;
}

.cookie-popup .cookie-panel ul li.consent-panel {
    display: none;
}

.cookie-popup .cookie-panel ul li.details-panel {
    flex: unset;
    font-weight: 800;
    cursor: pointer;
    line-height: 1.1;
    padding: 16px 32px;
    color: white;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    gap: 16px;
    font-size: 22px;
}




.cookie-popup .cookie-panel ul li.details-panel .cookie-icon {
    font-size: 32px;
    margin-right: 0px;
    color: white;
    transition: transform 0.2s ease;
    display: inline-block;
}

.cookie-popup .cookie-panel ul li.details-panel:hover .cookie-icon {
    transform: scale(1.05);
}

.cookie-popup .cookie-panel ul li.details-panel .subtitle {
    display: none;
}

/* Cookie Content Area */
.cookie-content.cookie-mid {
    padding: 0px 40px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex-grow: 1;
    margin-right: 0;
    width: 100%;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.8);
}

/* Cookie Categories Display Area */
.cookie-cookies-display {
    padding: 24px;
    max-height: 52vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) transparent;
    scroll-behavior: smooth;
    flex-grow: 1;
    margin-right: 0;
    width: 100%;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--border-radius-small);
    border: 1px solid rgba(222, 222, 122, 0.2);
    position: relative;
}

/* Custom scrollbar for Webkit browsers */
.cookie-cookies-display::-webkit-scrollbar {
    width: 8px;
    background: transparent;
    border-radius: 8px;
}

.cookie-cookies-display::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 8px;
}

.cookie-cookies-display > p {
    margin-bottom: 24px;
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.6;
    text-align: left;
    font-weight: 500;
    padding: 16px 20px;
    background: rgba(222, 222, 122, 0.1);
    border-radius: var(--border-radius-small);
    border-left: 4px solid var(--accent-color);
}

.cookie-category {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius-small);
    margin-bottom: 16px;
    padding: 20px 24px;
    border: 1px solid rgba(222, 222, 122, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}

.cookie-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.cookie-category:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border-color: rgba(222, 222, 122, 0.4);
}

.cookie-category:hover::before {
    opacity: 1;
}

.cookie-cookies-display .cookie-category .data .data-resume .cat-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.cookie-cookies-display .cookie-category .data .data-resume .cat-main > div {
    display: flex;
    align-items: center;
    gap: 14px;
}

.cookie-cookies-display .cookie-category .data .data-resume .cat-main .cookie-cat-name {
    margin: 0;
    color: var(--text-dark);
    font-weight: 800;
    font-size: 16px;

    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cookie-cookies-display .cookie-category .cat-describe {
    margin-top: 8px;
    
    line-height: 1.6;
    font-weight: 400;
    padding-left: 4px;
}

/* Toggle Switch Styles */
.cookie-cookies-display .cookie-category .choose {
    width: 50px;
    height: 28px;
    border-radius: 14px;
    border: 2px solid #ddd;
    cursor: pointer;
    position: relative;
    background: #ddd;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.cookie-cookies-display .cookie-category .choose::before {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: white;
    left: 3px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cookie-cookies-display .cookie-category .choose:hover:not(.always-on) {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(222, 222, 122, 0.2);
}

.cookie-cookies-display .cookie-category .choose.active {
    border-color: var(--accent-color);
    background: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(222, 222, 122, 0.2);
}

.cookie-cookies-display .cookie-category .choose.active::before {
    left: calc(100% - 25px);
    background: white;
}

.cookie-cookies-display .cookie-category .choose.always-on {
    border-color: var(--accent-color);
    background: var(--accent-color);
    cursor: not-allowed;
    opacity: 0.9;
}

.cookie-cookies-display .cookie-category .choose.always-on::before {
    left: calc(100% - 25px);
    background: white;
}

/* Button Area Styles */
.cookie-decide {
    width: 100%;
    padding: 32px 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 0;
    border-top: 1px solid rgba(222, 222, 122, 0.2);
}

.cookie-decide .pre-cookie-box {
    padding: 0;
    color: var(--text-light);
    
    line-height: 1.5;
    display: none;
}

.cookie-decide .pre-cookie-box h4 {
    color: var(--accent-secondary);
    margin-bottom: 8px;
    font-size: 16px;
    
}

.cookie-decide .pre-cookie-box p {
    margin-bottom: 8px;
}

.cookie-decide .pre-cookie-box p:last-child {
    margin-bottom: 0;
}

.cookie-decide .pre-cookie-box a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.2s;
    border-bottom: 1px solid var(--accent-color);
}

.cookie-decide .pre-cookie-box a:hover {
    color: var(--accent-secondary);
    border-color: var(--accent-secondary);
}

.cookie-decide ul {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    flex-direction: row;
}

.cookie-decide ul li.allow-selection {
    display: none;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .cookie-popup-container {
        padding: 0;
    }
    
    .cookie-popup-container .cookie-popup {
        max-width: 100%;
        max-height: 85vh;
    }
    
    .cookie-panel {
        padding: 24px 20px 20px;
    }
    
    .cookie-popup .cookie-panel ul li.details-panel {
        font-size: 18px;
        gap: 12px;
        padding: 12px 20px;
    }
    
    .cookie-popup .cookie-panel ul li.details-panel .cookie-icon {
        font-size: 26px;
    }
    
    .cookie-content.cookie-mid {
        padding: 0px 20px;
    }
    
    .cookie-cookies-display {
        max-height: 320px;
        padding: 20px;
    }
    
    .cookie-cookies-display > p {
        margin-bottom: 20px;
        font-size: 15px;
        padding: 14px 16px;
    }
    
    .cookie-category {
        padding: 16px 18px;
    }
    
    .cookie-cookies-display .cookie-category .data .data-resume .cat-main .cookie-cat-name {
        font-size: 15px;
    }
    
    .cookie-cookies-display .cookie-category .cat-describe {
        font-size: 13px;
    }
    
    .cookie-cookies-display .cookie-category .choose {
        width: 45px;
        height: 26px;
    }
    
    .cookie-cookies-display .cookie-category .choose::before {
        width: 20px;
        height: 20px;
    }
    
    .cookie-cookies-display .cookie-category .choose.active::before,
    .cookie-cookies-display .cookie-category .choose.always-on::before {
        left: calc(100% - 23px);
    }
    
    .cookie-decide {
        gap: 16px;
        padding: 24px 20px;
    }
    
    .cookie-decide ul {
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .cookie-panel {
        padding: 20px 16px 16px;
    }
    
    .cookie-popup .cookie-panel ul li.details-panel {
        font-size: 16px;
        gap: 10px;
        padding: 10px 16px;
    }
    
    .cookie-popup .cookie-panel ul li.details-panel .cookie-icon {
        font-size: 22px;
    }
    
    
    
    
    .cookie-category {
        padding: 14px 16px;
    }
    
    .cookie-decide {
        padding: 20px 16px;
    }
    
    .cookie-decide ul {
        flex-direction: column;
        gap: 12px;
    }
}