/*
 * "Assine e ouça todas as Soluções" banners. Markup: template hipnoonline/subscription/promo.phtml,
 * placement: js/hipnoonline/hipno-promo.js. Brand green #8FAF00 as in the basket drawer; text on it is dark
 * ink rather than white, because white on #8FAF00 does not reach readable contrast.
 */
.hb-bar,
.hb-card,
.hb-inline {
    --hb-green: #8FAF00;
    --hb-green-dark: #4A5C00;
    --hb-ink: #22290d;
    --hb-soft: #F4F8E6;
    --hb-line: #DCE6B8;
    box-sizing: border-box;
    font-family: inherit;
    color: var(--hb-ink);
}

.hb-bar[hidden],
.hb-inline[hidden] { display: none !important; }

.hb-btn,
.hb-bar__cta,
.hb-inline__cta {
    display: inline-block;
    border-radius: 999px;
    background: var(--hb-green);
    color: #141a00 !important;
    font-weight: 700;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background-color .15s ease;
}

.hb-btn:hover,
.hb-bar__cta:hover,
.hb-inline__cta:hover { background: #A3C40A; }

.hb-btn:focus-visible,
.hb-bar__cta:focus-visible,
.hb-inline__cta:focus-visible,
.hb-bar__close:focus-visible {
    outline: 3px solid #1a5fb4;
    outline-offset: 2px;
}

.hb-pill {
    display: inline-block;
    margin: 0 0 6px;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--hb-green-dark);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.hb-pill--small { margin: 0 6px 0 0; padding: 2px 8px; font-size: 10px; vertical-align: middle; }

/* ------------------------------------------------------------------ top bar */
.hb-bar {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0;
    padding: 8px 48px 8px 16px;
    background: var(--hb-soft);
    border-bottom: 1px solid var(--hb-line);
    font-size: 14px;
    line-height: 1.4;
    text-align: center;
}

.hb-bar__text { margin: 0; }
.hb-bar__launch { color: var(--hb-green-dark); margin-right: 4px; }
.hb-bar__cta { margin-left: 10px; padding: 4px 14px; font-size: 13px; }

.hb-bar__close {
    position: absolute;
    top: 50%;
    right: 8px;
    width: 32px;
    height: 32px;
    margin-top: -16px;
    padding: 6px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--hb-ink);
    cursor: pointer;
}

.hb-bar__close:hover { background: rgba(0, 0, 0, .06); }
.hb-bar__close svg { display: block; width: 100%; height: 100%; fill: currentColor; }

/* ---------------------------------------------------------------- the card */
.hb-card {
    display: flex;
    align-items: center;
    gap: 20px;
    clear: both;
    max-width: 1100px;
    margin: 28px auto;
    padding: 22px 26px;
    border: 1px solid var(--hb-line);
    border-radius: 14px;
    background: linear-gradient(135deg, #FBFDF3 0%, var(--hb-soft) 100%);
}

.hb-card__icon { flex: 0 0 56px; width: 56px; height: 56px; }
.hb-card__body { flex: 1 1 auto; min-width: 0; text-align: left; }

.hb-card__title {
    margin: 0 0 4px !important;
    color: var(--hb-ink) !important;
    font-size: 20px !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
    text-transform: none !important;
}

.hb-card__text { margin: 0 !important; font-size: 14px; line-height: 1.5; color: #3d4626; }
.hb-btn { flex: 0 0 auto; padding: 12px 22px; font-size: 15px; }

.hb-card--library { margin: 8px 0 24px; max-width: none; }
/*
 * Home, after the grid. The card is the last thing on the page, so the space under it is only the theme's: the
 * CMS leaves an empty paragraph behind it and the footer static block opens with a padded &nbsp; spacer. With
 * the card there both just add a blank band, so they go and the card's own margin is the gap.
 */
.hb-card--home + p:empty { display: none; }
/*
 * Above it, the space was the grid's: every Solution tile carries a 73px bottom margin as the row gap, so the
 * last row leaves one behind, and the listing adds 50px of its own. hipno-promo.js pulls the grid up by the
 * tiles' margin (it varies by breakpoint), and the listing's margin goes, leaving the card's 28px.
 */
.category-products:has(+ .hb-card--home) { margin-bottom: 0 !important; }
/* The tiles float; as its own flow root the grid keeps them, so the card after it does not step around them. */
.category-products:has(+ .hb-card--home) > .products-grid { display: flow-root; }
.cms-index-index:has(.hb-card--home) .footer-banners .std > p:first-child { display: none !important; }
/*
 * Home, under the titles: the same card without the paragraph, as a band exactly as wide as the content
 * column, so its edges line up with the title block and the products grid rather than the window's.
 */
.hb-card--compact {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    margin: 0 0 30px;
    padding: 14px 18px;
    gap: 14px;
    border: 1px solid var(--hb-line);
    border-radius: 0;
    background: var(--hb-soft);
}
.hb-card--compact .hb-card__icon { flex-basis: 40px; width: 40px; height: 40px; }
.hb-card--compact .hb-card__text { display: none; }
.hb-card--compact .hb-card__title { margin: 0 !important; font-size: 17px !important; }
.hb-card--compact .hb-pill { margin-bottom: 4px; }
.hb-card--compact .hb-btn { padding: 9px 18px; font-size: 14px; }

/* -------------------------------------------------------------- inline call */
.hb-inline {
    display: flex;
    align-items: center;
    gap: 10px;
    clear: both;
    margin: 12px 0;
    padding: 10px 14px;
    border: 1px solid var(--hb-line);
    border-radius: 10px;
    background: var(--hb-soft);
    font-size: 13px;
    line-height: 1.45;
    text-align: left;
}

.hb-inline__icon { flex: 0 0 32px; width: 32px; height: 32px; }
.hb-inline__text { margin: 0; }
.hb-inline__text > span:first-child { margin-right: 6px; }
.hb-inline__cta { margin-top: 4px; padding: 4px 12px; font-size: 12px; }
.hb-inline--cart { margin: 12px 16px; }
/*
 * Solution page. The theme leaves two empty boxes under the buy button - the compare link list (its item is
 * hidden, its 20px top margin is not) and the AddThis toolbar, whose script is not loaded so it is 34px of
 * padding around nothing. Under the call they only open a blank gap before the Solution contents.
 */
.hb-inline--product { margin: 0 0 12px; }
.hb-inline--product ~ .add-to-links { margin-top: 0; }
.hb-inline--product ~ .addthis_toolbox:not(:has(a > *)) { display: none; }

@media (prefers-reduced-motion: no-preference) {
    .hb-bar:not([hidden]),
    .hb-card,
    .hb-inline:not([hidden]) { animation: hb-in .35s ease-out both; }
}

@keyframes hb-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 640px) {
    .hb-bar { padding: 8px 44px 8px 12px; font-size: 13px; text-align: left; justify-content: flex-start; }
    .hb-bar__cta { margin: 6px 0 0; }
    .hb-card { flex-direction: column; align-items: flex-start; gap: 12px; margin: 20px 12px; padding: 18px; }
    .hb-card__title { font-size: 18px !important; }
    .hb-btn { align-self: stretch; text-align: center; white-space: normal; }
    .hb-card--library { margin: 8px 0 20px; }
    .hb-card--compact { flex-direction: row; flex-wrap: wrap; align-items: center; margin: 0 0 24px; padding: 14px 0; }
    .hb-card--compact .hb-card__body { flex: 1 1 0; }
    .hb-card--compact .hb-card__title { font-size: 16px !important; }
    .hb-card--compact .hb-btn { flex: 1 1 100%; }
}
