/* =========================================================================
 * The Pink Box SA – Spring Campaign v2
 *
 * The overlay's structural rules (position:fixed, z-index, colours, width,
 * radius) are ALSO printed inline in the footer, so the modal keeps working
 * even if a cache/optimiser plugin strips or prunes this file. What lives
 * here is the presentation layer on top of that.
 * ====================================================================== */

.pbsc-overlay,
.pbsc-banner-wrap {
	--pbsc-font: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--pbsc-blush: #fae2e3;
	--pbsc-blush-soft: #fdf3f3;
}

/* -------------------------------------------------------------------------
 * OVERLAY + MODAL
 * ---------------------------------------------------------------------- */

.pbsc-overlay {
	font-family: var(--pbsc-font);
	opacity: 0;
	transition: opacity .3s ease;
	-webkit-backdrop-filter: blur(2px);
	backdrop-filter: blur(2px);
}

.pbsc-overlay.pbsc-is-open { opacity: 1; }

.pbsc-modal {
	position: relative;
	display: grid;
	width: 100%;
	max-height: calc(100vh - 48px);
	box-shadow: 0 30px 80px rgba(18, 18, 22, .28);
	overflow: hidden;
	text-align: left;
}

/* Layouts ----------------------------------------------------------- */

.pbsc-layout-split { grid-template-columns: 42% 58%; }
.pbsc-layout-top { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
.pbsc-layout-none { grid-template-columns: 1fr; }

.pbsc-layout-top .pbsc-media { height: 190px; }

/* Animations -------------------------------------------------------- */

.pbsc-modal { opacity: 0; transition: transform .38s cubic-bezier(.2,.7,.3,1), opacity .38s ease; }
.pbsc-modal:focus { outline: none; }
.pbsc-overlay.pbsc-is-open .pbsc-modal { opacity: 1; transform: none; }

.pbsc-anim-fade_scale { transform: translateY(18px) scale(.985); }
.pbsc-anim-slide_up { transform: translateY(56px); }
.pbsc-anim-slide_down { transform: translateY(-56px); }
.pbsc-anim-fade { transform: none; }
.pbsc-anim-none { transform: none; opacity: 1; transition: none; }

/* Image ------------------------------------------------------------- */

.pbsc-media {
	background-color: var(--pbsc-blush-soft);
	background-size: cover;
	background-position: 42% 50%;
	background-repeat: no-repeat;
	min-height: 100%;
}

/* Content ----------------------------------------------------------- */

.pbsc-body {
	padding: 46px 44px 40px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	overflow-y: auto;
	color: var(--pbsc-text);
}

.pbsc-eyebrow {
	margin: 0 0 14px;
	font-size: 10px;
	font-weight: 500;
	letter-spacing: .34em;
	text-transform: uppercase;
	color: var(--pbsc-accent);
	line-height: 1.4;
}

.pbsc-kicker {
	margin: 0 0 6px;
	font-size: 15px;
	font-weight: 400;
	letter-spacing: .04em;
	color: var(--pbsc-text);
	line-height: 1.4;
}

.pbsc-title { margin: 0 0 16px; padding: 0; border: 0; }

.pbsc-title__big {
	display: block;
	font-family: var(--pbsc-font);
	font-size: 54px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: -.01em;
	color: var(--pbsc-heading);
}

.pbsc-title__sub {
	display: block;
	margin-top: 8px;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: .3em;
	text-transform: uppercase;
	color: var(--pbsc-heading);
}

.pbsc-qualifier {
	display: inline-block;
	align-self: flex-start;
	margin: 0 0 18px;
	padding: 5px 12px;
	background: var(--pbsc-blush-soft);
	border: 1px solid rgba(238, 148, 150, .5);
	border-radius: var(--pbsc-radius);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--pbsc-heading);
	line-height: 1.3;
}

.pbsc-gift {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0 0 24px;
	padding: 12px 14px;
	background: var(--pbsc-blush-soft);
	border-left: 3px solid var(--pbsc-accent);
	border-radius: var(--pbsc-radius);
	font-size: 13px;
	line-height: 1.55;
	color: var(--pbsc-heading);
	font-weight: 500;
}

.pbsc-gift__flag { font-size: 16px; line-height: 1.3; flex: 0 0 auto; }

.pbsc-blurb + .pbsc-gift { margin-top: -8px; }

.pbsc-blurb {
	margin: 0 0 26px;
	font-size: 14px;
	line-height: 1.75;
	color: var(--pbsc-text);
	max-width: 34em;
}

/* CTA --------------------------------------------------------------- */

.pbsc-cta {
	display: block;
	width: 100%;
	background: var(--pbsc-accent);
	border: 1px solid var(--pbsc-accent);
	border-radius: var(--pbsc-radius);
	color: var(--pbsc-btn-text) !important;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: .1em;
	text-transform: uppercase;
	text-align: center;
	text-decoration: none !important;
	padding: 17px 20px;
	line-height: 1.2;
	box-shadow: none !important;
	box-sizing: border-box;
	transition: background-color .22s ease, border-color .22s ease;
}

.pbsc-cta:hover,
.pbsc-cta:focus {
	background: var(--pbsc-accent-hover);
	border-color: var(--pbsc-accent-hover);
	color: var(--pbsc-btn-text) !important;
}

/* Coupon block ------------------------------------------------------ */

.pbsc-coupon {
	display: flex;
	align-items: stretch;
	margin-top: 22px;
	border: 1px dashed var(--pbsc-accent);
	border-radius: var(--pbsc-radius);
	overflow: hidden;
	background: #fff;
}

.pbsc-coupon__code {
	flex: 1 1 auto;
	min-width: 0;
	padding: 10px 14px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.pbsc-coupon__label {
	font-size: 9px;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: #a5a5a5;
	line-height: 1.4;
}

.pbsc-coupon__value {
	font-size: 17px;
	font-weight: 600;
	letter-spacing: .14em;
	color: var(--pbsc-heading);
	line-height: 1.3;
	overflow-wrap: anywhere;
}

.pbsc-copy {
	flex: 0 0 auto;
	border: 0;
	border-left: 1px dashed var(--pbsc-accent);
	border-radius: 0;
	background: var(--pbsc-blush-soft);
	color: var(--pbsc-heading);
	font-family: var(--pbsc-font);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: .12em;
	text-transform: uppercase;
	padding: 0 18px;
	cursor: pointer;
	box-shadow: none;
	-webkit-appearance: none;
	appearance: none;
	transition: background-color .2s ease, color .2s ease;
	white-space: nowrap;
}

.pbsc-copy:hover,
.pbsc-copy:focus { background: var(--pbsc-accent); color: var(--pbsc-btn-text); }
.pbsc-copy.pbsc-copied { background: var(--pbsc-accent); color: var(--pbsc-btn-text); }

.pbsc-manual {
	margin: 10px 0 0;
	font-size: 12px;
	color: #9a9a9a;
	line-height: 1.6;
}

.pbsc-terms {
	margin: 16px 0 0;
	font-size: 11px;
	line-height: 1.6;
	color: #a5a5a5;
}

/* Close ------------------------------------------------------------- */

.pbsc-close {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 3;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	margin: 0;
	border: 1px solid rgba(18, 18, 22, .12);
	border-radius: 50%;
	background: #fff;
	color: #121216;
	cursor: pointer;
	line-height: 0;
	box-shadow: 0 2px 10px rgba(18, 18, 22, .16);
	-webkit-appearance: none;
	appearance: none;
	transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

/* Invert on hover and on keyboard focus only — the button receives programmatic
   focus when the modal opens, and it should not look pressed at that moment. */
.pbsc-close:hover,
.pbsc-close:focus-visible {
	background: #121216;
	border-color: #121216;
	color: #fff;
	transform: rotate(90deg);
}

.pbsc-close:focus-visible {
	outline: 2px solid var(--pbsc-accent);
	outline-offset: 2px;
}

/* Tablet ------------------------------------------------------------ */

@media (max-width: 900px) {
	.pbsc-layout-split { grid-template-columns: 38% 62%; }
	.pbsc-body { padding: 38px 34px 34px; }
	.pbsc-title__big { font-size: 46px; }
}

/* Mobile ------------------------------------------------------------ */

@media (max-width: 640px) {
	.pbsc-overlay { padding: 16px; }

	.pbsc-modal {
		grid-template-columns: 1fr !important;
		grid-template-rows: auto 1fr;
		max-width: 420px !important;
		max-height: calc(100vh - 32px);
	}

	.pbsc-layout-split .pbsc-media,
	.pbsc-layout-top .pbsc-media { height: 148px; min-height: 0; background-position: 50% 46%; }

	.pbsc-body {
		padding: 26px 24px calc(26px + env(safe-area-inset-bottom, 0px));
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
	}

	.pbsc-eyebrow { margin-bottom: 10px; font-size: 9px; letter-spacing: .3em; }
	.pbsc-kicker { font-size: 14px; }
	.pbsc-title__big { font-size: 42px; }
	.pbsc-title__sub { font-size: 12px; letter-spacing: .26em; }
	.pbsc-blurb { font-size: 13px; line-height: 1.7; margin-bottom: 22px; }
	.pbsc-gift { font-size: 12px; padding: 10px 12px; margin-bottom: 20px; gap: 8px; }
	.pbsc-gift__flag { font-size: 14px; }
	.pbsc-cta { padding: 16px 18px; font-size: 13px; }
	.pbsc-coupon__value { font-size: 15px; }
	.pbsc-copy { padding: 0 14px; font-size: 10px; }

	.pbsc-close { top: 10px; right: 10px; width: 44px; height: 44px; }
}

@media (max-height: 620px) and (max-width: 640px) {
	.pbsc-layout-split .pbsc-media,
	.pbsc-layout-top .pbsc-media { height: 92px; }
	.pbsc-title__big { font-size: 34px; }
	.pbsc-blurb { margin-bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
	.pbsc-overlay, .pbsc-modal, .pbsc-close, .pbsc-cta, .pbsc-copy { transition: none !important; }
	.pbsc-modal { transform: none !important; }
	.pbsc-close:hover { transform: none; }
}

/* -------------------------------------------------------------------------
 * OPTIONAL ANNOUNCEMENT BANNER (off by default)
 * ---------------------------------------------------------------------- */

.pbsc-banner-wrap {
	position: relative;
	z-index: 1002;
	width: 100%;
	background: linear-gradient(90deg, var(--pbsc-blush-soft) 0%, var(--pbsc-blush) 50%, var(--pbsc-blush-soft) 100%);
	border-bottom: 1px solid rgba(238, 148, 150, .35);
	font-family: var(--pbsc-font);
}

.pbsc-banner-wrap[hidden] { display: none; }

.pbsc-banner {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 6px 14px;
	max-width: 1400px;
	margin: 0 auto;
	padding: 11px 46px;
	text-decoration: none !important;
	box-shadow: none !important;
	color: #121216;
	text-align: center;
}

.pbsc-banner:hover, .pbsc-banner:focus { color: #121216; opacity: .92; }

.pbsc-banner__petal { font-size: 14px; line-height: 1; }

.pbsc-banner__text {
	font-size: 12px;
	font-weight: 500;
	letter-spacing: .14em;
	text-transform: uppercase;
	line-height: 1.4;
}

.pbsc-banner__btn {
	display: inline-block;
	background: #ee9496;
	color: #fff;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: .12em;
	text-transform: uppercase;
	padding: 7px 16px;
	border: 1px solid #ee9496;
	line-height: 1;
	white-space: nowrap;
	transition: background-color .2s ease;
}

.pbsc-banner:hover .pbsc-banner__btn { background: #ca6d6f; border-color: #ca6d6f; }

.pbsc-banner__close {
	position: absolute;
	top: 50%;
	right: 10px;
	transform: translateY(-50%);
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	background: transparent;
	color: #9a8183;
	cursor: pointer;
	line-height: 0;
	-webkit-appearance: none;
	appearance: none;
}

.pbsc-banner__close:hover { color: #121216; background: transparent; }

@media (max-width: 782px) {
	.pbsc-banner { padding: 9px 38px; gap: 3px 9px; }
	.pbsc-banner__text { font-size: 10.5px; letter-spacing: .09em; }
	.pbsc-banner__btn { font-size: 9.5px; padding: 5px 12px; }
	.pbsc-banner__close { right: 8px; width: 28px; height: 28px; }
}
