:root {
    --tah-font-size-10: 0.65rem;
    --tah-tooltip-delay: 1500ms;
}

/*
 * APPLICATION
 */

#token-action-hud-app:has(.tah-groups.tah-unlocked) {
    --ui-fade-opacity: 1;
}

.flex0 {
    flex: 0;
}

.token-action-hud-core-app.application .flexrow {
    display: flex;
    flex: 1;
    gap: 0.5rem;
}

.token-action-hud-core-app nav.sheet-tabs {
    margin: 0;
}

.token-action-hud-core-app.application h2,
.token-action-hud-core-app.application h3 {
    margin: 0;
    padding-bottom: 0.25rem;
}

.token-action-hud-core-app.application h2 {
    font-family: var(--font-h3);
    font-size: 1.5rem;
}

.token-action-hud-core-app.application h3 {
    font-size: 1.2rem;
}

.token-action-hud-core-app .form-group > label {
    line-height: 1.2rem;
}

/*
 * DIALOGS
 */

.tah-dialog-col-group {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

#tah-dialog-reset-actions {
    margin-top: 2px;
}

.tah-radio-group {
    text-align: right;
}

.tah-fieldset {
    border: 2px groove #ffffff;
    padding: 3px;
}

.tah-fieldset > legend {
    color: #6f6f6f;
    text-shadow: 1px 1px 1px #ffffff;
}

.tah-scrollable {
    flex: 1;
    overflow: hidden auto;
    padding: 1rem;
}

.locked-tooltip.tah-tooltip,
.tah-tooltip,
#tooltip:has(.tah-tooltip-wrapper) {
    font-size: var(--font-size-14);
}

.locked-tooltip.tah-tooltip.active,
.tah-tooltip.active,
#tooltip.tah-tooltip.active,
#tooltip.active:has(.tah-tooltip-wrapper) {
    transition: visibility 0s var(--tah-tooltip-delay), opacity var(--tah-tooltip-delay) 500ms;
}

.locked-tooltip.tah-tooltip:not(.active),
.tah-tooltip:not(.active),
#tooltip:not(.active):has(.tah-tooltip-wrapper) {
    transition: visibility 0s, opacity 0s;
}

.locked-tooltip.tah-tooltip h3,
.tah-tooltip h3,
#tooltip.active:has(.tah-tooltip-wrapper) h3 {
    padding-bottom: 8px;
    text-align: left;
}

.locked-tooltip.tah-tooltip h4,
.tah-tooltip h4,
#tooltip.active:has(.tah-tooltip-wrapper) h4 {
    font-weight: 600;
    text-align: left;
}

.locked-tooltip.tah-tooltip :is(ul, h3, h4, p),
.tah-tooltip :is(ul, h3, h4, p),
#tooltip.active:has(.tah-tooltip-wrapper) :is(ul, h3, h4, p) {
    text-align: left;
}

.locked-tooltip.tah-tooltip :is(a.content-link, a.inline-roll),
.tah-tooltip :is(a.content-link, a.inline-roll),
#tooltip.active:has(.tah-tooltip-wrapper) :is(a.content-link, a.inline-roll) {
    background: none;
    border: none;
    color: var(--color-text-light-7);
    font-weight: 600;
    line-height: 1em;
    margin: 0;
    padding: 0;
}

.locked-tooltip.tah-tooltip :is(a.content-link i, a.inline-roll i),
.tah-tooltip :is(a.content-link i, a.inline-roll i),
#tooltip.active:has(.tah-tooltip-wrapper)
    :is(a.content-link i, a.inline-roll i) {
    color: var(--color-text-light-7);
}

.locked-tooltip.tah-tooltip strong,
.tah-tooltip strong,
#tooltip.tah-tooltip strong,
#tooltip.active:has(.tah-tooltip-wrapper) strong {
    font-weight: 600;
}


.tah-tooltip .tah-properties {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    text-align: left;
}

.tah-tooltip .tah-property {
    line-break: strict;
    border-right: 1px solid var(--color-text-light-7);
    color: var(--color-text-light-7);
    font-size: var(--font-size-11);
    padding-right: 5px;
}

.tah-tooltip .tah-property:first-child {
    padding-left: 0;
}

.tah-tooltip .tah-property:last-child {
    border-right: none;
    padding-right: 0;
}

.tah-icon > i {
    font-size: 10px;
}
