/* The styles of the eztags templates (admin and site), loaded through design.ini [StylesheetSettings]
   BackendCSSFileList and FrontendCSSFileList so the ezjscore packer bundles them. The templates carry no style=""
   attribute: a Content-Security-Policy without 'unsafe-inline' for style-src-attr drops those. Spacing comes from
   the admin's --a4-* tokens where a design has them. */

/* Tag and synonym views, tags dashboard: the action buttons, each in a form of its own, side by side */
form.eztags-inline-form { float: left; margin-right: var(--a4-space-2, 10px); }
form.eztags-inline-form-last { margin-right: 0; }

/* Language flag next to the translation name (the same as the shared .a4-flag, for designs without it) */
img.eztags-flag { vertical-align: middle; }

/* Site tag view: the tag icon before the keyword, and before each related tag */
img.eztags-view-icon { margin-right: 10px; }
img.eztags-related-icon { margin-right: 5px; }

/* Tag cloud: each tag is sized from 100 to 200 percent by how often it is used, in steps of 10 percent */
a.eztags-cloud-item { padding-right: 5px; }
a.eztags-cloud-size-0 { font-size: 100%; }
a.eztags-cloud-size-1 { font-size: 110%; }
a.eztags-cloud-size-2 { font-size: 120%; }
a.eztags-cloud-size-3 { font-size: 130%; }
a.eztags-cloud-size-4 { font-size: 140%; }
a.eztags-cloud-size-5 { font-size: 150%; }
a.eztags-cloud-size-6 { font-size: 160%; }
a.eztags-cloud-size-7 { font-size: 170%; }
a.eztags-cloud-size-8 { font-size: 180%; }
a.eztags-cloud-size-9 { font-size: 190%; }
a.eztags-cloud-size-10 { font-size: 200%; }

/* The tag picker of admin4 (ezjsctemplate/modal_dialog.tpl, a <dialog> opened by eztags.js) */
dialog.eztags-dialog { width: min(400px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 1px solid var(--a4-line, #b5a69c); border-radius: var(--a4-radius-s, 4px); background: var(--a4-card, #fff); color: var(--a4-ink, #000); }
dialog.eztags-dialog::backdrop { background: var(--a4-overlay, rgba(16, 24, 40, 0.45)); }
.eztags-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: var(--a4-space-2, 10px); padding: var(--a4-space-2, 10px) var(--a4-space-3, 14px); border-bottom: 1px solid var(--a4-line, #b5a69c); }
.eztags-dialog-title { margin: 0; font-size: 1em; font-weight: var(--a4-weight-bold, bold); }
.eztags-dialog-close { min-width: 28px; min-height: 28px; padding: 0 6px; border: 1px solid transparent; border-radius: var(--a4-radius-s, 4px); background: transparent; color: inherit; font-size: 20px; line-height: 1; cursor: pointer; }
.eztags-dialog-close:hover { border-color: var(--a4-line, #b5a69c); }
.eztags-dialog-close:focus-visible { outline: 2px solid var(--a4-ring, #1a73e8); outline-offset: 1px; }
.eztags-dialog-body { max-height: 350px; overflow: auto; padding: var(--a4-space-3, 14px); }
.eztags-dialog div.contentstructure ul.content_tree_menu { margin: 0; }

/* The tree of the tree builder in admin4 (eztags.js, EzTags.TreeView), in place of jsTree's */
ul.eztags-tree, ul.eztags-tree-group { margin: 0; padding: 0; list-style: none; }
ul.eztags-tree-group { padding-left: 20px; }
li.eztags-tree-node { margin: 0; padding: 0; white-space: nowrap; }
.eztags-tree-toggle { display: inline-block; width: 16px; text-align: center; cursor: pointer; }
li.is-closed > .eztags-tree-toggle::before { content: "\25B8"; }
li.is-open > .eztags-tree-toggle::before { content: "\25BE"; }
a.eztags-tree-anchor { display: inline-block; padding: 2px 4px; color: inherit; text-decoration: none; line-height: 20px; }
a.eztags-tree-anchor:hover { background: var(--a4-accent-soft, #e7f4f9); }
a.eztags-tree-anchor:focus-visible { outline: 2px solid var(--a4-ring, #1a73e8); outline-offset: 1px; }
a.eztags-tree-anchor[data-selected=true] { color: var(--a4-muted, #888); }
a.eztags-tree-anchor[aria-disabled=true] { cursor: default; }
a.eztags-tree-anchor img.eztags-tree-icon { margin-right: 4px; vertical-align: middle; }
a.eztags-tree-anchor[aria-busy=true] { opacity: 0.6; }

/* A selected tag being moved (eztags.js sorts them with the mouse) */
.tagssuggest ul.with_sortable li.is-sorting { opacity: 0.6; }
