/* sciloop's opt-in, site-wide Matomo controls. Scoped to avoid changing the main layout. */
.sciloop-analytics-link {
    display: inline;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.sciloop-analytics-link:focus-visible,
.sciloop-analytics-consent button:focus-visible {
    outline: 3px solid #8cd0fa;
    outline-offset: 3px;
}

.sciloop-analytics-consent[hidden] {
    display: none !important;
}

.sciloop-analytics-consent {
    position: fixed;
    z-index: 99999;
    left: 16px;
    right: 16px;
    bottom: 16px;
    width: min(720px, calc(100% - 32px));
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    box-sizing: border-box;
    margin: 0 auto;
    padding: 18px;
    border: 1px solid #91a6b4;
    border-radius: 8px;
    background: #20313d;
    color: #fff;
    box-shadow: 0 6px 24px rgb(0 0 0 / 35%);
    text-align: left;
    font-family: Arial, sans-serif;
    font-size: 15px;
    line-height: 1.5;
}

.sciloop-analytics-consent strong {
    font-size: 17px;
}

.sciloop-analytics-consent p {
    margin: 10px 0 14px;
    color: #fff;
    line-height: 1.55;
}

.sciloop-analytics-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.sciloop-analytics-buttons button {
    cursor: pointer;
    border: 1px solid #cbd5dd;
    border-radius: 5px;
    padding: 10px 16px;
    font: inherit;
    font-weight: 600;
}

#sciloop-accept-analytics {
    background: #a6dbb5;
    color: #102418;
}

#sciloop-decline-analytics {
    background: #e8edf0;
    color: #17252e;
}

@media (max-width: 480px) {
    .sciloop-analytics-consent {
        left: 10px;
        right: 10px;
        bottom: 10px;
        width: calc(100% - 20px);
        padding: 14px;
    }
}
