.gnl-mh {
    position: relative;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    margin: 0 8px;
    --mh-accent: #a9702c;
    --mh-accent-soft: #f4ead9;
    --mh-good: #2e8b57;
    --mh-ink: #23281f;
    --mh-faint: #8a8f86;
    --mh-line: #e2ddd2;
    font-family: inherit;
}

/* hard reset so Porto's button/link styling can't box our pill */
.gnl-mh button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
    background: none;
    border: none;
    box-shadow: none;
    font: inherit;
    color: inherit;
    line-height: 1.1;
    cursor: pointer;
    text-transform: none;
    letter-spacing: normal;
}
.gnl-mh button:hover,
.gnl-mh button:focus,
.gnl-mh button:active { box-shadow: none; outline: none; }

.gnl-mh__btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 5px 12px 5px 6px;
    border: 1.5px solid var(--mh-line) !important;
    border-radius: 999px !important;
    background: #fff !important;
    height: auto;
    max-width: 210px;
    transition: border-color .15s;
}
.gnl-mh__btn:hover { border-color: var(--mh-accent) !important; }
.gnl-mh__btn--add {
    border-style: dashed !important;
    border-color: var(--mh-accent) !important;
    background: var(--mh-accent-soft) !important;
}

.gnl-mh__ava {
    width: 32px; height: 32px; border-radius: 50%;
    flex: 0 0 auto; background-size: cover; background-position: center;
    background-color: var(--mh-accent);
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; font-size: 14px;
}
.gnl-mh__ava--add {
    background: transparent; color: var(--mh-accent);
    border: 1.5px dashed var(--mh-accent); font-size: 20px;
}
/* horse icon (emoji): shown only in the collapsed sticky pill, replacing the photo avatar */
.gnl-mh__ava--ico {
    display: none;
    background: var(--mh-accent-soft);
    font-size: 19px;
    line-height: 1;
    /* keep the emoji in full colour across platforms */
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}
/* "filter off" greys out the photo avatar, but NOT the colour emoji icon (grayscale kills it) */
.gnl-mh__btn--horse.is-off .gnl-mh__ava:not(.gnl-mh__ava--ico) { filter: grayscale(.7); opacity: .7; }

.gnl-mh__txt {
    display: inline-flex; flex-direction: column; align-items: flex-start;
    text-align: left; min-width: 0;
}
/* Porto forces a tiny line-height (~0.3) on header spans -> lines overlap. Reset it. */
.gnl-mh__txt,
.gnl-mh__lbl,
.gnl-mh__main,
.gnl-mh__sub { line-height: 1.25 !important; }
.gnl-mh__lbl { font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--mh-faint); font-weight: 700; }
/* with an active horse the pill already shows name + filter state on two lines;
   the "MÓJ KOŃ" label would overflow the pill, so hide it in that variant. */
.gnl-mh__btn--horse .gnl-mh__lbl { display: none; }
.gnl-mh__main {
    font-size: 13px; font-weight: 700; color: var(--mh-ink);
    display: inline-flex; align-items: center; gap: 5px;
    max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.gnl-mh__btn--add .gnl-mh__main { color: var(--mh-accent); }
.gnl-mh__sub { font-size: 11px; font-weight: 600; color: var(--mh-good); display: inline-flex; align-items: center; gap: 5px; }
.gnl-mh__btn--horse.is-off .gnl-mh__sub { color: var(--mh-faint); }
.gnl-mh__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--mh-good); }
.gnl-mh__btn--horse.is-off .gnl-mh__dot { background: var(--mh-faint); }
.gnl-mh__chev { width: 14px; height: 14px; fill: none; stroke: var(--mh-faint); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.gnl-mh.is-open .gnl-mh__chev { transform: rotate(180deg); }

/* switch (in dropdown) */
.gnl-mh__switch { position: relative; width: 34px; height: 20px; flex: 0 0 auto; border-radius: 20px; background: #cfc9bc; transition: background .2s; }
.gnl-mh__switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .2s; }
.gnl-mh__switch.on { background: var(--mh-good); }
.gnl-mh__switch.on::after { transform: translateX(14px); }

/* dropdown */
.gnl-mh__menu {
    position: absolute; top: calc(100% + 10px); right: 0; width: 300px; z-index: 1000;
    background: #fff; border: 1px solid var(--mh-line); border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,.14); padding: 8px;
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .15s, transform .15s, visibility .15s;
}
.gnl-mh.is-open .gnl-mh__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.gnl-mh__menu h4 { margin: 6px 8px 8px; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--mh-faint); font-weight: 700; }
.gnl-mh__hrow { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; border-radius: 9px; text-align: left; }
.gnl-mh__hrow:hover { background: #f7f6f2; }
.gnl-mh__hinfo { flex: 1 1 auto; }
.gnl-mh__hinfo b { font-size: 13.5px; color: var(--mh-ink); font-weight: 700; }
.gnl-mh__hcheck { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--mh-line); flex: 0 0 auto; }
.gnl-mh__hrow.active .gnl-mh__hcheck { border-color: var(--mh-good); background: var(--mh-good) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center/12px no-repeat; }
.gnl-mh__sep { height: 1px; background: var(--mh-line); margin: 8px 4px; }
.gnl-mh__ftrow { display: flex; align-items: center; gap: 10px; padding: 8px; cursor: pointer; border-radius: 9px; }
.gnl-mh__ftrow:hover { background: #f7f6f2; }
.gnl-mh__fttxt { flex: 1 1 auto; }
.gnl-mh__fttxt b { font-size: 13px; color: var(--mh-ink); display: block; font-weight: 700; }
.gnl-mh__fttxt span { font-size: 11px; color: var(--mh-faint); }
.gnl-mh__link { display: block; padding: 9px; border-radius: 9px; font-size: 13px; font-weight: 600; color: #1f4636 !important; }
.gnl-mh__link:hover { background: #f7f6f2; }

/* ---- feature-discovery nudge bubble ---- */
.gnl-mh__discover {
    position: absolute; top: calc(100% + 12px); right: 0; z-index: 1200;
    width: 272px; background: #fff;
    border: 1px solid var(--mh-line); border-left: 3px solid var(--mh-accent);
    border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.16);
    padding: 14px 34px 14px 14px;
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .2s, transform .2s, visibility .2s;
}
.gnl-mh__discover.is-shown { opacity: 1; visibility: visible; transform: translateY(0); }
.gnl-mh__discover::before {
    content: ""; position: absolute; top: -7px; right: 22px;
    width: 12px; height: 12px; background: #fff;
    border-left: 1px solid var(--mh-line); border-top: 1px solid var(--mh-line);
    transform: rotate(45deg);
}
.gnl-mh__discover-txt { font-size: 12.5px; line-height: 1.45; color: var(--mh-ink); font-weight: 500; }
.gnl-mh__discover-x {
    position: absolute; top: 8px; right: 8px; width: 22px; height: 22px;
    color: var(--mh-faint); font-size: 13px; line-height: 1; border-radius: 50% !important;
    display: inline-flex; align-items: center; justify-content: center;
}
.gnl-mh__discover-x:hover { background: #f2efe8 !important; color: var(--mh-ink); }

/* ---- sticky bar: widget relocated into .navigation, icon-only pill + tooltip ---- */
.page-header.sticky-header .navigation .gnl-mh.gnl-mh--sticky {
    position: absolute;
    right: 92px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    z-index: 11;
}
.gnl-mh--sticky .gnl-mh__txt { display: none; }
.gnl-mh--sticky .gnl-mh__btn { padding: 3px !important; gap: 0; }
.gnl-mh--sticky .gnl-mh__ava { width: 30px; height: 30px; font-size: 13px; }
.gnl-mh--sticky .gnl-mh__ava--add { font-size: 18px; }
/* in sticky: horse profile collapses to the generic horse icon, not the photo/initial */
.gnl-mh--sticky .gnl-mh__btn--horse .gnl-mh__ava:not(.gnl-mh__ava--ico) { display: none; }
.gnl-mh--sticky .gnl-mh__ava--ico { display: inline-flex; }
.gnl-mh--sticky .gnl-mh__menu { top: calc(100% + 8px); }
/* the nudge bubble is a header-only thing */
.gnl-mh--sticky .gnl-mh__discover { display: none; }

/* hover tooltip only when collapsed to icon (sticky) and dropdown not open */
.gnl-mh--sticky:not(.is-open) .gnl-mh__btn[data-mh-tip]::after {
    content: attr(data-mh-tip);
    position: absolute; top: calc(100% + 8px); right: 0;
    width: max-content; max-width: 220px;
    background: var(--mh-ink); color: #fff;
    font-size: 11px; font-weight: 600; line-height: 1.3;
    padding: 6px 9px; border-radius: 7px;
    box-shadow: 0 6px 18px rgba(0,0,0,.2);
    white-space: normal; text-align: left;
    opacity: 0; visibility: hidden; transform: translateY(-4px);
    transition: opacity .15s, transform .15s, visibility .15s;
    pointer-events: none; z-index: 1001;
}
.gnl-mh--sticky:not(.is-open) .gnl-mh__btn[data-mh-tip]:hover::after {
    opacity: 1; visibility: visible; transform: translateY(0);
}

/* responsive: collapse labels on smaller header */
@media (max-width: 991px) {
    .gnl-mh__lbl { display: none; }
    .gnl-mh__menu { width: 270px; }
}
@media (max-width: 767px) {
    .gnl-mh__txt { display: none; }
    .gnl-mh__btn { padding: 4px !important; }
    .gnl-mh__menu { position: fixed; top: auto; right: 8px; left: 8px; width: auto; }
    .gnl-mh__discover { position: fixed; top: auto; right: 8px; left: 8px; width: auto; }
    .gnl-mh__discover::before { display: none; }
    .page-header.sticky-header .navigation .gnl-mh.gnl-mh--sticky { right: 76px; }
}

/* ---- category filter notice (banner above the filtered product list) ---- */
.gnl-mh-notice {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 14px;
    margin: 0 0 18px;
    padding: 12px 16px;
    background: #f7f4ee;
    border: 1px solid #e3dccc;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
}
.gnl-mh-notice__ico { font-size: 20px; line-height: 1; }
.gnl-mh-notice__txt { font-weight: 600; }
.gnl-mh-notice__btn {
    margin-left: auto;
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #b5a98f;
    border-radius: 6px;
    color: #333;
    font-size: 13px;
    cursor: pointer;
    transition: background .15s, color .15s;
}
.gnl-mh-notice__btn:hover { background: #333; border-color: #333; color: #fff; }
.gnl-mh-notice__btn[disabled] { opacity: .6; cursor: default; }
@media (max-width: 640px) {
    .gnl-mh-notice__btn { margin-left: 0; width: 100%; }
}
