/* BP Product Documentation V2 widget styles
 *
 * Rebuilt from scratch. Isolated implementation. No dependency
 * on the previous documentation widget. All rules are scoped
 * under `.bp-product-documentation-v2` and use a unique
 * `--bp-pd-v2-*` token namespace.
 *
 * Layout (desktop, ≥ 1025px):
 *   - full-width cream section (background #FBF6EC)
 *   - centred inner (max-width 1230px)
 *   - centred header: eyebrow + serif title (56-64px) + small
 *     gold divider with diamond + intro
 *   - 2-column cards grid: G4 card ~68% / Documentation
 *     Officielle card ~32%, gap 24px, both stretch to the same
 *     visual height via grid align-items: stretch
 *   - bottom support strip: ~82px tall, single row, dark green
 *     circle on the left, centred text, real olive sprig image
 *     absolutely positioned on the right
 *
 * Tablet (769-1024px):
 *   - keep the 2-column grid with reduced spacing
 *   - reduce G4 "G4" mark size
 *   - reduce support-strip padding
 *
 * Mobile (≤ 768px):
 *   - single column stack: header → G4 card → support card →
 *     support strip
 *   - inside the G4 card: image first, then content, then CTA
 *   - support-visual hidden, no decorative image on mobile
 *   - support-strip text stays centred, sprig stays on the
 *     right
 *
 * Approved palette only:
 *   #374F37  deep green
 *   #B8B25A  olive / gold
 *   #D8C47C  gold border
 *   #FBF6EC  cream background
 *   #F4ECDD  cream soft
 *   #EDDBC3  cream darker
 *   #E4DCCB  cream border subtle
 *   #FFFFFF  white
 *   #1F2A1F  text
 *   #5C6A5C  text muted
 *
 * No SVGs are emitted in CSS. All photographic visuals are
 * real <img> elements sized via object-fit. The class
 * `bp-pd-v2__icon-svg` constrains inline SVG icon width and
 * height to prevent any parent container inheritance.
 */

/* ============================================================
 * SECTION
 * ============================================================ */
.bp-product-documentation-v2 {
	--bp-pd-v2-bg:              #FBF6EC;
	--bp-pd-v2-green:           #374F37;
	--bp-pd-v2-olive:           #B8B25A;
	--bp-pd-v2-gold:            #D8C47C;
	--bp-pd-v2-gold-soft:       #E4DCCB;
	--bp-pd-v2-cream:           #F4ECDD;
	--bp-pd-v2-cream-darker:    #EDDBC3;
	--bp-pd-v2-white:           #FFFFFF;
	--bp-pd-v2-text:            #1F2A1F;
	--bp-pd-v2-text-muted:      #5C6A5C;

	/* Local mirror of the product-offer card token so the three
	 * cards in this widget share the same exact cream as the
	 * rest of the product page, even when the offer widget is
	 * not on the same page. */
	--bp-po-cream:              #FAF6EC;

	--bp-pd-v2-inner-max:       1230px;
	--bp-pd-v2-grid-gap:        24px;

	--bp-pd-v2-font-body:       var(--bp-font-body, 'Manrope', system-ui, sans-serif);
	--bp-pd-v2-font-display:    var(--bp-font-display, 'DM Serif Display', Georgia, serif);

	--bp-pd-v2-radius-card:     22px;
	--bp-pd-v2-radius-strip:    20px;
	--bp-pd-v2-radius-image:    14px;
	--bp-pd-v2-radius-cta:      16px;

	--bp-pd-v2-shadow-card:     0 2px 14px rgba(55, 79, 55, 0.05);

	position: relative;
	isolation: isolate;
	overflow: hidden;
	box-sizing: border-box;
	inline-size: 100%;
	max-inline-size: 100%;
	margin: 0;
	padding-block: 88px;
	background-color: var(--bp-pd-v2-bg);
	color: var(--bp-pd-v2-text);
	font-family: var(--bp-pd-v2-font-body);
}

.bp-product-documentation-v2 *,
.bp-product-documentation-v2 *::before,
.bp-product-documentation-v2 *::after {
	box-sizing: border-box;
}

/* Full-bleed: the widget always spans the full width of its
 * Elementor column / page so the inner stays centered. */
.elementor .elementor-section > .elementor-column > .elementor-widget-wrap,
.elementor .elementor-section > .elementor-column > .elementor-widget-wrap > .elementor-widget,
.elementor .elementor-section > .elementor-column > .elementor-widget-wrap > .elementor-widget > .bp-product-documentation-v2,
.elementor-section .elementor-container,
.elementor-section .elementor-container > .elementor-column,
.elementor-section .elementor-container > .elementor-column > .elementor-widget-wrap,
.elementor-section .elementor-container > .elementor-column > .elementor-widget-wrap > .elementor-widget,
.elementor-section .elementor-container > .elementor-column > .elementor-widget-wrap > .elementor-widget > .bp-product-documentation-v2 {
	inline-size: 100%;
	max-inline-size: 100%;
}

/* ============================================================
 * INNER (centered container)
 * ============================================================ */
.bp-product-documentation-v2__inner {
	position: relative;
	isolation: isolate;
	inline-size: 100%;
	max-inline-size: var(--bp-pd-v2-inner-max);
	margin-inline: auto;
	padding-inline: 24px;
}

/* ============================================================
 * HEADER
 * ============================================================ */
.bp-product-documentation-v2__header {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 0;
	margin-block-end: 48px;
}

.bp-product-documentation-v2__eyebrow {
	margin: 0 0 18px;
	font-family: var(--bp-pd-v2-font-body);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--bp-pd-v2-green);
}

.bp-product-documentation-v2__title {
	margin: 0 0 22px;
	font-family: var(--bp-pd-v2-font-display);
	font-weight: 400;
	font-size: clamp(36px, 4.2vw, 60px);
	line-height: 1.12;
	letter-spacing: -0.005em;
	color: #374F3C;
	max-inline-size: 980px;
}

.bp-product-documentation-v2__divider {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin: 18px 0 22px;
	inline-size: auto;
	max-inline-size: none;
}

.bp-product-documentation-v2__divider-line {
	display: inline-block;
	inline-size: 56px;
	block-size: 1px;
	background: var(--bp-pd-v2-olive);
	border: 0;
	padding: 0;
	flex: 0 0 auto;
}

.bp-product-documentation-v2__divider-diamond {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	inline-size: 8px;
	block-size: 8px;
	transform: rotate(45deg);
	background: var(--bp-pd-v2-olive);
	flex: 0 0 auto;
}

.bp-product-documentation-v2__intro {
	margin: 0;
	max-inline-size: 820px;
	font-family: var(--bp-pd-v2-font-body);
	font-size: clamp(14px, 1.05vw, 16px);
	font-weight: 500;
	line-height: 1.65;
	color: var(--bp-pd-v2-text-muted);
}

/* ============================================================
 * CARDS GRID (2 columns, 68/32)
 * ============================================================ */
.bp-product-documentation-v2__cards {
	display: grid;
	grid-template-columns: minmax(0, 2.125fr) minmax(0, 1fr);
	grid-template-rows: 1fr;
	column-gap: var(--bp-pd-v2-grid-gap);
	row-gap: 24px;
	align-items: stretch;
	margin: 0;
	padding: 0;
}

/* ============================================================
 * LEFT — G4 CARD
 * ============================================================ */
.bp-product-documentation-v2__g4-card {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	min-block-size: 0;
	min-inline-size: 0;
	background: var(--bp-po-cream);
	border: 1px solid var(--bp-pd-v2-gold);
	border-radius: var(--bp-pd-v2-radius-card);
	box-shadow: var(--bp-pd-v2-shadow-card);
	padding: 16px;
}

.bp-product-documentation-v2__g4-top {
	display: grid;
	grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
	gap: 24px;
	padding: 4px;
	flex: 1 1 auto;
	min-block-size: 0;
	min-inline-size: 0;
}

/* G4 image panel */
.bp-product-documentation-v2__g4-image {
	position: relative;
	overflow: hidden;
	border-radius: var(--bp-pd-v2-radius-image);
	background: var(--bp-pd-v2-cream);
	min-block-size: 220px;
}

.bp-product-documentation-v2__g4-image-img {
	display: block;
	inline-size: 100%;
	block-size: 100%;
	max-inline-size: 100%;
	max-block-size: 100%;
	object-fit: cover;
	object-position: center center;
	border-radius: var(--bp-pd-v2-radius-image);
}

/* G4 content panel */
.bp-product-documentation-v2__g4-content {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	justify-content: flex-start;
	gap: 14px;
	padding: 8px 4px 4px;
	min-block-size: 0;
	min-inline-size: 0;
}

.bp-product-documentation-v2__g4-content-inner {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 4px;
	flex: 1 1 auto;
	min-block-size: 0;
	min-inline-size: 0;
}

.bp-product-documentation-v2__g4-mark {
	font-family: var(--bp-pd-v2-font-display);
	font-weight: 400;
	font-size: clamp(72px, 8vw, 102px);
	line-height: 0.95;
	color: var(--bp-pd-v2-olive);
	letter-spacing: -0.01em;
	margin: 0;
}

.bp-product-documentation-v2__g4-brand {
	margin: 0;
	font-family: var(--bp-pd-v2-font-body);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--bp-pd-v2-green);
}

.bp-product-documentation-v2__g4-reference {
	margin: 4px 0 0;
	font-family: var(--bp-pd-v2-font-body);
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--bp-pd-v2-olive);
}

.bp-product-documentation-v2__g4-sheet {
	margin: 16px 0 14px;
	font-family: var(--bp-pd-v2-font-body);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--bp-pd-v2-green);
}

.bp-product-documentation-v2__g4-features {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
	inline-size: 100%;
}

.bp-product-documentation-v2__g4-feature {
	display: grid;
	grid-template-columns: 30px 1fr;
	gap: 12px;
	align-items: flex-start;
	font-family: var(--bp-pd-v2-font-body);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.5;
	color: var(--bp-pd-v2-text);
}

.bp-product-documentation-v2__g4-feature-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	inline-size: 30px;
	block-size: 30px;
	flex: 0 0 auto;
	color: var(--bp-pd-v2-green);
	line-height: 0;
}

.bp-product-documentation-v2__g4-feature-icon .bp-pd-v2__icon-svg {
	display: block;
	inline-size: 28px;
	block-size: 28px;
	max-inline-size: 100%;
	max-block-size: 100%;
}

.bp-product-documentation-v2__g4-feature-text {
	min-inline-size: 0;
}

/* G4 CTA */
.bp-product-documentation-v2__g4-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-block-size: 48px;
	padding-block: 12px;
	padding-inline: 26px;
	border: 1px solid transparent;
	border-radius: 999px;
	font-family: var(--bp-pd-v2-font-body);
	font-weight: 700;
	font-size: 13px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
	-webkit-appearance: none;
	appearance: none;
	white-space: nowrap;
	line-height: 1.3;
	background-color: #374F37 !important;
	color: #FFFFFF;
	box-shadow: 0 4px 14px rgba(55, 79, 55, 0.35);
}

.bp-product-documentation-v2__g4-cta:focus-visible {
	outline: 2px solid #374F37;
	outline-offset: 2px;
}

.bp-product-documentation-v2__g4-cta:hover,
.bp-product-documentation-v2__g4-cta:focus-visible {
	background-color: #2C3F2C !important;
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(44, 63, 44, 0.45);
}

.bp-product-documentation-v2__g4-cta-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	inline-size: 16px;
	block-size: 16px;
	color: currentColor;
	flex: 0 0 auto;
}

.bp-product-documentation-v2__g4-cta-icon i,
.bp-product-documentation-v2__g4-cta-icon svg {
	font-size: 16px;
	width: 16px;
	height: 16px;
	fill: currentColor;
	display: block;
	max-inline-size: 100%;
	max-block-size: 100%;
}

.bp-product-documentation-v2__g4-cta-label {
	display: inline-block;
	white-space: nowrap;
}

/* ============================================================
 * RIGHT — DOCUMENTATION OFFICIELLE CARD
 * ============================================================ */
.bp-product-documentation-v2__support-card {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	inline-size: 100%;
	block-size: 100%;
	min-block-size: 0;
	min-inline-size: 0;
	background: var(--bp-po-cream);
	border: 1px solid var(--bp-pd-v2-gold);
	border-radius: var(--bp-pd-v2-radius-card);
	box-shadow: var(--bp-pd-v2-shadow-card);
	overflow: hidden;
}

.bp-product-documentation-v2__support-top {
	position: relative;
	z-index: 3;
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 32px 24px 18px;
	text-align: center;
	gap: 0;
	min-block-size: 0;
}

.bp-product-documentation-v2__support-heading-row {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	inline-size: 100%;
	max-inline-size: 220px;
	margin-block-end: 22px;
}

.bp-product-documentation-v2__support-heading-line {
	flex: 1 1 auto;
	block-size: 1px;
	background: var(--bp-pd-v2-olive);
	opacity: 0.75;
	max-inline-size: 56px;
}

.bp-product-documentation-v2__support-circle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	inline-size: 58px;
	block-size: 58px;
	flex: 0 0 auto;
	border-radius: 50%;
	background: var(--bp-pd-v2-green);
	color: var(--bp-pd-v2-white);
	line-height: 0;
}

.bp-product-documentation-v2__support-circle .bp-pd-v2__icon-svg {
	display: block;
	inline-size: 24px;
	block-size: 24px;
	max-inline-size: 100%;
	max-block-size: 100%;
}

.bp-product-documentation-v2__support-title {
	margin: 0;
	font-family: var(--bp-pd-v2-font-body);
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--bp-pd-v2-green);
	line-height: 1.45;
}

.bp-product-documentation-v2__support-diamond {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 14px 0 16px;
	color: var(--bp-pd-v2-olive);
	line-height: 0;
}

.bp-product-documentation-v2__support-diamond .bp-pd-v2__diamond {
	display: block;
	inline-size: 8px;
	block-size: 8px;
}

.bp-product-documentation-v2__support-text {
	margin: 0;
	max-inline-size: 280px;
	font-family: var(--bp-pd-v2-font-body);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.55;
	color: var(--bp-pd-v2-text);
}

/* Right card image panel — anchored to the bottom via
 * margin-top: auto so the image fills the remaining vertical
 * space. */
.bp-product-documentation-v2__support-visual {
	position: relative;
	z-index: 2;
	margin-block-start: auto;
	block-size: 48%;
	min-block-size: 230px;
	overflow: hidden;
}

.bp-product-documentation-v2__support-visual-img {
	display: block;
	inline-size: 100%;
	block-size: 100%;
	max-inline-size: 100%;
	max-block-size: 100%;
	object-fit: cover;
	object-position: center bottom;
}

/* ============================================================
 * BOTTOM SUPPORT STRIP
 * Visual shell provided by the site-wide `.bp-info-strip`
 * utility (see `assets/css/elementor/bp-info-strip.css`).
 * The variant class is preserved as a structural hook only.
 * ============================================================ */
.bp-product-documentation-v2__support-strip {
	position: relative;
	margin-block-start: 28px;
	overflow: hidden;
}

/* ============================================================
 * TABLET (769-1024px)
 * ============================================================ */
@media (max-width: 1024px) and (min-width: 769px) {
	.bp-product-documentation-v2 {
		padding-block: 72px;
	}

	.bp-product-documentation-v2__inner {
		padding-inline: 20px;
	}

	.bp-product-documentation-v2__title {
		font-size: clamp(32px, 4.4vw, 44px);
	}

	.bp-product-documentation-v2__cards {
		grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr);
		column-gap: 20px;
	}

	.bp-product-documentation-v2__g4-top {
		grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
		gap: 18px;
	}

	.bp-product-documentation-v2__g4-mark {
		font-size: clamp(56px, 6.4vw, 78px);
	}

	.bp-product-documentation-v2__g4-feature {
		font-size: 13px;
	}

	.bp-product-documentation-v2__g4-feature-icon {
		inline-size: 26px;
		block-size: 26px;
	}

	.bp-product-documentation-v2__g4-feature-icon .bp-pd-v2__icon-svg {
		inline-size: 24px;
		block-size: 24px;
	}

	.bp-product-documentation-v2__support-visual {
		block-size: 44%;
		min-block-size: 200px;
	}

	.bp-product-documentation-v2__support-strip {
		block-size: 78px;
		min-block-size: 78px;
		max-block-size: 78px;
		padding: 0 110px 0 24px;
		gap: 18px;
	}

	.bp-product-documentation-v2__support-strip-icon {
		inline-size: 52px;
		block-size: 52px;
	}

	.bp-product-documentation-v2__support-strip-icon .bp-pd-v2__icon-svg {
		inline-size: 22px;
		block-size: 22px;
	}

	/* Typography owned by the shared `.bp-info-strip__text` mobile utility. */
	.bp-product-documentation-v2__support-strip-text {
	}

	.bp-product-documentation-v2__support-strip-sprig {
		inset-inline-end: 22px;
	}
}

/* ============================================================
 * MOBILE (≤ 768px)
 * ============================================================ */
@media (max-width: 768px) {
	.bp-product-documentation-v2 {
		padding-block: 56px;
	}

	.bp-product-documentation-v2__inner {
		padding-inline: 16px;
	}

	.bp-product-documentation-v2__header {
		margin-block-end: 32px;
	}

	.bp-product-documentation-v2__eyebrow {
		font-size: 12px;
		letter-spacing: 0.2em;
	}

	.bp-product-documentation-v2__title {
		font-size: clamp(28px, 7vw, 36px);
		line-height: 1.18;
	}

	.bp-product-documentation-v2__divider {
		margin: 0 0 18px;
	}

	.bp-product-documentation-v2__intro {
		font-size: 14px;
	}

	/* Stack: G4 card then support card then strip. */
	.bp-product-documentation-v2__cards {
		grid-template-columns: 1fr;
		grid-template-rows: auto;
		row-gap: 20px;
	}

	/* G4 card: image first, then content, then CTA. */
	.bp-product-documentation-v2__g4-card {
		padding: 14px;
	}

	.bp-product-documentation-v2__g4-top {
		grid-template-columns: 1fr;
		gap: 18px;
	}

	.bp-product-documentation-v2__g4-image {
		min-block-size: 260px;
		order: 1;
	}

	.bp-product-documentation-v2__g4-content {
		padding: 4px 4px 0;
		order: 2;
	}

	.bp-product-documentation-v2__g4-cta {
		order: 3;
		margin-block-start: 0;
		font-size: 12.5px;
		letter-spacing: 0.16em;
		min-block-size: 50px;
	}

	.bp-product-documentation-v2__g4-mark {
		font-size: clamp(52px, 14vw, 68px);
	}

	/* Right card: keep the full structure but remove the
	 * photographic visual on mobile (the spec asks for the
	 * strip-style text support layout to take over). */
	.bp-product-documentation-v2__support-card {
		min-block-size: 0;
	}

	.bp-product-documentation-v2__support-visual {
		display: none;
	}

	.bp-product-documentation-v2__support-top {
		padding: 32px 22px 28px;
	}

	.bp-product-documentation-v2__support-strip {
		/* Mobile sizing owned by .bp-info-strip responsive block. */
	}
}

/* ============================================================
 * PRINT
 * ============================================================ */
@media print {
	.bp-product-documentation-v2__support-visual,
	.bp-product-documentation-v2__support-strip-sprig {
		display: none !important;
	}
}
