/*
 * Definition popup styling.
 *
 * The popup itself (Ext.Window subclass in
 * contentserver/static/javascript/ext-acs-definition-popup.js) carries three
 * header tools: `copy`, `left`, `right`. Before this rewrite, `copy` used a
 * hardcoded PNG and `left`/`right` fell back to ExtJS's legacy
 * tool-sprites.gif — which no longer resolves in our theme, so those two
 * tools rendered as blank boxes. Swap all three to SVG icons from the
 * product-wide theme-icons.css library so every tool icon in the product
 * (tree toolbar, accordion, popup headers) comes from the same source.
 */

/* Modern SVG icons come from shared-icons.css (imported alongside
   ext-acs-theme.css). The legacy theme-icons.css was retired in
   Phase 6 Step 7. */

.popup {
	color:hsla(240,60%,50%,1);
}

.popup:hover{
    text-decoration: underline;
}

/* ExtJS tool icons on the popup header.
 *
 * ExtJS sizes .x-tool to 15×15 and drives hover via the -over suffix class.
 * We use mask-image so the consumer (the rest/over pair) swaps `background-color`
 * between text-secondary and brand-cyan, instead of swapping the icon var.
 * Disabled state (.x-item-disabled) is handled by ExtJS's own opacity rule;
 * we don't need to override it here. Phase 6 (THEME_REVIEW.md §4.3). */
.x-tool-copy,
.x-tool-left,
.x-tool-right {
    -webkit-mask-repeat: no-repeat !important;
            mask-repeat: no-repeat !important;
    -webkit-mask-position: center !important;
            mask-position: center !important;
    -webkit-mask-size: 14px 14px !important;
            mask-size: 14px 14px !important;
    background-image: none !important;
    background-color: var(--acs-text-secondary, #5a6370) !important;
    width: 15px;
    height: 15px;
}

.x-tool-copy {
    -webkit-mask-image: var(--icon-copy) !important;
            mask-image: var(--icon-copy) !important;
}
.x-tool-copy-over {
    background-color: var(--acs-brand-cyan, #00aeef) !important;
}

.x-tool-left {
    -webkit-mask-image: var(--icon-chevron-left) !important;
            mask-image: var(--icon-chevron-left) !important;
}
.x-tool-left-over {
    background-color: var(--acs-brand-cyan, #00aeef) !important;
}

.x-tool-right {
    -webkit-mask-image: var(--icon-chevron-right) !important;
            mask-image: var(--icon-chevron-right) !important;
}
.x-tool-right-over {
    background-color: var(--acs-brand-cyan, #00aeef) !important;
}
