/* Establish a containment context so @container below can measure
   this box's own width, independent of the page/viewport width.
   This is what makes a 400px sidebar widget respond correctly even
   on a 1920px-wide screen, where a viewport media query never fires. */
.pp-obl-box-wrap {
	container-type: inline-size;
	container-name: pp-obl;
}

.pp-obl-box {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
	border-radius: 10px;
	padding: 20px 24px;
	margin: 24px 0;
	display: flex;
	align-items: center;
	gap: 20px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
	box-sizing: border-box;
}

.pp-obl-box .pp-obl-content {
	flex: 1 1 auto;
	min-width: 0;
}

.pp-obl-box .pp-obl-label {
	font-size: 16px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin-bottom: 6px;
	opacity: 0.85;
}

.pp-obl-box .pp-obl-headline {
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
	margin-bottom: 6px;
}

.pp-obl-box .pp-obl-desc {
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
}

.pp-obl-box .pp-obl-cta {
	flex: 0 0 auto;
}

.pp-obl-box .pp-obl-btn {
	display: inline-block;
	font-family: inherit;
	font-size: 16px;
	font-weight: 500;
	color: #ffffff;
	text-decoration: none;
	padding: 12px 24px;
	border-radius: 6px;
	min-height: 40px;
	line-height: 1.4;
	white-space: nowrap;
	transition: opacity 0.15s ease;
}

.pp-obl-box .pp-obl-btn:hover {
	opacity: 0.9;
	color: #ffffff;
}

/* ===========================================================
   Narrow layout: stacked, center-aligned.
   Fires when the BOX'S OWN container is narrow — a 400px sidebar
   widget on a 1920px desktop screen still triggers this, because
   @container measures the element's container, not the viewport.
   =========================================================== */
@container pp-obl (max-width: 400px) {
	.pp-obl-box {
		flex-direction: column;
		align-items: center;
		text-align: center;
		gap: 12px;
	}
	.pp-obl-box .pp-obl-content {
		width: 100%;
	}
	.pp-obl-box .pp-obl-cta {
		width: 100%;
	}
	.pp-obl-box .pp-obl-btn {
		display: block;
		width: 100%;
		text-align: center;
		white-space: normal;
	}
}

/* ===========================================================
   Fallback for browsers without container query support
   (older Safari/Firefox versions, roughly pre-2023).
   Uses viewport width instead — won't fix the sidebar-on-wide-
   screen case, but ensures phones still get a usable layout.
   =========================================================== */
@supports not (container-type: inline-size) {
	@media (max-width: 480px) {
		.pp-obl-box {
			flex-direction: column;
			align-items: center;
			text-align: center;
			gap: 12px;
		}
		.pp-obl-box .pp-obl-content {
			width: 100%;
		}
		.pp-obl-box .pp-obl-cta {
			width: 100%;
		}
		.pp-obl-box .pp-obl-btn {
			display: block;
			width: 100%;
			text-align: center;
			white-space: normal;
		}
	}
}
