.storymode-cookie-consent {
    z-index: 1050;
    width: min(560px, calc(100% - 40px));
    box-sizing: border-box;
    padding: 1.25rem 1.5rem;
    background: #232323;
    color: #fff;
    position: fixed;
    bottom: 20px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    display: none;
    border-radius: 8px;
    opacity: 0.97;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.storymode-cookie-consent.is-open {
    display: block;
}

.storymode-cookie-consent__text {
    margin: 0 0 1rem;
    font-size: 0.875rem;
    line-height: 1.45;
}

.storymode-cookie-consent__text a {
    color: #fff;
    text-decoration: underline;
    opacity: 0.85;
}

.storymode-cookie-consent__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.storymode-cookie-consent__btn {
    border: 0;
    border-radius: 6px;
    padding: 0.55rem 0.9rem;
    font-size: 0.8125rem;
    cursor: pointer;
}

.storymode-cookie-consent__btn--primary {
    background: linear-gradient(135deg, #761bff, #9b4dff);
    color: #fff;
}

.storymode-cookie-consent__btn--secondary {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.storymode-cookie-consent__btn--ghost {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.storymode-cookie-consent-modal {
    position: fixed;
    inset: 0;
    z-index: 1060;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.55);
}

.storymode-cookie-consent-modal.is-open {
    display: flex;
}

.storymode-cookie-consent-modal__panel {
    width: min(640px, 100%);
    max-height: min(90vh, 720px);
    overflow: auto;
    background: #1b1b1f;
    color: #f5f5f5;
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
}

.storymode-cookie-consent-modal__title {
    margin: 0 0 1rem;
    font-size: 1.125rem;
}

.storymode-cookie-consent-category {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 0.85rem 1rem;
    margin-bottom: 0.75rem;
}

.storymode-cookie-consent-category__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.storymode-cookie-consent-category__title {
    margin: 0;
    font-size: 0.9375rem;
}

.storymode-cookie-consent-category__desc {
    margin: 0.45rem 0 0;
    font-size: 0.8125rem;
    opacity: 0.85;
}

.storymode-cookie-consent-category__badge {
    font-size: 0.75rem;
    opacity: 0.7;
}

.storymode-cookie-embed-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    min-height: 220px;
    padding: 1.5rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.06);
    border: 1px dashed rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.page-static .storymode-cookie-embed-placeholder,
.presentation-page .storymode-cookie-embed-placeholder {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
    color: #e8e8e8;
}

.storymode-cookie-embed-placeholder__btn {
    border: 0;
    border-radius: 6px;
    padding: 0.55rem 1rem;
    background: linear-gradient(135deg, #761bff, #9b4dff);
    color: #fff;
    cursor: pointer;
}

.storymode-cookie-consent-modal .form-check-input {
    width: 1rem;
    height: 1rem;
    cursor: pointer;
}

.course-video-wrap .storymode-cookie-embed-placeholder {
    min-height: 320px;
    color: #fff;
    background: rgba(0, 0, 0, 0.35);
    border-color: rgba(255, 255, 255, 0.25);
}

@media (max-width: 980px) {
    .storymode-cookie-consent {
        bottom: 0;
        width: 100%;
        max-width: 100%;
        border-radius: 0;
        transform: translateX(-50%);
    }
}
