/* Scoped defaults until block styles take over. */

.hoyry-pricing-product-price-meta,
.hoyry-pricing-offer-descriptions,
.hoyry-pricing-table-wrapper {
	box-sizing: border-box;
	display: block;
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

.hoyry-pricing-product-price-meta {
	margin-top: 0.75em;
	/* Reset inherited price typography; sizes below use rem. */
	font-size: 1rem;
	line-height: 1.5;
}

.hoyry-pricing-countdown {
	display: block;
	margin: 0.75em 0 0;
	font-size: 0.9375rem;
	line-height: 1.5;
	color: #50575e;
}

.hoyry-pricing-countdown-notices {
	margin: 0 0 1.25em;
}

.hoyry-pricing-countdown-notice.woocommerce-info {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.35em;
	margin: 0;
}

.hoyry-pricing-countdown-notice .hoyry-pricing-countdown {
	margin: 0;
}

.hoyry-pricing-countdown__label {
	font-weight: 600;
}

.hoyry-pricing-countdown__timer {
	font-variant-numeric: tabular-nums;
	font-weight: 600;
	color: #1d2327;
}

.hoyry-pricing-campaign-message {
	margin: 0.75em 0 0;
	font-size: 0.9375rem;
	line-height: 1.5;
	font-weight: 600;
	color: #1d2327;
}

.hoyry-pricing-block-placeholder {
	margin: 0;
	padding: 0.75em 1em;
	border: 1px dashed #c3c4c7;
	border-radius: 4px;
	font-size: 0.875rem;
	color: #646970;
}

.hoyry-pricing-offer-descriptions {
	margin: 0.75em 0 0;
}

.hoyry-pricing-offer-description {
	margin: 0 0 0.35em;
	font-size: 0.9375rem;
	line-height: 1.5;
	font-weight: 400;
	color: #50575e;
}

.hoyry-pricing-offer-description:last-child {
	margin-bottom: 0;
}

.hoyry-pricing-table-wrapper {
	margin: 1.25em 0 0;
}

.hoyry-pricing-table-title {
	margin: 0 0 0.35em;
	font-size: 0.875rem;
	line-height: 1.4;
	font-weight: 600;
}

.hoyry-pricing-table-rule-name {
	display: block;
	margin: 0 0 0.5em;
	font-size: 0.8125rem;
	line-height: 1.4;
	font-weight: 400;
	color: #50575e;
}

.hoyry-pricing-table-note {
	margin: 0 0 0.75em;
	font-size: 0.8125rem;
	line-height: 1.45;
	font-weight: 400;
	color: #646970;
}

/* Scroll wrapper prevents crushed columns inside narrow flex/grid parents. */
.hoyry-pricing-table-scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	margin: 0;
}

.hoyry-pricing-table {
	width: 100%;
	min-width: 18rem;
	margin: 0;
	border-collapse: collapse;
	border-spacing: 0;
	table-layout: auto;
	font-size: 0.875rem;
	line-height: 1.4;
}

.hoyry-pricing-table th,
.hoyry-pricing-table td {
	box-sizing: border-box;
	padding: 0.6em 0.75em;
	border: 1px solid rgba(0, 0, 0, 0.1);
	text-align: left;
	vertical-align: middle;
	font-size: 0.875rem;
	font-weight: 400;
	white-space: nowrap;
	word-break: normal;
	overflow-wrap: normal;
	hyphens: manual;
}

.hoyry-pricing-table thead th {
	background: #f6f7f7;
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.01em;
}

.hoyry-pricing-table tbody tr:nth-child(even) {
	background: #fafafa;
}

/* Inside Höyry product-price block the parent can be a tight flex column. */
.woocommerce .hoyry-woocommerce-product-price .hoyry-pricing-product-price-meta {
	flex: 0 0 auto;
	align-self: stretch;
}

.hoyry-pricing-table .amount,
.hoyry-pricing-table .woocommerce-Price-amount,
.woocommerce .hoyry-woocommerce-product-price .hoyry-pricing-table .amount,
.woocommerce .hoyry-woocommerce-product-price .hoyry-pricing-table .woocommerce-Price-amount {
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
	white-space: nowrap;
}

@media (max-width: 600px) {
	.hoyry-pricing-table.shop_table thead {
		display: none;
	}

	.hoyry-pricing-table.shop_table tbody,
	.hoyry-pricing-table.shop_table tr,
	.hoyry-pricing-table.shop_table td {
		display: block;
		width: 100%;
	}

	.hoyry-pricing-table.shop_table tr {
		margin-bottom: 0.75em;
		border: 1px solid rgba(0, 0, 0, 0.1);
	}

	.hoyry-pricing-table.shop_table td {
		display: flex;
		justify-content: space-between;
		gap: 1rem;
		white-space: normal;
		border: 0;
		border-bottom: 1px solid rgba(0, 0, 0, 0.06);
	}

	.hoyry-pricing-table.shop_table td:last-child {
		border-bottom: 0;
	}

	.hoyry-pricing-table.shop_table td::before {
		content: attr(data-title);
		font-size: 0.8125rem;
		font-weight: 600;
		flex: 0 0 auto;
	}
}
