/* MyPharmacy – Offre du jour. Uses the theme's CSS variables, with fallbacks. */
.mpodj {
	--mpodj-ink: var(--ink, #1C2B18);
	--mpodj-green: var(--green, #6DAC03);
	--mpodj-green-dark: var(--green-dark, #3D6100);
	--mpodj-soft: var(--green-soft, #F1F7EC);
	--mpodj-soft2: var(--green-soft-2, #E4F4CC);
	--mpodj-black: #141c11;
	display: flex;
	flex-direction: column;
	gap: 28px;
	margin: 0 0 32px;
	color: var(--mpodj-ink);
}
.mpodj h2 { font-family: Sora, Inter, sans-serif; font-size: 22px; line-height: 1.25; margin: 2px 0 4px; }
.mpodj p { margin: 0; }
.mpodj-eyebrow { display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mpodj-green-dark); }

/* hero */
.mpodj-hero {
	display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
	background: var(--mpodj-black); color: #fff; border-radius: 16px; padding: 18px 22px;
}
.mpodj-lockup { font-family: Sora, Inter, sans-serif; font-weight: 800; font-size: 22px; letter-spacing: .02em; text-transform: uppercase; }
.mpodj-hero-sub { color: rgba(255, 255, 255, .75); font-size: 14px; margin-top: 4px !important; }
.mpodj-cd { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 12px; }
.mpodj-cd span { opacity: .75; }
.mpodj-timer { font-family: Sora, Inter, sans-serif; font-size: 22px; font-variant-numeric: tabular-nums; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .15); border-radius: 10px; padding: 6px 12px; color: #c8f07a; }

/* tabs: fixed selection + one per day */
.mpodj-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: thin; }
.mpodj-tab-btn { all: unset; box-sizing: border-box; cursor: pointer; flex: 1 1 0; min-width: 104px; display: flex; flex-direction: column; gap: 3px; border: 1px solid #e3e8df; background: #fff; border-radius: 12px; padding: 9px 12px; transition: border-color .15s, background .15s; }
.mpodj-tab-btn:hover { border-color: var(--mpodj-green); }
.mpodj-tab-btn:focus-visible { outline: 2px solid var(--mpodj-green); outline-offset: 2px; }
.mpodj-tab-btn .d { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: #6b7766; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mpodj-tab-btn .t { font-size: 13px; font-weight: 600; line-height: 1.25; color: var(--mpodj-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mpodj-tab-btn.is-past { opacity: .6; }
.mpodj-tab-btn.is-locked .t, .mpodj-tab-btn.is-next .t { color: #9aa595; }
.mpodj-tab-btn.is-today { border-color: var(--mpodj-green-dark); }
.mpodj-tab-btn.is-today .d { color: var(--mpodj-green-dark); }
.mpodj-tab-btn.is-today .t::before { content: "● "; color: #e3342f; }
.mpodj-tab-btn.is-on.is-today .t::before { color: #c8f07a; }
.mpodj-tab-btn.is-fixed { flex: 1.5 1 0; min-width: 150px; background: var(--mpodj-soft); border-color: var(--mpodj-soft2); }
.mpodj-tab-btn.is-fixed .d { color: var(--mpodj-green-dark); }
.mpodj-tab-btn.is-on, .mpodj-tab-btn.is-on:hover { background: var(--mpodj-green-dark); border-color: var(--mpodj-green-dark); opacity: 1; }
.mpodj-tab-btn.is-on .d { color: #c8f07a; }
.mpodj-tab-btn.is-on .t { color: #fff; }
.mpodj-panel[hidden] { display: none !important; }
.mpodj-panel { display: flex; flex-direction: column; gap: 20px; }

/* panel messages */
.mpodj-msg { background: #fff; border: 1px solid #e3e8df; border-radius: 14px; padding: 18px 20px; font-size: 14px; color: #5d6858; }
.mpodj-msg strong { color: var(--mpodj-ink); }
.mpodj-msg-locked { display: flex; align-items: center; gap: 16px; background: var(--mpodj-black); border-color: var(--mpodj-black); color: rgba(255, 255, 255, .8); }
.mpodj .mpodj-msg-locked strong { color: #fff; font-size: 16px; }
.mpodj-msg-locked p { margin: 2px 0 0 !important; }
.mpodj-msg-locked .q, .mpodj-nudge .q { font-family: Sora, Inter, sans-serif; font-weight: 800; font-size: 32px; line-height: 1; color: #c8f07a; }
.mpodj-link { all: unset; cursor: pointer; color: var(--mpodj-green-dark); font-weight: 700; margin-left: 6px; }
.mpodj-link:hover { text-decoration: underline; }
.mpodj-nudge { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 12px; width: 100%; background: var(--mpodj-black); color: #fff; border-radius: 12px; padding: 12px 16px; font-size: 14px; font-weight: 600; }
.mpodj-nudge .q { font-size: 24px; }
.mpodj-nudge:hover { background: #22301c; }
.mpodj-admin-note { align-self: flex-start; font-size: 12px; font-weight: 700; color: #8a5200; background: #fbefdc; border: 1px dashed #e0b070; border-radius: 8px; padding: 6px 10px; }
.mpodj-today.is-admin-preview { border-top: 1px dashed #e0b070; padding-top: 16px; }

/* section heads + groups */
.mpodj-block { display: flex; flex-direction: column; gap: 16px; }
.mpodj-sh p { color: #5d6858; font-size: 14px; }
.mpodj-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.mpodj-onmedia { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 3; display: flex; flex-wrap: wrap; gap: 4px; pointer-events: none; }
.mpodj-onmedia .mpodj-ptag { font-size: 10px; padding: 3px 8px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .9); }
.mpodj-hint { font-size: 12px; color: #6b7766; }
.mpodj-ptag { display: inline-block; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 4px 10px; }
.mpodj-ptag.mpodj-p-treat { background: #f1e8f7; color: #6a2f88; }
.mpodj-ptag.mpodj-p-mid { background: var(--mpodj-soft2); color: var(--mpodj-green-dark); }
.mpodj-ptag.mpodj-p-budget { background: #fbefdc; color: #8a5200; }
.mpodj-grid { margin: 0 !important; }
.mpodj-item { position: relative; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.mpodj-item > .card { flex: 1; height: 100%; }
.mpodj .mpodj-hero *, .mpodj .mpodj-teaser h2, .mpodj .mpodj-teaser strong, .mpodj .mpodj-home-teaser strong { color: #fff; }
.mpodj .mpodj-teaser .mpodj-eyebrow, .mpodj .mpodj-hero .mpodj-timer, .mpodj .mpodj-teaser .mpodj-timer { color: #c8f07a; }
.mpodj .mpodj-hero .mpodj-hero-sub, .mpodj .mpodj-hero .mpodj-cd span { color: rgba(255, 255, 255, .75); }
.mpodj-flag { font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: var(--mpodj-black); color: #c8f07a; border-radius: 6px; padding: 3px 8px; }

/* teaser */
.mpodj-teaser { background: var(--mpodj-black); color: #fff; border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 18px; }
.mpodj-teaser .mpodj-eyebrow { color: #c8f07a; }
.mpodj-teaser p { color: rgba(255, 255, 255, .75); font-size: 14px; }
.mpodj-teaser-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.mpodj-myst { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.mpodj-myst-card {
	border: 1px solid rgba(255, 255, 255, .14); border-radius: 12px; padding: 16px; min-height: 150px;
	background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .03) 0 10px, rgba(255, 255, 255, .06) 10px 20px);
	display: flex; flex-direction: column; gap: 10px; position: relative; min-width: 0;
}
.mpodj-myst-card .q { display: block; font-family: Sora, Inter, sans-serif; font-size: 40px; font-weight: 800; line-height: 1; color: #c8f07a; margin-bottom: auto; }
.mpodj-myst-card .mpodj-ptag { align-self: flex-start; }
.mpodj-teaser-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.mpodj-btn { display: inline-flex; align-items: center; gap: 6px; background: var(--mpodj-green); color: #fff !important; font-weight: 700; font-size: 14px; border-radius: 10px; padding: 10px 16px; text-decoration: none !important; }
.mpodj-btn:hover { background: var(--mpodj-green-dark); }
.mpodj-members { font-size: 13px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 10px; padding: 9px 14px; }

@media (max-width: 640px) {
	.mpodj-hero, .mpodj-teaser { padding: 16px; }
	.mpodj-lockup { font-size: 18px; }
	.mpodj-cd { align-items: flex-start; }
	.mpodj-timer { font-size: 18px; }
}

/* homepage section [mp_offre_du_jour_home] */
.mpodj-home { gap: 18px; background: #fff; border: 1px solid #e3e8df; border-radius: 18px; padding: 22px; margin: 32px 0; }
.mpodj-home-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.mpodj-home-head p { color: #5d6858; font-size: 14px; }
.mpodj-home-side { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.mpodj-home .mpodj-cd span { opacity: 1; color: #6b7766; }
.mpodj-home .mpodj-timer { background: var(--mpodj-black); border-color: var(--mpodj-black); }
.mpodj-home .mpodj-home-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.mpodj-home-teaser { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: var(--mpodj-black); color: #fff; border-radius: 12px; padding: 12px 16px; }
.mpodj-home-teaser p { flex: 1; min-width: 200px; color: rgba(255, 255, 255, .85); font-size: 14px; }
.mpodj-home-teaser .q { font-family: Sora, Inter, sans-serif; font-weight: 800; font-size: 26px; color: #c8f07a; line-height: 1; }
.mpodj-home-teaser .mpodj-timer { font-size: 16px; padding: 4px 10px; }
@media (max-width: 640px) {
	.mpodj-home { padding: 16px; }
	.mpodj-home .mpodj-home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}

/* heading above the page's own product grid */
.mpodj-gridhead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 8px 0 18px; padding-top: 26px; border-top: 1px solid #e3e8df; }
.mpodj-gridhead .mpodj-eyebrow { display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--green-dark, #3D6100); }
.mpodj-gridhead h2 { font-family: Sora, Inter, sans-serif; font-size: 24px; line-height: 1.25; margin: 4px 0 4px; color: var(--ink, #1C2B18); }
.mpodj-gridhead p { margin: 0; color: #5d6858; font-size: 14px; }

/* admins: floating day switcher */
.mpodj-adminnav { position: fixed; left: 16px; bottom: 16px; z-index: 99990; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; max-width: calc(100vw - 32px); background: #141c11; color: #fff; border-radius: 14px; padding: 8px 10px; font: 600 12px/1.2 Inter, sans-serif; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.mpodj-adminnav strong { color: #c8f07a; margin-right: 4px; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.mpodj-adminnav a { color: #fff !important; text-decoration: none !important; padding: 6px 9px; border-radius: 8px; background: rgba(255, 255, 255, .08); }
.mpodj-adminnav a:hover { background: rgba(255, 255, 255, .18); }
.mpodj-adminnav a.is-on { background: #6DAC03; }
.mpodj-adminnav .mpodj-adminnav-edit { background: transparent; border: 1px solid rgba(255, 255, 255, .25); }
.mpodj-panel:empty { display: none !important; }

/* ---------- mobile ---------- */
@media (max-width: 760px) {
	.mpodj { gap: 18px; }
	.mpodj h2 { font-size: 20px; }
	.mpodj-hero { flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px; border-radius: 14px; }
	.mpodj-lockup { font-size: 19px; }
	.mpodj-hero-sub { font-size: 13px; }
	.mpodj-cd { flex-direction: row; align-items: center; gap: 10px; }
	.mpodj-timer { font-size: 18px; padding: 5px 10px; }

	/* tabs: one scrolling row of equal small cards */
	.mpodj-tabs { margin: 0 -16px; padding: 2px 16px 8px; scroll-snap-type: x proximity; scrollbar-width: none; }
	.mpodj-tabs::-webkit-scrollbar { display: none; }
	.mpodj .mpodj-tab-btn { flex: 0 0 112px; min-width: 112px; padding: 8px 10px; scroll-snap-align: start; }
	.mpodj .mpodj-tab-btn.is-fixed { flex: 0 0 140px; min-width: 140px; }
	.mpodj-tab-btn .t { font-size: 12.5px; }

	/* teaser */
	.mpodj-teaser { padding: 16px; gap: 14px; border-radius: 14px; }
	.mpodj-teaser-head { flex-direction: column; gap: 10px; }
	.mpodj-myst { grid-template-columns: 1fr; gap: 8px; }
	.mpodj-myst-card { flex-direction: row; align-items: center; min-height: 0; padding: 12px 14px; gap: 12px; }
	.mpodj-myst-card .q { font-size: 28px; margin: 0; width: 22px; text-align: center; }
	.mpodj-myst-card .mpodj-ptag { order: 3; margin-left: auto; font-size: 11px; white-space: nowrap; }
	.mpodj-myst-card strong { font-size: 14px; }
	.mpodj-teaser-actions { flex-direction: column; align-items: stretch; }
	.mpodj-btn { justify-content: center; }
	.mpodj-members { text-align: center; }

	.mpodj-msg-locked { padding: 14px 16px; }
	.mpodj-nudge { font-size: 13px; }
	.mpodj-gridhead { padding-top: 20px; margin-bottom: 12px; }
	.mpodj-gridhead h2 { font-size: 20px; }
	.mpodj-onmedia { left: 6px; right: 6px; bottom: 6px; }
	.mpodj-onmedia .mpodj-ptag { display: none; } /* keep only "Offre du jour" on small cards */
	.mpodj-adminnav { left: 8px; right: 8px; bottom: 8px; flex-wrap: nowrap; overflow-x: auto; }
	.mpodj-adminnav a { white-space: nowrap; }
}
