.cookie-consent {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 99999;
    padding: 16px;
    background: rgba(15, 15, 15, 0.96);
    color: #fff;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.2);
}

.cookie-consent[hidden],
.cookie-preferences[hidden],
.cookie-settings-trigger[hidden] {
    display: none !important;
}

.cookie-consent-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.cookie-consent-text h2 {
    font-size: 1.1rem;
    margin: 0 0 8px;
}

.cookie-consent-text p {
    margin: 0 0 8px;
    font-size: 14px;
    opacity: 0.9;
    max-width: 720px;
}

.cookie-consent-text a {
    color: #fff;
    text-decoration: underline;
    font-size: 13px;
}

.cookie-consent-actions,
.cookie-pref-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cookie-btn {
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: transparent;
    color: #fff;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-family: inherit;
}

.cookie-btn-accept {
    background: #fff;
    color: #0f0f0f;
    border-color: #fff;
}

.cookie-btn:hover {
    opacity: 0.92;
}

.cookie-preferences {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.cookie-preferences-panel {
    background: #fff;
    color: #0f0f0f;
    max-width: 520px;
    width: 100%;
    padding: 24px;
    border-radius: 10px;
    max-height: 90vh;
    overflow-y: auto;
}

.cookie-pref-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 12px 0;
    font-size: 14px;
    line-height: 1.45;
}

.cookie-pref-item input {
    margin-top: 4px;
}

.cookie-settings-trigger {
    position: fixed;
    bottom: 16px;
    inset-inline-start: 16px;
    z-index: 99998;
    background: #0f0f0f;
    color: #fff;
    border: none;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
    cursor: pointer;
    opacity: 0.85;
}

@media (max-width: 767px) {
    .cookie-consent-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-consent-actions {
        flex-direction: column;
    }

    .cookie-btn {
        width: 100%;
        text-align: center;
    }
}
