/**
 * Crestmark Membership Add-Ons — shared styles.
 * Deliberately quiet: inherits the site's fonts and colors so the card
 * sits inside the existing Crestmark branding rather than fighting it.
 */

.cmhs-card {
	border: 1px solid rgba(0, 0, 0, 0.15);
	border-radius: 8px;
	padding: 1.25em 1.5em;
	margin: 1.25em 0;
	background: rgba(0, 0, 0, 0.02);
}

.cmhs-title {
	margin: 0 0 0.75em;
}

.cmhs-line {
	display: flex;
	justify-content: space-between;
	gap: 1em;
	margin: 0.25em 0;
}

.cmhs-total {
	font-weight: 700;
	font-size: 1.15em;
	border-top: 1px solid rgba(0, 0, 0, 0.15);
	padding-top: 0.5em;
	margin-top: 0.5em;
}

.cmhs-muted {
	opacity: 0.75;
	font-size: 0.95em;
}

.cmhs-note {
	font-size: 0.85em;
	opacity: 0.75;
	margin: 0.75em 0 0;
}

.cmhs-addons-list {
	margin: 0.75em 0;
	display: flex;
	flex-direction: column;
	gap: 0.5em;
}

.cmhs-addon-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1em;
	padding: 0.6em 0.75em;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 6px;
	cursor: pointer;
	background: #fff;
}

.cmhs-addon-row:hover {
	border-color: rgba(0, 0, 0, 0.3);
}

.cmhs-addon-check {
	display: flex;
	align-items: center;
	gap: 0.6em;
}

.cmhs-addon-check input[type="checkbox"] {
	margin: 0;
}

.cmhs-addon-price {
	white-space: nowrap;
	font-weight: 600;
}

.cmhs-button {
	margin-top: 1em;
	padding: 0.7em 1.4em;
	border-radius: 6px;
	border: none;
	cursor: pointer;
	font-weight: 600;
}

.cmhs-button:disabled {
	opacity: 0.55;
	cursor: default;
}

.cmhs-checkout-total {
	margin-top: 1em;
}

/* --- Service credits (member-facing) --- */

.cmhs-credits-figure {
	font-size: 1.1em;
	margin: 0 0 0.5em;
}

.cmhs-credits-figure strong {
	font-size: 1.6em;
	line-height: 1;
	vertical-align: -0.05em;
}

.cmhs-credit-dots {
	display: flex;
	gap: 6px;
	margin: 0 0 0.75em;
}

.cmhs-dot {
	width: 14px;
	height: 14px;
	border-radius: 50%;
	border: 2px solid currentColor;
	opacity: 0.35;
}

.cmhs-dot.is-available {
	background: currentColor;
	opacity: 1;
}

/* --- Service history (member-facing) --- */

.cmhs-history-list {
	list-style: none;
	margin: 0.75em 0 0;
	padding: 0;
}

.cmhs-history-item {
	padding: 0.75em 0;
	border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.cmhs-history-head {
	display: flex;
	justify-content: space-between;
	gap: 1em;
	align-items: baseline;
}

.cmhs-history-title {
	font-weight: 600;
}

.cmhs-history-date {
	white-space: nowrap;
	opacity: 0.7;
	font-size: 0.9em;
}

.cmhs-history-notes {
	margin-top: 0.25em;
	opacity: 0.85;
	font-size: 0.95em;
}

.cmhs-history-notes p {
	margin: 0 0 0.4em;
}

.cmhs-attachment-list {
	list-style: none;
	margin: 0.4em 0 0;
	padding: 0;
	font-size: 0.9em;
}

.cmhs-attachment-list li {
	padding: 1px 0;
}
