/**
 * Variation Button Styles
 *
 * @package ND_Event_Ticket
 */

/* Variation Buttons */
.ndet-variation-buttons {
	margin: 10px 0 20px;
}

.ndet-variation-top-row {
	margin-bottom: 15px;
}

.ndet-variation-heading {
	font-size: 1rem;
	line-height: 1.5;
}

.ndet-variation-heading-label {
	font-weight: 700;
	color: inherit;
}

.ndet-variation-heading-value {
	font-weight: 400;
	color: inherit;
}

.ndet-variation-reset {
	color: inherit;
	text-decoration: none;
	font-size: 0.8rem;
	transition: opacity 0.2s;
}

.ndet-variation-reset:hover {
	opacity: 0.7;
	text-decoration: underline;
}

.ndet-variation-buttons-wrapper {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 10px;
}

.ndet-variation-button {
	background: transparent;
	border: 1px solid #ccc;
	border-radius: 3px;
	padding: 6px 15px;
	font-size: 1rem;
	cursor: pointer;
	transition: all 0.2s;
	color: #000;
	font-family: inherit;
	line-height: 1.5;
}

.ndet-variation-button:hover {
	border-color: #999;
	background-color: #fafafa;
}

.ndet-variation-button-selected {
	border-color: #000;
	border-width: 1px;
	background-color: #fafafa;
	color: #000;
	font-weight: 400;
}

.ndet-variation-button-selected:hover {
	border-color: #000;
	background-color: transparent;
}

/* Hide original select when buttons are shown */
.variations select[data-ndet-buttons-created],
.woocommerce-variation-add-to-cart-wrapper select[data-ndet-buttons-created] {
	display: none !important;
}

/* Hide original label, reset link, and value cell when buttons are shown */
.variations tr:has(select[data-ndet-buttons-created]) th.label,
.variations tr:has(select[data-ndet-buttons-created]) .reset_variations,
.variations tr td.value:has(select[data-ndet-buttons-created]) {
	display: none !important;
}

.variations tr td.value:has(select[data-ndet-buttons-created]) {
	padding: 0 !important;
	margin: 0 !important;
}

/* Fallback for browsers that don't support :has() */
.variations select[data-ndet-buttons-created] ~ .reset_variations {
	display: none !important;
}

.single-product .woocommerce-variation-price {
	margin-bottom: 10px;
}
