/* LovesSkin Christmas Gifting: homepage pop-up (design C). IDs are doubled so the theme's resets can't override it. */
#cg-popup.cg-pop{
	--cgp-ivory:var(--wp--preset--color--ivory,#F6F4F0);
	--cgp-border:var(--wp--preset--color--border,#DEDAD4);
	--cgp-charcoal:var(--wp--preset--color--charcoal,#222222);
	--cgp-muted:var(--wp--preset--color--warm-muted,#595959);
	--cgp-orange:var(--wp--preset--color--orange,#FF8200);
	--cgp-orange-dark:var(--wp--preset--color--orange-dark,#E67300);
	--cgp-serif:var(--wp--preset--font-family--display,Fraunces,Georgia,serif);
	--cgp-sans:var(--wp--preset--font-family--sans,"Instrument Sans",system-ui,-apple-system,"Segoe UI",sans-serif);
	position:fixed;inset:0;z-index:10000000; /* above the WhatsApp chat button (9999999) */display:flex;align-items:center;justify-content:center;padding:24px;box-sizing:border-box;
	font-family:var(--cgp-sans);font-size:16px;line-height:1.6;color:var(--cgp-charcoal);-webkit-font-smoothing:antialiased;
	opacity:0;transition:opacity .25s ease;
}
#cg-popup.cg-pop[hidden]{display:none}
#cg-popup.cg-pop.is-visible{opacity:1}
#cg-popup#cg-popup *{box-sizing:border-box;margin:0;padding:0;letter-spacing:normal;text-transform:none}
#cg-popup#cg-popup .cg-pop-scrim{position:absolute;inset:0;background:rgba(18,18,18,.55);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}
#cg-popup#cg-popup .cg-pop-panel{position:relative;width:560px;max-width:100%;max-height:calc(100vh - 48px);overflow:auto;background:var(--cgp-ivory);border:1px solid var(--cgp-charcoal);outline:10px solid var(--cgp-ivory);padding:48px 46px 38px;text-align:center;box-shadow:0 30px 80px rgba(0,0,0,.35);transform:translateY(12px);transition:transform .3s ease}
#cg-popup#cg-popup.is-visible .cg-pop-panel{transform:none}
#cg-popup#cg-popup .cg-pop-x{position:absolute;top:10px;right:10px;width:40px;height:40px;display:flex;align-items:center;justify-content:center;background:transparent;border:0;color:var(--cgp-muted);font-family:var(--cgp-sans);font-size:26px;font-weight:300;line-height:1;cursor:pointer}
#cg-popup#cg-popup .cg-pop-x:hover{color:var(--cgp-charcoal)}
#cg-popup#cg-popup .cg-pop-eyebrow{display:block;color:var(--cgp-orange-dark);font-size:11px;font-weight:600;letter-spacing:.22em;text-transform:uppercase;line-height:1.4}
#cg-popup#cg-popup .cg-pop-title{font-family:var(--cgp-serif);font-weight:300;font-size:50px;line-height:1.04;color:var(--cgp-charcoal);margin:14px 0 16px}
#cg-popup#cg-popup .cg-pop-title em{font-style:italic;font-weight:300}
#cg-popup#cg-popup .cg-pop-vals{display:flex;justify-content:center;flex-wrap:wrap;gap:4px 0;font-family:var(--cgp-serif);font-weight:300;font-size:25px;line-height:1.3}
#cg-popup#cg-popup .cg-pop-vals span:not(:last-child)::after{content:"\00B7";margin:0 12px;color:var(--cgp-orange)}
#cg-popup#cg-popup .cg-pop-lede{margin-top:8px;color:var(--cgp-muted);font-size:15px}
#cg-popup#cg-popup .cg-pop-cd{display:grid;grid-template-columns:repeat(3,1fr);margin:22px auto 0;max-width:360px;border-top:1px solid var(--cgp-charcoal);border-bottom:1px solid var(--cgp-charcoal)}
#cg-popup#cg-popup .cg-pop-cd > div{padding:10px 0;border-right:1px solid var(--cgp-border)}
#cg-popup#cg-popup .cg-pop-cd > div:last-child{border-right:0}
#cg-popup#cg-popup .cg-pop-cd b{display:block;font-family:var(--cgp-serif);font-weight:300;font-size:28px;line-height:1;font-variant-numeric:tabular-nums}
#cg-popup#cg-popup .cg-pop-cd span{display:block;margin-top:6px;font-size:10px;font-weight:600;letter-spacing:.2em;text-transform:uppercase;color:var(--cgp-muted)}
#cg-popup#cg-popup .cg-pop-ends{margin-top:10px;font-size:13px;color:var(--cgp-muted)}
#cg-popup#cg-popup .cg-pop-row{display:flex;flex-direction:column;align-items:center;gap:10px;margin-top:22px}
#cg-popup#cg-popup .cg-pop-btn{display:inline-flex;gap:8px;font-family:var(--cgp-sans);font-size:12px;font-weight:600;letter-spacing:.18em;text-transform:uppercase;color:var(--cgp-charcoal);text-decoration:none;border-bottom:2px solid var(--cgp-orange);padding-bottom:5px;line-height:1.4}
#cg-popup#cg-popup .cg-pop-btn:hover,#cg-popup#cg-popup .cg-pop-btn:focus-visible{color:var(--cgp-orange-dark)}
#cg-popup#cg-popup .cg-pop-no{background:transparent;border:0;color:var(--cgp-muted);font-family:var(--cgp-sans);font-size:13px;text-decoration:underline;text-underline-offset:3px;cursor:pointer;padding:6px 0}
#cg-popup#cg-popup .cg-pop-no:hover{color:var(--cgp-charcoal)}
#cg-popup#cg-popup :focus-visible{outline:2px solid var(--cgp-orange);outline-offset:3px}
#cg-popup#cg-popup .cg-pop-panel:focus{outline:10px solid var(--cgp-ivory)}

/* Phones: a panel along the bottom of the screen, under half its height. */
@media (max-width:699px){
	#cg-popup.cg-pop{align-items:flex-end;padding:0 10px calc(10px + env(safe-area-inset-bottom,0px))}
	#cg-popup#cg-popup .cg-pop-scrim{background:rgba(18,18,18,.5);-webkit-backdrop-filter:none;backdrop-filter:none}
	#cg-popup#cg-popup .cg-pop-panel{width:100%;max-height:85vh;outline:0;border:0;padding:28px 24px 22px;box-shadow:0 14px 40px rgba(0,0,0,.35);transform:translateY(40px)}
	/* Same double frame as desktop: the panel floats just off the screen edges, with a thin line inside it. */
	#cg-popup#cg-popup .cg-pop-panel::before{content:"";position:absolute;inset:8px;border:1px solid var(--cgp-charcoal);pointer-events:none}
	#cg-popup#cg-popup .cg-pop-x{top:12px;right:12px}
	#cg-popup#cg-popup .cg-pop-title{font-size:32px;margin:8px 0 10px}
	#cg-popup#cg-popup .cg-pop-vals{font-size:19px}
	#cg-popup#cg-popup .cg-pop-vals span:not(:last-child)::after{margin:0 7px}
	#cg-popup#cg-popup .cg-pop-lede{font-size:14px;margin-top:6px}
	#cg-popup#cg-popup .cg-pop-cd{margin-top:14px}
	#cg-popup#cg-popup .cg-pop-cd b{font-size:22px}
	#cg-popup#cg-popup .cg-pop-ends{display:none}
	#cg-popup#cg-popup .cg-pop-row{margin-top:16px;gap:4px}
}

/* Short phones: drop the extra line so the panel stays under half the screen. */
@media (max-width:699px) and (max-height:760px){
	#cg-popup#cg-popup .cg-pop-lede{display:none}
	#cg-popup#cg-popup .cg-pop-title{font-size:28px;margin:6px 0 8px}
	#cg-popup#cg-popup .cg-pop-cd b{font-size:20px}
	#cg-popup#cg-popup .cg-pop-cd > div{padding:8px 0}
	#cg-popup#cg-popup .cg-pop-panel{padding-top:22px;padding-bottom:16px}
	#cg-popup#cg-popup .cg-pop-vals{font-size:16px;flex-wrap:nowrap}
	#cg-popup#cg-popup .cg-pop-vals span:not(:last-child)::after{margin:0 5px}
	#cg-popup#cg-popup .cg-pop-cd{margin-top:12px}
	#cg-popup#cg-popup .cg-pop-cd span{margin-top:4px}
	#cg-popup#cg-popup .cg-pop-row{margin-top:12px;gap:0}
}

@media (prefers-reduced-motion:reduce){
	#cg-popup.cg-pop,#cg-popup#cg-popup .cg-pop-panel{transition:none}
}
html.cg-pop-open{overflow:hidden}
