:root {
    --accent-color: #fcd151;
    --accent-hover: #e6b800;
    --background-dark: #232323;
    --background-light: #fff;
    --text-dark: #232323;
    --text-light: #fff;
    --border-radius: 18px;
    --shadow: 0 8px 32px rgba(0,0,0,0.18);
}

.cookie-popup-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.35);
    position: fixed;
    left: 0;
    top: 0;
    z-index: 9999999;
    padding: 0;
}

.cookie-popup-container .cookie-popup {
    background: var(--background-light);
    color: var(--text-dark);
    border-radius: var(--border-radius);
    box-shadow: 0 8px 32px rgba(0,0,0,0.18), 0 1.5px 8px rgba(252,209,81,0.10);
    max-width: 540px;
    width: 100%;
    margin: 0 auto;
    padding: 0;
    overflow: visible;
    position: relative;
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    animation: popup-fade-in 0.6s cubic-bezier(.4,2,.6,1) 1;
    transition: box-shadow 0.3s;
}

.cookie-popup-container .cookie-popup:hover {
    box-shadow: 0 16px 48px rgba(0,0,0,0.22), 0 2px 12px rgba(252,209,81,0.13);
}

@keyframes popup-fade-in {
    from { transform: translateY(60px) scale(0.96); opacity: 0; }
    60% { transform: translateY(-8px) scale(1.02); opacity: 1; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

.cookie-popup-container .cookie-popup .cookie-popup-content-container {
    background: var(--accent-color);
    color: var(--text-dark);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    padding: 32px 32px 16px 32px;
    box-sizing: border-box;
    min-height: 120px;
    transition: all 0.2s;
    box-shadow: none;
    width: 100%;
    height: auto;
    overflow: visible;
}

.cookie-popup-container .cookie-popup .cookie-popup-content-container.open {
    height: auto !important;
}

.cookie-category {
    background: rgba(255,255,255,0.7);
    border-radius: 12px;
    margin-bottom: 18px;
    padding: 16px 18px;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: box-shadow 0.25s, background 0.25s, transform 0.18s;
}

.cookie-category:hover {
    box-shadow: 0 4px 18px rgba(252,209,81,0.13), 0 2px 8px rgba(0,0,0,0.08);
    background: #fffbe6;
    transform: translateY(-2px) scale(1.01);
}

.cookie-cookies-display {
    padding: 0;
    max-height: 480px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) #f5f5f5;
    scroll-behavior: smooth;
}

/* Custom scrollbar for Webkit browsers */
.cookie-cookies-display::-webkit-scrollbar {
    width: 8px;
    background: #f5f5f5;
    border-radius: 8px;
}
.cookie-cookies-display::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 8px;
}

.cookie-popup .cookie-panel ul {
    list-style: none;
    display: flex;
    gap: 8px;
    padding: 0;
    margin: 0 0 18px 0;
}

.cookie-popup .cookie-panel ul li {
    flex: 1;
    text-align: center;
    font-weight: 600;
    cursor: pointer;
    line-height: 20px;
    padding: 12px 0 10px 0;
    border-radius: 8px 8px 0 0;
    background: transparent;
    color: var(--text-dark);
    transition: background 0.2s, color 0.2s;
}

.cookie-popup .cookie-panel ul li.active {
    background: var(--background-light);
    color: var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
}

.cookie-cookies-display .cookie-category .choose {
    font-size: 16px;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    border: 2px solid var(--accent-color);
    cursor: pointer;
    position: relative;
    background: #fff;
    transition: border 0.2s, background 0.2s, box-shadow 0.2s, transform 0.18s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 4px rgba(252,209,81,0.10);
}

.cookie-cookies-display .cookie-category .choose:hover:not(.always-on) {
    border-color: var(--accent-hover);
    box-shadow: 0 2px 8px rgba(252,209,81,0.18);
    transform: scale(1.08);
}

.cookie-cookies-display .cookie-category .choose.active {
    border-color: #fcd151;
    background: #fcd151;
}

.cookie-cookies-display .cookie-category .choose.active::before {
    content: "\2713";
    font-size: 16px;
    color: #fff;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(0deg);
    animation: checkmark-pop 0.3s cubic-bezier(.4,2,.6,1);
}

.cookie-cookies-display .cookie-category .choose.always-on {
    border-color: #fcd151;
    background: #fcd151;
    cursor: not-allowed;
}

.cookie-cookies-display .cookie-category .choose.always-on::before {
    content: "\2713";
    font-size: 16px;
    color: #fff;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(0deg);
}

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

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

.cookie-cookies-display .cookie-category .data .data-resume .cat-main .cookie-cat-name {
    margin: 0;
}

.cookie-cookies-display .cookie-category .data .data-resume .cat-describe {
    font-size: 14px;
    line-height: 20px;
    color: #555;
}

.cookie-decide {
    width: 100%;
    padding: 24px 32px 32px 32px;
    background: var(--background-light);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    box-shadow: none;
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
}

.cookie-decide .pre-cookie-box {
    padding: 0 0 8px 0;
    color: #555;
    font-size: 15px;
}

.cookie-decide .pre-cookie-box a {
    color: var(--accent-hover);
    text-decoration: underline;
    transition: color 0.2s;
}

.cookie-decide ul {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    align-items: center;
    padding: 0;
    margin: 0;
}

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

.cookie-popup .cookie-panel ul li.details-panel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 24px 24px 0 0;
    background: rgba(255,255,255,0.7);
    color: var(--text-dark);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding: 12px 22px 10px 18px;
    transition: background 0.25s, color 0.25s, box-shadow 0.25s, transform 0.25s;
    cursor: pointer;
}

.cookie-popup .cookie-panel ul li.details-panel .cookie-icon {
    font-size: 18px;
    margin-right: 4px;
}

.cookie-popup .cookie-panel ul li.details-panel.active {
    background: var(--background-light);
    color: var(--accent-color);
    box-shadow: 0 4px 16px rgba(252,209,81,0.18);
    transform: translateY(-2px) scale(1.04);
}

.cookie-popup .cookie-panel ul li.details-panel .subtitle {
    display: block;
    font-size: 11px;
    color: #888;
    font-weight: 400;
    margin-top: 2px;
    letter-spacing: 0.01em;
}

.cookie-cookies-display > p {
    margin-bottom: 18px;
    font-size: 15px;
    color: #232323;
    line-height: 1.5;
}

.cookie-category .cat-describe {
    margin-top: 6px;
    font-size: 13.5px;
    color: #666;
    line-height: 1.6;
}

@media (max-width: 1024px) {
    .cookie-popup-container .cookie-popup {
        max-width: 90vw;
    }
    .cookie-cookies-display {
        max-height: 320px;
    }
}

@media (max-width: 768px) {
    
    .cookie-popup-container .cookie-popup .cookie-popup-content-container,
    .cookie-decide {
        padding: 18px 10px 18px 10px;
    }
    .cookie-cookies-display {
        max-height: 220px;
    }
}



@keyframes checkmark-pop {
    0% { opacity: 0; transform: scale(0.5) translate(-50%, -50%); }
    60% { opacity: 1; transform: scale(1.2) translate(-50%, -50%); }
    100% { opacity: 1; transform: scale(1) translate(-50%, -50%); }
}