/* Keep the HTML Block as one compact control in narrow WoodMart columns. */
:is(.whb-html-block,.wd-header-html):has(.gfw-header) {
    flex: none;
    min-inline-size: max-content;
}
.gfd.gfw-header {
    display: inline-flex;
    box-sizing: border-box;
    vertical-align: middle;
    line-height: 1;
    white-space: nowrap;
}
.gfd.gfw-header .gfw-layout {
    display: inline-flex;
    flex-flow: row nowrap;
    align-items: center;
    justify-content: var(--gfd-align,start);
    gap: 4px;
    width: max-content;
}
.gfd.gfw-header .gfw-header-balance {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 34px;
    padding: 3px 6px;
    box-sizing: border-box;
    border: 1px solid #ffffff42;
    border-radius: 7px;
    background: linear-gradient(160deg,#ffffff24,transparent 60%), var(--gfd-primary,#4935b7);
    color: var(--gfd-on-primary,#fff);
    box-shadow: inset 0 -3px #0003,0 2px 5px #35226b35;
    text-decoration: none;
}
.gfd.gfw-header .gfw-header-balance::before {
    content: '';
    position: absolute;
    inset: 3px 4px 5px;
    border: 1px dashed #ffffff4f;
    border-radius: 5px;
    pointer-events: none;
}
.gfd.gfw-header .gfw-header-balance strong {
    position: relative;
    min-width: 0;
    color: inherit;
    font-size: clamp(10px, 2vw, 13px);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
}
.gfd.gfw-header[data-gfw-member="false"] .gfw-header-balance strong {
    max-width: 70px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.gfd.gfw-header .gfw-header-label,
.gfd.gfw-header .gfd-actions a > span:not(.dashicons) {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
.gfd.gfw-header .gfw-header-coins {
    position: relative;
    display: flex;
    flex-direction: column-reverse;
    justify-content: end;
    flex: none;
    width: 11px;
    height: 17px;
    padding-bottom: 1px;
}
.gfd.gfw-header .gfw-header-coins i {
    display: none;
    width: 11px;
    height: 5px;
    margin-top: -2px;
    box-sizing: border-box;
    border: 1px solid #ffcb43;
    border-radius: 50%;
    background: linear-gradient(#fff1a2,#f2a700);
    box-shadow: 0 1px #a85900;
}
.gfd.gfw-header .gfw-header-coins:is([data-gfw-coins="1"],[data-gfw-coins="2"],[data-gfw-coins="3"],[data-gfw-coins="4"]) i:first-child,
.gfd.gfw-header .gfw-header-coins:is([data-gfw-coins="2"],[data-gfw-coins="3"],[data-gfw-coins="4"]) i:nth-child(2),
.gfd.gfw-header .gfw-header-coins:is([data-gfw-coins="3"],[data-gfw-coins="4"]) i:nth-child(3),
.gfd.gfw-header .gfw-header-coins[data-gfw-coins="4"] i:nth-child(4) { display: block; }
.gfd.gfw-header .gfw-header-coins[data-gfw-coins="0"] { display: none; }
.gfd.gfw-header .gfw-layout .gfd-actions {
    width: auto;
    flex-wrap: nowrap;
    margin: 0;
}
.gfd.gfw-header .gfw-layout [data-gfw-block="funds"] { width: auto; min-width: 0; }
.gfd.gfw-header .gfw-layout [data-gfw-block="funds"] a {
    position: relative;
    display: grid;
    place-items: center;
    width: 29px;
    min-width: 29px;
    min-height: 34px;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    box-shadow: none;
}
.gfd.gfw-header .gfd-actions a .dashicons { display: grid; place-items: center; margin: 0; }
.gfd.gfw-header .gfd-actions a:not(:has(.dashicons))::before { content: '+'; font-size: 18px; }
.gfd.gfw-header a:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
