/* ==================================================
   Shared Service Price modal
================================================== */

.mast-price-modal,
.mast-price-modal * {
	box-sizing: border-box;
}

.mast-service-detail-price__button[data-mast-price-modal-open],
.mast-create-price__button[data-mast-price-modal-open] {
	cursor: pointer;
}

.mast-price-modal[hidden] {
	display: none;
}

.mast-price-modal {
	position: fixed;
	z-index: 100000;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background-color: rgba(20, 29, 36, 0.7);
	overscroll-behavior: contain;
}

html.mast-price-modal-open,
body.mast-price-modal-open {
	overflow: hidden;
}

.mast-price-modal__dialog {
	display: flex;
	flex-direction: column;
	width: min(100%, 1120px);
	max-height: calc(100vh - 48px);
	max-height: calc(100dvh - 48px);
	margin: 0;
	padding: 0;
	background-color: #fff;
	box-shadow: 0 24px 72px rgba(8, 20, 30, 0.28);
	color: #3f4650;
}

.mast-price-modal__dialog:focus {
	outline: none;
}

.mast-price-modal__header {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin: 0;
	padding: 24px 28px;
	border-bottom: 1px solid #dce2e6;
}

.mast-price-modal__heading {
	min-width: 0;
	margin: 0;
	padding: 0;
}

.mast-price-modal__eyebrow,
.mast-price-modal__title {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
	font-family: inherit;
}

.mast-price-modal__eyebrow {
	color: #0068b7;
	font-size: 0.8125rem;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.mast-price-modal__title {
	margin-top: 4px;
	color: #111;
	font-size: clamp(1.5rem, 3vw, 2rem);
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 0.04em;
}

.mast-price-modal__title::before,
.mast-price-modal__title::after,
.mast-price-modal__category::before,
.mast-price-modal__category::after {
	display: none;
	content: none;
}

.mast-price-modal__close {
	position: relative;
	flex: 0 0 auto;
	width: 48px;
	height: 48px;
	margin: 0;
	padding: 0;
	border: 1px solid #cdd4d9;
	border-radius: 50%;
	background-color: #fff;
	color: #3f4650;
	cursor: pointer;
	transition: background-color 180ms ease, border-color 180ms ease;
}

.mast-price-modal__close span::before,
.mast-price-modal__close span::after {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 20px;
	height: 1.5px;
	background-color: currentColor;
	content: "";
}

.mast-price-modal__close span::before {
	transform: translate(-50%, -50%) rotate(45deg);
}

.mast-price-modal__close span::after {
	transform: translate(-50%, -50%) rotate(-45deg);
}

.mast-price-modal__close:hover,
.mast-price-modal__close:focus-visible {
	border-color: #0068b7;
	background-color: #eef7fc;
	color: #0068b7;
}

.mast-price-modal__close:focus-visible {
	outline: 2px solid #0068b7;
	outline-offset: 3px;
}

.mast-price-modal__body {
	flex: 1 1 auto;
	min-height: 0;
	margin: 0;
	padding: 0 28px 32px;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.mast-price-modal__group {
	margin: 0;
	padding: 32px 0 0;
}

.mast-price-modal__category {
	margin: 0 0 14px;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
	color: #0068b7;
	font-family: inherit;
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.04em;
}

.mast-price-modal__columns,
.mast-price-modal__item {
	display: grid;
	grid-template-columns: minmax(180px, 0.9fr) minmax(190px, 0.72fr) minmax(320px, 1.5fr);
	column-gap: 28px;
}

.mast-price-modal__columns {
	padding: 10px 16px;
	background-color: #f4f7f9;
	color: #565d66;
	font-size: 0.8125rem;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.06em;
}

.mast-price-modal__list {
	margin: 0;
	padding: 0;
	border-bottom: 1px solid #dce2e6;
	list-style: none;
}

.mast-price-modal__item {
	align-items: start;
	margin: 0;
	padding: 20px 16px 22px;
	border-top: 1px solid #dce2e6;
}

.mast-price-modal__field,
.mast-price-modal__item-name,
.mast-price-modal__item-price,
.mast-price-modal__item-description {
	min-width: 0;
	margin: 0;
	padding: 0;
}

.mast-price-modal__field-label {
	display: none;
}

.mast-price-modal__item-name,
.mast-price-modal__item-price {
	color: #333;
	font-family: inherit;
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.7;
	letter-spacing: 0.02em;
}

.mast-price-modal__item-price {
	color: #004f8c;
}

.mast-price-modal__price-line {
	display: block;
	white-space: nowrap;
}

.mast-price-modal__item-description {
	color: #565d66;
	font-family: inherit;
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.75;
	letter-spacing: 0.015em;
}

.mast-price-modal__note {
	margin: 36px 0 0;
	padding: 28px 16px 0;
	border-top: 1px solid #dce2e6;
}

.mast-price-modal__note-title {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
	color: #333;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.6;
	letter-spacing: 0.03em;
}

.mast-price-modal__note-title::before,
.mast-price-modal__note-title::after {
	display: none;
	content: none;
}

.mast-price-modal__note-body {
	max-width: 52rem;
	margin: 10px 0 0;
	padding: 0;
	color: #565d66;
	font-family: inherit;
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.8;
	letter-spacing: 0.015em;
}

.mast-price-modal__note-body p {
	margin: 0 0 4px;
	padding: 0;
	color: inherit;
	font: inherit;
	letter-spacing: inherit;
}

.mast-price-modal__note-body p:last-child {
	margin-bottom: 0;
}

@media screen and (max-width: 1099px) {
	.mast-price-modal {
		padding: 20px;
	}

	.mast-price-modal__dialog {
		max-height: calc(100vh - 40px);
		max-height: calc(100dvh - 40px);
	}

	.mast-price-modal__columns {
		display: none;
	}

	.mast-price-modal__item {
		grid-template-columns: minmax(0, 1fr) minmax(180px, 0.58fr);
		gap: 18px 28px;
		padding: 22px 16px 24px;
	}

	.mast-price-modal__field--description {
		grid-column: 1 / -1;
	}

	.mast-price-modal__field-label {
		display: block;
		margin: 0 0 5px;
		color: #7a8289;
		font-size: 0.75rem;
		font-weight: 700;
		line-height: 1.4;
		letter-spacing: 0.08em;
	}
}

@media screen and (max-width: 767px) {
	.mast-price-modal {
		align-items: stretch;
		padding: 0;
	}

	.mast-price-modal__dialog {
		width: 100%;
		max-height: 100vh;
		max-height: 100dvh;
	}

	.mast-price-modal__header {
		gap: 16px;
		padding: 18px 20px;
	}

	.mast-price-modal__title {
		font-size: 1.375rem;
	}

	.mast-price-modal__close {
		width: 44px;
		height: 44px;
	}

	.mast-price-modal__body {
		padding: 0 20px 28px;
	}

	.mast-price-modal__group {
		padding-top: 28px;
	}

	.mast-price-modal__category {
		margin-bottom: 12px;
		font-size: 1.0625rem;
	}

	.mast-price-modal__item {
		grid-template-columns: minmax(0, 1fr);
		gap: 16px;
		padding: 20px 0 22px;
	}

	.mast-price-modal__field--description {
		grid-column: auto;
	}

	.mast-price-modal__note {
		margin-top: 28px;
		padding: 24px 0 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mast-price-modal__close {
		transition: none;
	}
}
