.eurlex-reference-action { position: relative; max-width: 100%; min-width: 0; }
.eurlex-reference-action > summary { display: flex; align-items: center; gap: .3rem; cursor: pointer; list-style: none; min-width: 0; border-radius: 1rem; padding: .18rem .45rem; border: 1px solid currentColor; font-size: .8rem; line-height: 1.3; }
.eurlex-reference-action > summary::-webkit-details-marker { display: none; }
.eurlex-reference-action > summary > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eurlex-reference-action > summary > i { flex-shrink: 0; }
.eurlex-reference-action > summary:focus-visible, .eurlex-action-option:focus-visible { outline: 2px solid var(--bs-primary, #685dd8); outline-offset: 2px; }
.eurlex-reference-action[open] { z-index: 20; }
.eurlex-change-new { --eurlex-change-color: #167143; color: var(--eurlex-change-color); }
.eurlex-change-changed { --eurlex-change-color: #245fa5; color: var(--eurlex-change-color); }
.eurlex-change-deleted { --eurlex-change-color: #b32939; color: var(--eurlex-change-color); }
.eurlex-change-unknown { --eurlex-change-color: var(--bs-secondary-color, #616571); color: var(--eurlex-change-color); }
.eurlex-change-outside { --eurlex-change-color: var(--bs-secondary-color, #616571); color: var(--eurlex-change-color); }
.eurlex-change-review { --eurlex-change-color: #855d00; color: var(--eurlex-change-color); }
html.dark-style .eurlex-change-review { --eurlex-change-color: #f0cf78; }
.eurlex-outcome-reason { font-size: .8rem; margin: .2rem .45rem; white-space: normal; }
html.dark-style .eurlex-change-new { --eurlex-change-color: #75d6a1; }
html.dark-style .eurlex-change-changed { --eurlex-change-color: #97c4ff; }
html.dark-style .eurlex-change-deleted { --eurlex-change-color: #ff9baa; }
.eurlex-tree-action { flex: 1; }
.eurlex-tree-action > summary { border: none; border-radius: .2rem; font-size: inherit; font-weight: 600; padding: 0; color: var(--bs-body-color, #333); }
.eurlex-tree-action > summary > span { white-space: normal; }
.eurlex-tree-action > summary > i:first-child { color: var(--eurlex-change-color); }
.eurlex-action-menu { position: absolute; top: calc(100% + .25rem); left: 0; width: max-content; max-width: min(23rem, 78vw); min-width: min(14rem, 70vw); padding: .3rem; border: 1px solid var(--bs-border-color, #ddd); border-radius: .4rem; background: var(--bs-card-bg, #fff); box-shadow: 0 .3rem .8rem #0002; color: var(--bs-body-color, #333); }
.eurlex-tree-action .eurlex-action-menu { max-width: 100%; min-width: min(14rem, 100%); }
.eurlex-action-option { display: block; width: 100%; border: 0; border-radius: .2rem; background: transparent; padding: .45rem; text-align: left; font: inherit; font-size: .85rem; color: inherit; text-decoration: none; white-space: normal; }
.eurlex-action-option:hover { background: rgba(110, 100, 220, .12); color: inherit; }
.eurlex-action-status { font-size: .8rem; margin: 0; padding: 0 .45rem; }
.eurlex-action-status:empty { display: none; }
.eurlex-source-highlight { outline: 2px solid #c58a00; outline-offset: 4px; background: rgba(255, 205, 65, .14); scroll-margin-block: 3rem; }
::highlight(eurlex-reference) { background: #ffe278; color: #222; }
