/* tghg-notify — bell, panel, toast, opt-in form, back-in-stock box. Uses theme tokens with fallbacks. */
.tghg-nf { position: relative; display: inline-flex; }
.tghg-nf__bell { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--c-primary-dark, #1b5e20); cursor: pointer; }
.tghg-nf__bell:hover, .tghg-nf__bell[aria-expanded="true"] { background: var(--c-primary-light, #e8f5e9); }
.tghg-nf__count { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px; background: var(--c-sale, #d32f2f); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.tghg-nf__count[hidden] { display: none; }
.tghg-nf__panel { position: absolute; top: calc(100% + 8px); right: -56px; z-index: 1000; width: min(360px, calc(100vw - 24px)); max-height: min(560px, 80vh); overflow: auto; border: 1px solid var(--c-border, #e3e8dc); border-radius: 14px; background: #fff; box-shadow: 0 18px 40px rgba(0, 0, 0, .14); text-align: left; }
.tghg-nf__panel[hidden] { display: none; }
.tghg-nf__head { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid #eef1ea; background: #fff; }
.tghg-nf__head strong { font-size: 1rem; color: var(--c-primary-dark, #1b5e20); }
.tghg-nf__read { padding: 0; border: 0; background: none; color: var(--c-primary, #2e7d32); font: inherit; font-size: .8125rem; cursor: pointer; }
.tghg-nf__read[hidden] { display: none; }
.tghg-nf__list { margin: 0; padding: 0; list-style: none; }
.tghg-nf__item a { display: flex; gap: 10px; padding: 10px 14px; border-bottom: 1px solid #f1f3ee; color: inherit; text-decoration: none; }
.tghg-nf__item a:hover { background: #fafbf8; }
.tghg-nf__item.is-new a { background: #f4fbf4; }
.tghg-nf__item img { flex: none; width: 48px; height: 48px; border-radius: 8px; object-fit: cover; }
.tghg-nf__text { display: grid; gap: 2px; min-width: 0; font-size: .8125rem; line-height: 1.35; }
.tghg-nf__text b { overflow: hidden; color: var(--c-text, #263238); font-size: .875rem; text-overflow: ellipsis; white-space: nowrap; }
.tghg-nf__text small { color: var(--c-muted, #6b7280); font-size: .6875rem; }
.tghg-nf__tag { justify-self: start; padding: 1px 7px; border-radius: 999px; font-size: .6875rem; font-weight: 700; }
.is-price .tghg-nf__tag { background: #fdecea; color: #c62828; }
.is-season .tghg-nf__tag { background: #e8f5e9; color: #1b5e20; }
.is-stock .tghg-nf__tag { background: #e3f2fd; color: #1565c0; }
.tghg-nf__empty { margin: 0; padding: 18px 14px; color: var(--c-muted, #6b7280); font-size: .875rem; text-align: center; }
.tghg-nf__empty[hidden] { display: none; }
.tghg-nf__foot { padding: 12px 14px 14px; border-top: 1px solid #eef1ea; background: var(--c-bg-alt, #f6f8f1); }
.tghg-nf__mail { margin: 0; color: var(--c-muted, #6b7280); font-size: .8125rem; }
.tghg-nf__mail a { color: var(--c-primary-dark, #1b5e20); font-weight: 600; }
.tghg-nf-float { position: fixed; left: 16px; bottom: 16px; z-index: 990; border-radius: 50%; background: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .18); }
.tghg-nf-float .tghg-nf__panel { top: auto; bottom: calc(100% + 8px); left: 0; right: auto; }

/* Opt-in form */
.tghg-nf-form { display: grid; gap: 8px; }
.tghg-nf-form[hidden] { display: none; }
.tghg-nf-form__title { margin: 0; font-size: .875rem; font-weight: 700; color: var(--c-text, #263238); }
.tghg-nf-form__row { display: flex; gap: 6px; }
.tghg-nf-form__row input { flex: 1; min-width: 0; padding: .55rem .7rem; border: 1px solid var(--c-border, #e3e8dc); border-radius: 8px; background: #fff; font: inherit; font-size: .875rem; }
.tghg-nf-form__row button { flex: none; padding: .55rem .9rem; border: 0; border-radius: 8px; background: var(--c-primary, #2e7d32); color: #fff; font: inherit; font-size: .875rem; font-weight: 700; cursor: pointer; }
.tghg-nf-form__row button:disabled { opacity: .6; }
.tghg-nf-form__consent { display: flex; gap: 6px; align-items: flex-start; font-size: .75rem; line-height: 1.4; color: var(--c-muted, #6b7280); }
.tghg-nf-form__consent input { margin-top: 2px; }
.tghg-nf-form__msg { margin: 0; font-size: .8125rem; color: var(--c-primary-dark, #1b5e20); }
.tghg-nf-form__msg:empty { display: none; }
.tghg-nf-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* Toast */
.tghg-nf-toast { position: fixed; left: 16px; bottom: 16px; z-index: 10000; display: flex; gap: 10px; align-items: center; max-width: min(420px, calc(100vw - 32px)); padding: 12px 14px; border-left: 4px solid var(--c-primary, #2e7d32); border-radius: 10px; background: #fff; box-shadow: 0 12px 30px rgba(0, 0, 0, .18); font-size: .9375rem; transform: translateY(20px); opacity: 0; transition: transform .25s, opacity .25s; }
.tghg-nf-toast.is-in { transform: none; opacity: 1; }
.tghg-nf-toast a { color: var(--c-primary-dark, #1b5e20); font-weight: 600; text-decoration: none; }
.tghg-nf-toast__x { flex: none; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: #f1f3ee; font-size: 18px; line-height: 1; cursor: pointer; }

/* Back-in-stock box (product page) */
.tghg-nf-stock { display: grid; gap: 10px; margin: 12px 0; }
.tghg-nf-stock__btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: .8rem 1.2rem; border: 2px solid var(--c-primary, #2e7d32); border-radius: 10px; background: #fff; color: var(--c-primary-dark, #1b5e20); font: inherit; font-weight: 700; cursor: pointer; }
.tghg-nf-stock__btn:hover { background: var(--c-primary-light, #e8f5e9); }
.tghg-nf-stock__btn.is-on { background: var(--c-primary, #2e7d32); color: #fff; }
.tghg-nf-stock__msg { margin: 0; font-size: .875rem; color: var(--c-primary-dark, #1b5e20); }
.tghg-nf-stock__msg:empty { display: none; }
.tghg-nf-stock__mail { padding: 12px; border-radius: 10px; background: var(--c-bg-alt, #f6f8f1); }
.tghg-nf-stock__mail[hidden] { display: none; }

@media (max-width: 47.99em) {
	.tghg-nf__panel { position: fixed; top: 64px; left: 12px; right: 12px; width: auto; }
}
