#openlx-org-analytics-consent[hidden] {
    display: none !important;
}

#openlx-org-analytics-consent.openlx-org-analytics-consent {
    position: fixed;
    z-index: 100000;
    inset-inline: 16px;
    bottom: 16px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: min(100% - 32px, 1080px);
    margin-inline: auto;
    padding: 18px 20px;
    max-height: min(70vh, 360px);
    overflow: auto;
    color: #f8fafc;
    background: #142b45;
    border: 1px solid #607b93;
    border-radius: 6px;
    box-shadow: 0 12px 36px rgb(10 23 36 / 30%);
    font-size: 1rem;
    line-height: 1.6;
}

#openlx-org-analytics-consent .openlx-org-analytics-consent__copy {
    min-width: 0;
}

#openlx-org-analytics-consent h2 {
    margin: 0 0 5px;
    color: #fff;
    font-size: 1.0625rem;
    line-height: 1.4;
}

#openlx-org-analytics-consent p {
    margin: 0;
}

#openlx-org-analytics-consent a {
    color: #f2cb7a;
    text-decoration: underline;
    text-underline-offset: 2px;
}

#openlx-org-analytics-consent .openlx-org-analytics-consent__actions {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    gap: 10px;
}

#openlx-org-analytics-consent button {
    min-height: 44px;
    padding: 9px 15px;
    color: #fff;
    background: #243b55;
    border: 1px solid #a6b8c8;
    border-radius: 4px;
    cursor: pointer;
    font: inherit;
    font-weight: 650;
}

#openlx-org-analytics-consent button.is-primary {
    color: #142b45;
    background: #f2cb7a;
    border-color: #f2cb7a;
}

#openlx-org-analytics-consent button:hover {
    filter: brightness(1.08);
}

#openlx-org-analytics-consent button:focus-visible,
#openlx-org-analytics-consent a:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

#openlx-org-analytics-consent .openlx-org-analytics-consent__status {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    clip-path: inset(50%);
}

.openlx-org-analytics-screen-reader {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    clip-path: inset(50%) !important;
    border: 0 !important;
}

@media (max-width: 680px) {
    #openlx-org-analytics-consent.openlx-org-analytics-consent {
        inset-inline: 12px;
        bottom: 12px;
        width: calc(100% - 24px);
        max-height: min(70vh, 420px);
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
        padding: 12px;
        font-size: 0.9375rem;
        line-height: 1.5;
    }

    #openlx-org-analytics-consent .openlx-org-analytics-consent__actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    #openlx-org-analytics-consent button {
        width: 100%;
    }
}
