/**
 * Pill and boxes — container fills parent and vertically centers .bnb-pill-and-boxes; cards fixed height.
 * Pattern: pill-and-boxes
 */

/* Fills parent width/height; centers the inner block vertically (needs parent with usable height, e.g. flex column). */
.wp-site-blocks .bnb-pill-and-boxes-container,
.editor-styles-wrapper .bnb-pill-and-boxes-container {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: stretch;
	align-self: stretch;
	width: 100%;
	min-width: 0;
	height: 100%;
	min-height: 100%;
	flex: 1 1 auto;
	box-sizing: border-box;
}

.wp-site-blocks .wp-block-column .bnb-pill-and-boxes-container,
.editor-styles-wrapper .wp-block-column .bnb-pill-and-boxes-container {
	flex: 1 1 auto;
	min-height: 0;
	height: 100%;
	align-self: stretch;
}

.wp-site-blocks .bnb-pill-and-boxes-container > .bnb-pill-and-boxes,
.editor-styles-wrapper .bnb-pill-and-boxes-container > .bnb-pill-and-boxes {
	flex-shrink: 0;
}

.wp-site-blocks .bnb-pill-and-boxes,
.editor-styles-wrapper .bnb-pill-and-boxes {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
	margin-left: auto;
	margin-right: auto;
	justify-self: center;
}

.wp-site-blocks .wp-block-column .bnb-pill-and-boxes,
.editor-styles-wrapper .wp-block-column .bnb-pill-and-boxes,
.wp-site-blocks .wp-block-column .bnb-pill-and-boxes-container,
.editor-styles-wrapper .wp-block-column .bnb-pill-and-boxes-container {
	min-width: 0;
}

/* Pill: matches content-pill-heading (accent chip, 30px padding, 26px bold left) */
.wp-site-blocks .bnb-pill-and-boxes__pill,
.editor-styles-wrapper .bnb-pill-and-boxes__pill {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: flex-start;
	box-sizing: border-box;
	width: 100%;
	max-width: none;
	margin: 0 0 15px;
	padding: 30px;
	background-color: var(--wp--preset--color--accent, #ecc4c0);
	border-radius: 33px;
}

.wp-site-blocks .bnb-pill-and-boxes__pill-text,
.editor-styles-wrapper .bnb-pill-and-boxes__pill-text,
.wp-site-blocks .bnb-pill-and-boxes__pill h3.bnb-pill-and-boxes__pill-text,
.editor-styles-wrapper .bnb-pill-and-boxes__pill h3.bnb-pill-and-boxes__pill-text {
	margin: 0 !important;
	width: 100%;
	font-size: 26px !important;
	font-weight: 700 !important;
	color: #464646 !important;
	line-height: 1.2 !important;
	text-align: left !important;
}

/* Grid: gap between pill and grid handled on grid margin-top */
.wp-site-blocks .bnb-pill-and-boxes__grid,
.editor-styles-wrapper .bnb-pill-and-boxes__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--wp--preset--spacing--50, 1rem);
	width: 100%;
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

@media (max-width: 600px) {
	.wp-site-blocks .bnb-pill-and-boxes__grid,
	.editor-styles-wrapper .bnb-pill-and-boxes__grid {
		grid-template-columns: 1fr;
	}
}

/* Accent-secondary cards: 25px horizontal, 30px vertical padding */
.wp-site-blocks .bnb-pill-and-boxes__box,
.editor-styles-wrapper .bnb-pill-and-boxes__box {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--30, 0.5rem);
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
	height: 11rem;
	min-height: 11rem;
	max-height: 11rem;
	padding: 30px 25px;
	overflow: hidden;
	border-radius: clamp(1.75rem, 4vw, 2.5rem);
	margin: 0;
	background-color: var(--wp--preset--color--accent-secondary, #edeef6);
}

.wp-site-blocks .bnb-pill-and-boxes__box-title,
.editor-styles-wrapper .bnb-pill-and-boxes__box-title,
.wp-site-blocks .bnb-pill-and-boxes__box h4.bnb-pill-and-boxes__box-title,
.editor-styles-wrapper .bnb-pill-and-boxes__box h4.bnb-pill-and-boxes__box-title {
	margin: 0 !important;
	font-size: 18px !important;
	font-weight: 700 !important;
	color: #464646 !important;
	line-height: 1.25 !important;
	flex-shrink: 0;
}

.wp-site-blocks .bnb-pill-and-boxes__box-desc,
.editor-styles-wrapper .bnb-pill-and-boxes__box-desc,
.wp-site-blocks .bnb-pill-and-boxes__box p.bnb-pill-and-boxes__box-desc,
.editor-styles-wrapper .bnb-pill-and-boxes__box p.bnb-pill-and-boxes__box-desc {
	margin: 0 !important;
	font-size: 14px !important;
	font-weight: 400 !important;
	color: #464646 !important;
	line-height: 1.45 !important;
	overflow: hidden;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
	line-clamp: 4;
}

@media (max-width: 500px) {
	.wp-site-blocks .bnb-pill-and-boxes__pill-text,
	.editor-styles-wrapper .bnb-pill-and-boxes__pill-text,
	.wp-site-blocks .bnb-pill-and-boxes__pill h3.bnb-pill-and-boxes__pill-text,
	.editor-styles-wrapper .bnb-pill-and-boxes__pill h3.bnb-pill-and-boxes__pill-text {
		font-size: 22px !important;
	}

	.wp-site-blocks .bnb-pill-and-boxes__box,
	.editor-styles-wrapper .bnb-pill-and-boxes__box {
		height: 9rem;
		min-height: 9rem;
		max-height: 9rem;
	}
}
