/* Countrystyle Skip Upsells — cart-page boxes and interstitial page */

/* ═══════════════════════════════════════════════════════════════════════════
   CART-PAGE MODE — compact boxes above the totals block
   ═══════════════════════════════════════════════════════════════════════════ */

.csr-upsells-wrapper {
	margin: 1.5em 0;
}

.csr-upsell-box {
	background: #f9f7fb;
	border: 1px solid #d8d0e0;
	border-left: 5px solid #7f54b3;
	border-radius: 4px;
	padding: 1em 1.25em;
	margin-bottom: 1em;
}

.csr-upsell-box:last-child {
	margin-bottom: 0;
}

.csr-upsell-upgrade { border-left-color: #2271b1; background: #f0f6fc; }
.csr-upsell-toilet  { border-left-color: #00a32a; background: #f0faf3; }

.csr-upsell-inner {
	display: flex;
	align-items: flex-start;
	gap: 0.75em;
}

.csr-upsell-icon {
	font-size: 1.4em;
	line-height: 1;
	flex-shrink: 0;
	opacity: 0.6;
}

.csr-upsell-body {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1em;
	flex: 1;
	flex-wrap: wrap;
}

.csr-upsell-message {
	margin: 0;
	flex: 1 1 0;
	font-size: 0.95em;
	line-height: 1.5;
}

.csr-upsell-form { flex-shrink: 0; }

.csr-upsell-button {
	white-space: nowrap;
	font-size: 0.9em;
}

/* ═══════════════════════════════════════════════════════════════════════════
   INTERSTITIAL PAGE MODE
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
	--csr-orange:     #E8750A;
	--csr-green-dark: #3A7551;
	--csr-border:     #E0DAD2;
	--csr-bg:         #F8F5F0;
}

.csr-interstitial {
	max-width: 1100px;
	margin: 0 auto;
	padding: 2em 1.25em 4em;
	font-family: inherit;
}

/* ── Header ── */

.csr-interstitial-header {
	text-align: center;
	margin-bottom: 2em;
}

.csr-preheading {
	font-size: 0.75em;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #888;
	margin: 0 0 0.6em;
}

.csr-interstitial-heading {
	font-size: 2.6em;
	line-height: 1.15;
	margin: 0 0 0.6em;
	font-weight: 700;
}

.csr-interstitial-subtext {
	font-size: 1.05em;
	color: #555;
	line-height: 1.6;
	margin: 0;
	max-width: 680px;
	margin-left: auto;
	margin-right: auto;
}

/* ── Choice grid ── */

.csr-choice-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.25em;
	align-items: stretch;
	margin-bottom: 1.25em;
}

/* ── Cards ── */

.csr-choice-card {
	background: #fff;
	border: 2px solid var(--csr-border);
	border-radius: 14px;
	padding: 2.75em 1.75em 2em;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	position: relative;
	gap: 1.5em;
}

.csr-card-upgrade {
	border-color: var(--csr-orange);
	padding-bottom: 2em; /* matches left card so button bottoms align */
}

.csr-card-label {
	font-size: 0.72em;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #999;
	margin: 0;
}

.csr-card-name {
	font-size: 1.2em;
	font-weight: 700;
	margin: 0;
	flex: 1;
}

.csr-card-price {
	font-size: 1em;
	margin: 0 0 1.25em;
	color: #333;
}

.csr-vat {
	font-size: 0.8em;
	color: #888;
	font-weight: normal;
}

/* ── Recommended badge ── */

.csr-recommended-badge {
	position: absolute;
	top: -1px;
	left: 50%;
	transform: translateX(-50%) translateY(-50%);
	background: var(--csr-orange);
	color: #fff;
	font-size: 0.7em;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	padding: 0.3em 1em;
	border-radius: 20px;
	white-space: nowrap;
}

/* ── Skip icons (CSS trapezoid — wide at top, like a real skip) ── */

.csr-skip-icon {
	display: block;
	margin: 0 auto;
	clip-path: polygon(0% 0%, 100% 0%, 90% 100%, 10% 100%);
}

.csr-skip-icon--sm {
	width: 58px;
	height: 20px;
	background: #3A7551;
}

.csr-skip-icon--lg {
	width: 82px;
	height: 30px;
	background: var(--csr-green-dark);
}

.csr-skip-icon--lg.csr-desktop-only {
	display: block;
	margin-bottom: 0.75em;
}

/* ── Skip comparison (mobile only: from → to with labels) ── */

.csr-skip-comparison {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1.25em;
	margin: 0.25em 0 0.75em;
}

.csr-skip-with-label {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.4em;
}

.csr-skip-label {
	font-size: 0.78em;
	color: #888;
	font-weight: 500;
}

.csr-comparison-arrow {
	font-size: 1.1em;
	color: var(--csr-orange);
	line-height: 1;
	margin-bottom: 0.5em;
}

/* ── Upgrade pricing ── */

.csr-upgrade-pricing {
	text-align: center;
	margin-bottom: 1.25em;
	line-height: 1.8;
}

.csr-price-was {
	display: inline;
	font-size: 0.9em;
	color: #aaa;
	text-decoration: line-through;
	margin-right: 0.3em;
}

.csr-price-now {
	display: inline;
	font-size: 1.35em;
	font-weight: 700;
	color: #1a1a1a;
}

/* ── Buttons ── */

.csr-btn-keep,
.csr-btn-upgrade,
.csr-btn-keep-mobile {
	display: block;
	width: 100%;
	padding: 0.85em 1em;
	border-radius: 8px;
	font-size: 0.95em;
	font-weight: 600;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	border: none;
}

/* Keep button is a direct flex child of the card — push it to the bottom */
.csr-btn-keep {
	margin-top: auto;
	background: var(--csr-green-dark);
	color: #fff !important;
}

.csr-btn-keep:hover {
	opacity: 0.88;
	color: #fff !important;
}

.csr-btn-upgrade {
	background: var(--csr-orange);
	color: #fff !important;
	width: 100%;
}

/* High-specificity overrides for UiCore/Elementor global button styles */
.csr-card-upgrade .csr-upgrade-form button.csr-btn-upgrade,
.csr-interstitial .csr-upgrade-form button.csr-btn-upgrade,
button.csr-btn-upgrade {
	border-radius: 8px !important;
	font-size: 0.95em !important;
}

a.csr-btn-keep,
.csr-choice-card a.csr-btn-keep {
	font-size: 0.95em !important;
}

.csr-btn-upgrade:hover {
	opacity: 0.88;
	color: #fff !important;
}

.csr-upgrade-form {
	width: 100%;
	margin-top: auto; /* aligns orange button with green button across the two cards */
}

.csr-upgrade-vat-note {
	position: absolute;
	bottom: 0.25em;
	left: 1.75em;
	right: 1.75em;
	margin: 0;
	font-size: 0.85em;
	color: #888;
	text-align: center;
}

/* ── Mobile keep card (below the grid) ── */

.csr-keep-card {
	background: #fff;
	border: 2px solid var(--csr-border);
	border-radius: 14px;
	padding: 1.25em 1.5em;
	margin-bottom: 1.25em;
}

.csr-btn-keep-mobile {
	background: var(--csr-green-dark);
	color: #fff !important;
	border-radius: 8px;
	font-weight: 600;
}

.csr-btn-keep-mobile:hover {
	opacity: 0.88;
	color: #fff !important;
}

/* ── Toilet add-on (below main cards) ── */

.csr-toilet-section {
	margin-top: 1.5em;
}

/* ── Footer note ── */

.csr-footer-note {
	text-align: center;
	font-size: 0.85em;
	color: #999;
	margin: 1.25em 0 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════ */

@media ( max-width: 640px ) {

	/* Cart-page boxes: stack button below message */
	.csr-upsell-body {
		flex-direction: column;
		align-items: stretch;
	}

	.csr-upsell-button {
		width: 100%;
		text-align: center;
	}

	/* Interstitial heading */
	.csr-interstitial-heading {
		font-size: 1.5em;
	}

	/* Interstitial: hide current-choice card, show only upgrade card */
	.csr-choice-grid {
		grid-template-columns: 1fr;
	}

	.csr-card-current {
		display: none;
	}

	/* Show mobile helpers */
	.csr-mobile-only {
		display: flex;
	}

	/* Hide desktop-only skip icon inside upgrade card */
	.csr-desktop-only {
		display: none !important;
	}
}

@media ( min-width: 641px ) {
	/* Hide mobile-only elements on desktop */
	.csr-mobile-only {
		display: none !important;
	}

	.csr-keep-card {
		display: none !important;
	}
}
