#progexam-cookie-banner,
#progexam-cookie-preferences {
    position: fixed;
    z-index: 10000;
    color: #e2e8f0;
    background: #0f172a;
    border: 1px solid #475569;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
}

#progexam-cookie-banner[hidden],
#progexam-cookie-preferences[hidden] {
    display: none !important;
}

#progexam-cookie-banner {
    right: 20px;
    bottom: 80px;
    left: 20px;
    max-width: 760px;
    margin: 0 auto;
    padding: 20px;
    border-radius: 14px;
}

#progexam-cookie-banner h2,
#progexam-cookie-preferences h2,
#progexam-cookie-preferences h3 {
    margin-top: 0;
    color: #f8fafc;
}

#progexam-cookie-banner p,
#progexam-cookie-preferences p {
    color: #cbd5e1;
    line-height: 1.55;
}

.progexam-cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.progexam-cookie-button {
    min-height: 42px;
    padding: 10px 15px;
    border: 1px solid #64748b;
    border-radius: 9px;
    color: #f8fafc;
    background: #1e293b;
    cursor: pointer;
    font: inherit;
    font-weight: 650;
}

.progexam-cookie-button:hover,
.progexam-cookie-button:focus-visible {
    border-color: #22d3ee;
    color: #67e8f9;
}

.progexam-cookie-button-primary {
    background: #0891b2;
    border-color: #22d3ee;
    color: #fff;
}

#progexam-cookie-preferences {
    top: 50%;
    left: 50%;
    width: min(92vw, 620px);
    max-height: 85vh;
    overflow-y: auto;
    padding: 24px;
    border-radius: 14px;
    transform: translate(-50%, -50%);
}

.progexam-cookie-category {
    padding: 15px 0;
    border-top: 1px solid #334155;
}

.progexam-cookie-category-header {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    align-items: center;
}

.progexam-cookie-always-active {
    color: #67e8f9;
    font-weight: 700;
}

.progexam-cookie-switch {
    display: inline-flex;
    gap: 10px;
    align-items: center;
}

#progexam-cookie-banner a,
#progexam-cookie-preferences a {
    color: #67e8f9;
}

@media (max-width: 600px) {
    #progexam-cookie-banner {
        right: 10px;
        bottom: 10px;
        left: 10px;
        padding: 16px;
    }

    .progexam-cookie-actions {
        flex-direction: column;
    }

    .progexam-cookie-button {
        width: 100%;
    }
}

.progexam-cookie-close {
    display: block;
    margin: 14px auto 0;
    padding: 6px 10px;
    border: 0;
    color: #94a3b8;
    background: transparent;
    cursor: pointer;
    font: inherit;
    text-decoration: underline;
}

.progexam-cookie-close:hover,
.progexam-cookie-close:focus-visible {
    color: #67e8f9;
}