/**
 * Bright Mosaic – Contact Details block styles (CONTACT_REVIEW.md CT-2, CT-8).
 *
 * Units: the parent theme sets html { font-size: 62.5% }, so 1rem = 10px here.
 * The call button reuses the site's content button (.wp-block-button__link, css/shared.css)
 * and only adds the icon, the 52px touch height, and full width on phones.
 */

.bm-contact-details {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1.6rem;
}

.bm-contact-details-call {
	margin: 0;
}

.bm-contact-details-call .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	min-height: 52px;
	padding: 1.2rem 2.4rem;
	font-size: 1.8rem;
	line-height: 1.2;
	color: var(--btn-text-primary, #fff);
	text-decoration: none;
}

.bm-contact-details-call .bm-contact-details-icon {
	color: currentColor;
	margin: 0;
}

/* two classes, so the parent's .entry-content ul { padding-left: 1.8em } does not indent the list */
.bm-contact-details .bm-contact-details-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.8rem;
}

.bm-contact-details-item {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
	margin: 0;
	font-size: 1.6rem;
	line-height: 1.5;
}

.bm-contact-details-icon {
	flex-shrink: 0;
	margin-top: 0.2rem;
	color: var(--btn-bg-primary, #007b9c);
}

.bm-contact-details-label {
	font-weight: 700;
	color: var(--color-heading, #004e66);
	margin-right: 0.4rem;
}

.bm-contact-details a:not(.wp-block-button__link) {
	color: var(--btn-bg-primary, #007b9c);
	overflow-wrap: anywhere;
}

/* Editor-only empty-state hint. */
.bm-contact-details-empty {
	padding: 1.5rem;
	text-align: center;
	color: var(--color-muted, #6b6b6b);
	border: 1px dashed var(--border, #e6e6e6);
	border-radius: 8px;
}

/* Phones: the call button spans the column, like the other stacked 52px buttons. */
@media (max-width: 600px) {
	.bm-contact-details {
		align-items: stretch;
	}

	.bm-contact-details-call .wp-block-button__link {
		width: 100%;
	}
}
