.cookie-consent-banner {
    box-sizing: border-box;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 100vw;
    z-index: 100000;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: #0e0d21;
    color: #ffffff;
    padding: 18px 24px;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.25);
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    pointer-events: none;
}

.cookie-consent-banner * {
    box-sizing: border-box;
}

.cookie-consent-banner.is-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.cookie-consent-banner p {
    margin: 0;
    flex: 1 1 0%;
    min-width: 0;
    overflow-wrap: break-word;
    word-break: break-word;
    font-size: 0.92rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
}

.cookie-consent-banner a {
    color: #ffffff;
    text-decoration: underline;
}

.cookie-consent-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-btn {
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.cookie-btn:hover {
    transform: translateY(-1px);
}

.cookie-btn-primary {
    background: #A500FF;
    color: #ffffff;
}

.cookie-btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

@media (max-width: 600px) {
    .cookie-consent-banner {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    .cookie-consent-banner p {
        /* explicit width instead of flex-basis: in column mode flex-basis
           sizes the height, not the width, which caused a huge empty gap */
        flex: none;
        width: 100%;
    }
    .cookie-consent-actions {
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cookie-consent-banner {
        transition: none;
    }
}
