/* Keep the addon panel above WooCommerce's purchase controls, even when the theme makes .cart a flex row. */
.ehar-panel fieldset.ehar-field { border: 0; padding: 0; min-width: 0; }
.ehar-panel .ehar-choice { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 10px 12px; border: 1px solid #aeb9b7; border-radius: 8px; cursor: pointer; font-weight: 500; }
.ehar-panel .ehar-choice:has(input:checked) { background: #f9eee7; border-color: #a74930; }
.ehar-panel .ehar-choice input[type=checkbox], .ehar-panel .ehar-choice input[type=radio], .ehar-panel .ehar-field > input[type=checkbox] { width: 20px; height: 20px; min-height: 20px; flex: 0 0 20px; margin: 0; padding: 0; appearance: auto; }
.ehar-panel .ehar-choice img { width: 64px; height: 52px; object-fit: cover; border-radius: 5px; }
.ehar-panel .ehar-color-swatch { width: 24px; height: 24px; border-radius: 50%; border: 1px solid #919f9a; }
.ehar-panel input[type=date], .ehar-panel input[type=time], .ehar-panel input[type=datetime-local] { cursor: pointer; }
.ehar-purchase-layout {
	display: grid !important;
	grid-template-columns: minmax(72px, auto) minmax(0, 1fr) !important;
	align-items: start !important;
	gap: 14px !important;
	width: 100% !important;
}

.ehar-purchase-layout > .ehar-panel {
	grid-column: 1 / -1 !important;
	width: 100% !important;
	min-width: 0 !important;
	margin: 0 0 8px !important;
}

.ehar-purchase-layout > .quantity {
	grid-column: 1 !important;
	align-self: stretch !important;
	margin: 0 !important;
}

.ehar-purchase-layout > .quantity input {
	height: 52px !important;
	min-height: 52px !important;
}

.ehar-purchase-layout > .single_add_to_cart_button {
	grid-column: 2 !important;
	width: 100% !important;
	min-height: 52px !important;
	height: 52px !important;
	margin: 0 !important;
	align-self: start !important;
}

@media (max-width: 480px) {
	.ehar-purchase-layout {
		grid-template-columns: 72px minmax(0, 1fr) !important;
	}
}
