/* Greetings Blocks — front-end styles. All colors via CSS custom properties.
   Selectors are written defensively to override theme styles that leak in
   (button padding, heading sizes, inner element margins). */

.np-gb {
	--_accent: var(--np-gb-accent, #c0392b);
	--_soft: var(--np-gb-accent-soft, #fdecea);
	--_text: var(--np-gb-text, #1f2933);
	--_muted: var(--np-gb-muted, #6b7280);
	--_border: var(--np-gb-border, #e5e7eb);
	--_radius: var(--np-gb-radius, 14px);
	--_card-bg: var(--np-gb-card-bg, #ffffff);
	color: var(--_text);
	margin: 2em 0;
	line-height: 1.6;
	box-sizing: border-box;
	font-size: 16px;
}
.np-gb *,
.np-gb *::before,
.np-gb *::after { box-sizing: border-box; }

/* Reset theme-inherited spacing on inner blocks/paragraphs.
   Themes add large margins to p/div inside .entry-content — force them off. */
.np-gb p,
.np-gb ul,
.np-gb li,
.np-gb div,
.np-gb span,
.np-gb h3 {
	margin: 0 !important;
	padding: 0 !important;
	line-height: inherit;
}
/* But keep the tips list indent (it needs left padding for bullets) */
.np-gb .np-gb-tips__list {
	padding-left: 20px !important;
}

/* wpautop injects stray <br> between nested shortcodes — they create big
   vertical gaps. Hide ALL <br> inside plugin blocks by default... */
.np-gb br {
	display: none !important;
}
/* ...but keep them where they are meaningful line breaks: inside the actual
   greeting text (verses, multi-line wishes). */
.np-gb-quick__text br,
.np-gb-variant__text br,
.np-gb-copyblock__text br,
.np-gb-faq__a br {
	display: inline !important;
}

/* ---- Copy button (shared) ----
   Themes style all <button> with big padding / min-height / uppercase.
   We hard-reset the button so it stays a small pill. */
.np-gb .np-gb-copy {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 6px;
	flex: 0 0 auto;
	width: auto !important;
	min-width: 0 !important;
	min-height: 0 !important;
	height: auto !important;
	max-width: none;
	border: 1px solid var(--_accent) !important;
	background: transparent !important;
	color: var(--_accent) !important;
	font-size: 0.8rem !important;
	font-weight: 600 !important;
	line-height: 1 !important;
	letter-spacing: normal !important;
	text-transform: none !important;
	padding: 7px 15px !important;
	margin: 0 !important;
	border-radius: 999px !important;
	cursor: pointer;
	transition: background .15s ease, color .15s ease;
	white-space: nowrap;
	box-shadow: none !important;
}
.np-gb .np-gb-copy:hover {
	background: var(--_accent) !important;
	color: #fff !important;
}
.np-gb .np-gb-copy.is-copied {
	background: #157347 !important;
	border-color: #157347 !important;
	color: #fff !important;
}
.np-gb .np-gb-copy i { font-size: 0.95em; line-height: 1; }

/* ---- Quick pick ---- */
.np-gb-quick {
	background: var(--_soft);
	border: 1px solid var(--_border);
	border-left: 4px solid var(--_accent);
	border-radius: var(--_radius);
	padding: 18px 20px !important;
}
.np-gb-quick__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin-bottom: 10px !important;
}
.np-gb-quick__badge {
	font-size: 12px !important;
	font-weight: 700 !important;
	text-transform: uppercase;
	letter-spacing: .05em;
	color: var(--_accent);
	line-height: 1.3 !important;
}
.np-gb-quick__text {
	font-size: 16px !important;
	line-height: 1.6 !important;
}

/* ---- Variants ---- */
.np-gb-variants { margin: 1.5em 0; }
.np-gb-variants__title {
	margin: 0 0 14px !important;
	font-size: 19px !important;
	line-height: 1.3 !important;
	font-weight: 700 !important;
}
.np-gb-variants__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 14px;
	align-items: stretch;
}
.np-gb-variant {
	border: 1px solid var(--_border);
	border-radius: var(--_radius);
	padding: 16px 18px !important;
	background: var(--_card-bg);
	display: flex;
	flex-direction: column;
}
.np-gb-variant__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px !important;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--_border);
}
.np-gb-variant__label {
	font-weight: 700 !important;
	font-size: 15px !important;
	color: var(--_accent);
	line-height: 1.3 !important;
	overflow-wrap: anywhere;
}
.np-gb-variant__text {
	font-size: 16px !important;
	line-height: 1.6 !important;
}

/* ---- Copy block ---- */
.np-gb-copyblock {
	border: 1px solid var(--_border);
	border-radius: var(--_radius);
	padding: 16px 18px !important;
	background: var(--_card-bg);
}
.np-gb-copyblock__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px !important;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--_border);
}
.np-gb-copyblock__title {
	font-weight: 700 !important;
	font-size: 15px !important;
	line-height: 1.3 !important;
}
.np-gb-copyblock__text {
	font-size: 16px !important;
	line-height: 1.6 !important;
}

/* ---- Tips ---- */
.np-gb-tips {
	background: var(--np-gb-tips-bg, #fffdf5);
	border: 1px solid var(--_border);
	border-radius: var(--_radius);
	padding: 16px 20px !important;
}
.np-gb-tips__title {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 700 !important;
	font-size: 16px !important;
	margin-bottom: 10px !important;
	line-height: 1.3 !important;
}
.np-gb-tips__list {
	margin: 0 !important;
	padding-left: 20px !important;
	list-style: disc;
}
.np-gb-tips__list li {
	margin: 6px 0 !important;
	line-height: 1.5 !important;
	font-size: 15px !important;
}

/* ---- Author ---- */
.np-gb-author {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	border: 1px solid var(--_border);
	border-radius: var(--_radius);
	padding: 16px 18px !important;
	background: var(--np-gb-author-bg, #fafafa);
}
.np-gb-author__avatar {
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--_accent);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 1.2rem;
}
.np-gb-author__name {
	font-weight: 700;
	color: var(--_text);
	text-decoration: none;
}
.np-gb-author__name:hover { text-decoration: underline; }
.np-gb-author__role {
	margin-left: 8px;
	font-size: 0.85rem;
	color: var(--_muted);
}
.np-gb-author__bio {
	margin: 6px 0 0 !important;
	font-size: 0.92rem;
	color: var(--_muted);
	line-height: 1.5 !important;
}
.np-gb-author__date {
	margin: 6px 0 0 !important;
	font-size: 0.82rem;
	color: var(--_muted);
}

/* ---- FAQ ---- */
.np-gb-faq { margin: 1.5em 0; }
.np-gb-faq__title {
	margin: 0 0 14px !important;
	font-size: 19px !important;
	line-height: 1.3 !important;
	font-weight: 700 !important;
}
.np-gb-faq__item {
	border: 1px solid var(--_border);
	border-radius: 10px;
	padding: 2px 16px !important;
	margin-bottom: 8px;
	background: var(--_card-bg);
}
.np-gb-faq__q {
	cursor: pointer;
	font-weight: 600 !important;
	font-size: 16px !important;
	padding: 12px 0 !important;
	list-style: none;
	display: flex;
	align-items: baseline;
	gap: 8px;
	line-height: 1.4 !important;
}
.np-gb-faq__q::-webkit-details-marker { display: none; }
.np-gb-faq__q::before {
	content: "+";
	flex: 0 0 auto;
	width: 1em;
	color: var(--_accent);
	font-weight: 700;
}
.np-gb-faq__item[open] .np-gb-faq__q::before { content: "\2212"; }
.np-gb-faq__a {
	padding: 0 0 12px 1.5em !important;
	color: var(--_text);
	line-height: 1.6 !important;
	font-size: 16px !important;
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
	.np-gb-quick,
	.np-gb-copyblock,
	.np-gb-tips,
	.np-gb-author,
	.np-gb-variant {
		padding: 14px 16px;
	}
}

/* ========================================================================== */
/* Greetings Hub — [np_greetings_hub]                                        */
/* ========================================================================== */
.np-gh {
	--np-gh-text: var(--np-gb-text, #1f2933);
	--np-gh-muted: var(--np-gb-muted, #6b7280);
	--np-gh-border: var(--np-gb-border, #e5e7eb);
	--np-gh-accent: var(--np-gb-accent, #c0392b);
	--np-gh-radius: max(16px, var(--np-gb-radius, 14px));
	color: var(--np-gh-text);
	margin: 1.5rem 0 2.5rem;
	font-size: 16px;
	line-height: 1.5;
}
.np-gh *, .np-gh *::before, .np-gh *::after { box-sizing: border-box; }
.np-gh a { color: inherit; }

.np-gh-hero {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(240px, .75fr);
	gap: 28px;
	align-items: center;
	overflow: hidden;
	padding: clamp(24px, 4vw, 46px);
	border: 1px solid #f1e8e8;
	border-radius: 24px;
	background:
		radial-gradient(circle at 88% 18%, rgba(255,182,193,.45), transparent 30%),
		linear-gradient(135deg, #fff 0%, #fff8f6 58%, #ffe9e8 100%);
	box-shadow: 0 10px 28px rgba(31,41,51,.06);
}
.np-gh-hero__content { position: relative; z-index: 2; }
.np-gh-hero__title {
	margin: 0 0 10px !important;
	font-size: clamp(38px, 5vw, 64px) !important;
	line-height: 1.02 !important;
	letter-spacing: -.035em;
	font-weight: 800 !important;
	color: #171c26;
}
.np-gh-hero__intro {
	max-width: 720px;
	margin: 0 0 22px !important;
	font-size: clamp(16px, 2vw, 19px) !important;
	line-height: 1.55 !important;
	color: #343b48;
}
.np-gh-search {
	display: flex;
	align-items: center;
	width: min(680px, 100%);
	padding: 6px;
	border: 1px solid #e8e4e2;
	border-radius: 999px;
	background: #fff;
	box-shadow: 0 8px 24px rgba(31,41,51,.08);
}
.np-gh-search__icon { padding-left: 14px; color: #7a818c; font-size: 24px; line-height: 1; }
.np-gh-search__input {
	min-width: 0;
	flex: 1 1 auto;
	border: 0 !important;
	outline: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	padding: 10px 12px !important;
	font: inherit !important;
	color: var(--np-gh-text) !important;
}
.np-gh-search__button {
	flex: 0 0 auto;
	border: 0 !important;
	border-radius: 999px !important;
	background: #ef5c5c !important;
	color: #fff !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	line-height: 1 !important;
	padding: 13px 22px !important;
	min-height: 42px !important;
	box-shadow: none !important;
	cursor: pointer;
}
.np-gh-chips { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; margin-top: 13px; }
.np-gh-chips__label { font-size: 12px; font-weight: 700; color: #363d48; }
.np-gh-chip {
	border: 1px solid #ece7e5 !important;
	background: rgba(255,255,255,.9) !important;
	color: #343b48 !important;
	border-radius: 999px !important;
	padding: 6px 10px !important;
	font-size: 12px !important;
	font-weight: 600 !important;
	line-height: 1.1 !important;
	min-height: 0 !important;
	box-shadow: none !important;
	cursor: pointer;
}
.np-gh-chip:hover { border-color: #efb1ad !important; }

.np-gh-hero__art { min-height: 220px; position: relative; }
.np-gh-hero__gift {
	position: absolute;
	right: 5%; bottom: -4px;
	font-size: clamp(96px, 14vw, 170px);
	filter: drop-shadow(0 16px 20px rgba(109,54,54,.14));
	transform: rotate(4deg);
}
.np-gh-hero__note {
	position: absolute;
	right: 31%; top: 26%;
	min-width: 170px;
	padding: 22px 24px;
	background: #fff3ea;
	border: 1px solid rgba(174,116,95,.18);
	box-shadow: 0 15px 30px rgba(70,50,45,.12);
	transform: rotate(-6deg);
	font-family: Georgia, serif;
	font-size: 20px;
	line-height: 1.25;
	text-align: center;
	color: #60433b;
}
.np-gh-hero__note span { color: #ef6e77; }

.np-gh-section, .np-gh-latest {
	margin-top: 16px;
	padding: clamp(18px, 2.5vw, 28px);
	border-radius: 20px;
	border: 1px solid rgba(31,41,51,.05);
}
.np-gh-section--occasion { background: linear-gradient(135deg, #fff5f5, #fffafa); }
.np-gh-section--recipient { background: linear-gradient(135deg, #f3f9ff, #f8fcff); }
.np-gh-section--age { background: linear-gradient(135deg, #f3fbf1, #f9fdf7); }
.np-gh-section--style { background: linear-gradient(135deg, #fffaf0, #fffdf7); }
.np-gh-section--format { background: linear-gradient(135deg, #f7f4ff, #fbfaff); }
.np-gh-latest { background: linear-gradient(135deg, #fff6f4, #fffafa); }
.np-gh-section__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 16px;
}
.np-gh-section__title {
	margin: 0 !important;
	font-size: clamp(20px, 2.3vw, 28px) !important;
	line-height: 1.2 !important;
	font-weight: 800 !important;
	letter-spacing: -.02em;
}
.np-gh-section__title span { margin-right: 4px; }
.np-gh-section__count { font-size: 13px; color: var(--np-gh-muted); white-space: nowrap; }

.np-gh-grid {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 12px;
}
.np-gh-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	border: 1px solid rgba(31,41,51,.10);
	border-radius: 14px;
	background: #fff;
	text-decoration: none !important;
	box-shadow: 0 5px 14px rgba(31,41,51,.06);
	transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.np-gh-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(31,41,51,.11);
	border-color: rgba(239,92,92,.28);
}
.np-gh-card__media {
	aspect-ratio: 16/8.7;
	overflow: hidden;
	background: linear-gradient(135deg, #f6ecea, #ffe9dc);
	display: flex;
	align-items: center;
	justify-content: center;
}
.np-gh-section--recipient .np-gh-card__media { background: linear-gradient(135deg, #e9f6ff, #f1f8ff); }
.np-gh-section--age .np-gh-card__media { background: linear-gradient(135deg, #edf8e9, #f7f3d9); }
.np-gh-section--style .np-gh-card__media { background: linear-gradient(135deg, #fff1df, #fff7dd); }
.np-gh-section--format .np-gh-card__media { background: linear-gradient(135deg, #eee9ff, #faf4ff); }
.np-gh-card__media img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .25s ease; }
.np-gh-card:hover .np-gh-card__media img { transform: scale(1.035); }
.np-gh-card__fallback { font-size: 44px; filter: saturate(.8); }
.np-gh-card__body { padding: 11px 12px 12px; min-width: 0; }
.np-gh-card__title {
	display: block;
	font-size: 14px;
	line-height: 1.25;
	font-weight: 800;
	color: #1f2530;
	white-space: normal;
	overflow-wrap: anywhere;
}
.np-gh-card__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-top: 4px;
	font-size: 11px;
	color: var(--np-gh-muted);
}
.np-gh-card__arrow { margin-left: auto; font-size: 17px; color: #6f7a86; }
.np-gh-card[hidden] { display: none !important; }
.np-gh-section[hidden] { display: none !important; }
.np-gh-empty {
	margin: 16px 0;
	padding: 18px 20px;
	border-radius: 14px;
	background: #fff6f4;
	border: 1px solid #f1dcd7;
	font-weight: 700;
}

.np-gh-latest__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}
.np-gh-latest-card {
	display: grid;
	grid-template-columns: 116px minmax(0, 1fr);
	overflow: hidden;
	min-width: 0;
	border: 1px solid rgba(31,41,51,.09);
	border-radius: 14px;
	background: #fff;
	text-decoration: none !important;
	box-shadow: 0 5px 14px rgba(31,41,51,.05);
}
.np-gh-latest-card__media { min-height: 105px; background: #fff0e8; display: flex; align-items: center; justify-content: center; font-size: 40px; }
.np-gh-latest-card__media img { width: 100%; height: 100%; min-height: 105px; object-fit: cover; display: block; }
.np-gh-latest-card__body { display: flex; flex-direction: column; justify-content: space-between; gap: 10px; padding: 13px; min-width: 0; }
.np-gh-latest-card__body strong { font-size: 14px; line-height: 1.3; }
.np-gh-latest-card__body span { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; color: var(--np-gh-muted); }

@media (max-width: 1180px) {
	.np-gh-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.np-gh-latest__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
	.np-gh-hero { grid-template-columns: 1fr; }
	.np-gh-hero__art { display: none; }
	.np-gh-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
	.np-gh { margin-top: 1rem; }
	.np-gh-hero { padding: 22px 18px; border-radius: 18px; }
	.np-gh-hero__title { font-size: 38px !important; }
	.np-gh-search { border-radius: 16px; align-items: stretch; flex-wrap: wrap; padding: 7px; }
	.np-gh-search__icon { display: none; }
	.np-gh-search__input { flex-basis: calc(100% - 100px); padding-left: 8px !important; }
	.np-gh-search__button { padding-left: 16px !important; padding-right: 16px !important; }
	.np-gh-section, .np-gh-latest { padding: 16px 12px; border-radius: 16px; }
	.np-gh-section__count { display: none; }
	.np-gh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
	.np-gh-card__title { font-size: 13px; }
	.np-gh-latest__grid { grid-template-columns: 1fr; }
	.np-gh-latest-card { grid-template-columns: 96px minmax(0, 1fr); }
}
