.eg-cookie-banner {
    position: fixed;
    left: 24px;
    right: 24px;
    bottom: 24px;
    z-index: 9999;
    max-width: 980px;
    margin: 0 auto;
    padding: 18px;
    background: rgba(18, 18, 26, 0.98);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.32);
    font-family: Inter, "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

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

.eg-cookie-banner h2 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 1.05rem;
    line-height: 1.3;
    border: 0;
    padding: 0;
}

.eg-cookie-banner p {
    margin: 0;
    color: #d9d9e8;
    font-size: 0.94rem;
    line-height: 1.5;
}

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

.eg-cookie-btn {
    min-height: 40px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    color: #fff;
    background: transparent;
    font-weight: 700;
    cursor: pointer;
}

.eg-cookie-btn.primary {
    border-color: #7c5cff;
    background: #7c5cff;
}

.eg-cookie-btn:hover {
    border-color: #9f7cff;
}

.eg-cookie-link {
    color: #c9b8ff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.eg-cookie-preferences {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.eg-cookie-row {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    justify-content: space-between;
    padding: 12px 0;
}

.eg-cookie-row + .eg-cookie-row {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.eg-cookie-row strong {
    color: #fff;
}

.eg-cookie-row small {
    display: block;
    margin-top: 4px;
    color: #cfcfe3;
    line-height: 1.4;
}

.eg-cookie-toggle {
    width: 46px;
    height: 26px;
    flex: 0 0 auto;
    accent-color: #7c5cff;
}

.eg-cookie-settings {
    color: inherit;
    border: 0;
    background: transparent;
    padding: 0;
    font: inherit;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 640px) {
    .eg-cookie-banner {
        left: 12px;
        right: 12px;
        bottom: 12px;
        padding: 16px;
    }

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

    .eg-cookie-btn {
        width: 100%;
    }
}
