.wppm-enter-table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    z-index: 1;
}
.wppm-enter-table .attribute-name {
	background-color: #fafafa;
    padding: 12px 0 10px 15px;
    font-weight: 600;
    white-space: nowrap;
}
.has-two-attribute .attribute-name {
    width: 25%;
}
.wppm-enter-table .attribute-name.center {
    text-align: center;
    padding-left: 0;
    white-space: nowrap;
}
.wppm-enter-table td {
    border: 1px solid #eee;
	padding: 10px 15px !important;
}
.wppm-enter-table .attribute-price {
    text-align: center;
    background: #fff;
    white-space: nowrap;
}
.wppm-enter-table .attribute-price:hover {
	background-color: #fafafa;
	cursor: pointer;
}
.wppm-enter-table .attribute-price del {
    margin-right: 10px;
    font-weight: 400;
}
.wppm-enter-table .attribute-price ins {
    text-decoration: none;
    background: transparent;
    font-weight: 400;
}
.table-responsive {
    min-height: .01%;
    overflow-x: auto;
    margin-bottom: 30px !important;
}

.has-price-matrix.pm-hide-dropdown .variations_form table.variations {
	display: none;
}
body.pm-position-two .single_variation_wrap {
	clear: both;
}
.pm-disable-qty input {
	cursor: not-allowed;
}
.pm-disable-qty input[type=number]::-webkit-inner-spin-button, 
.pm-disable-qty input[type=number]::-webkit-outer-spin-button { 
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    margin: 0; 
}
/* Tooltip: clean card with "Label  Value" rows.
 * Background / text / divider colors and font size come from the plugin settings. */
.tippy-popper .tippy-tooltip {
	padding: 8px 12px !important;
	border-radius: 8px;
	box-shadow: 0 10px 30px rgba(15, 23, 42, .16), 0 2px 6px rgba(15, 23, 42, .08);
	line-height: 1.4;
	text-align: left;
}
.tippy-popper .tippy-tooltip-content table {
	width: auto;
	min-width: 140px;
	margin: 0 !important;
	border: 0 !important;
	border-collapse: collapse;
	background: transparent !important;
	font-size: inherit;
}
.tippy-popper table > tbody > tr {
	border: 0 !important;
	background: transparent !important;
}
.tippy-popper table > tbody > tr > td {
	padding: 5px 0 !important;
	border: 0 !important;
	background: transparent !important;
	color: inherit;
	font-size: inherit;
	text-align: left;
	white-space: nowrap;
}
.tippy-popper table > tbody > tr + tr > td {
	border-top: 1px solid var(--wppm-tip-border, rgba(0, 0, 0, .08)) !important;
}
.tippy-popper table > tbody > tr > td:first-child {
	padding-right: 18px !important;
	opacity: .6;
	font-size: .85em;
	letter-spacing: .02em;
	text-transform: uppercase;
}
.tippy-popper table > tbody > tr > td:last-child {
	font-weight: 600;
	text-align: right;
}
@-webkit-keyframes spin {
    100% {
        -webkit-transform: rotate(360deg)
    }
}
@-moz-keyframes spin {
    100% {
        -moz-transform: rotate(360deg)
    }
}
@keyframes spin {
    100% {
        -webkit-transform: rotate(360deg);
        -moz-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        -o-transform: rotate(360deg);
        transform: rotate(360deg)
    }
}

.blockUI.blockOverlay::before {
    height: 30px;
    width: 30px;
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -.5em;
    margin-top: -.5em;
    content: '';
    -webkit-animation: spin 1s ease-in-out infinite;
    -moz-animation: spin 1s ease-in-out infinite;
    animation: spin 1s ease-in-out infinite;
    background: url(../images/loader.svg) center center;
    background-size: cover;
    line-height: 1;
    text-align: center;
    font-size: 2em;
    color: rgba(0,0,0,.75);
}

.wppm-notice-content {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
    padding: .75rem 1.25rem;
    font-size: 1rem;
    border-radius: .25rem;	
}
/* Out of stock / unavailable cells */
.wppm-enter-table .attribute-price.is-unavailable,
.wppm-enter-table .attribute-price.is-unavailable:hover {
	background-color: #fafafa;
	color: #a7aaad;
	cursor: not-allowed;
}
.wppm-enter-table .attribute-price.is-unavailable:empty,
.wppm-enter-table .attribute-price.is-unavailable:not(:has(.wppm-unavailable)) {
	cursor: default;
}
.wppm-unavailable del,
.wppm-unavailable ins,
.wppm-unavailable .amount {
	color: inherit;
}
.wppm-unavailable ins {
	text-decoration: line-through;
}
.wppm-stock-label {
	display: block;
	margin-top: 2px;
	color: #b32d2e;
	font-size: .75em;
	font-weight: 600;
	letter-spacing: .03em;
	text-transform: uppercase;
}

/* Badges: Best Value / Popular
 * Colors (--wppm-badge-bg / --wppm-badge-color) are printed inline from the plugin settings. */
.wppm-badge {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: max-content;
	margin: 0 auto 6px;
	padding: 4px 14px !important;
	border-radius: 999px;
	background: var(--wppm-badge-bg, #2271b1);
	color: var(--wppm-badge-color, #fff);
	font-size: .72em;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: .03em;
	text-transform: uppercase;
	white-space: nowrap;
	box-shadow: 0 2px 6px color-mix(in srgb, var(--wppm-badge-bg, #2271b1) 30%, transparent);
}
.wppm-badge::before {
	content: none;
	flex: 0 0 auto;
	width: 1.4em;
	height: 1.4em;
	background: currentColor;
	-webkit-mask: var(--wppm-badge-icon) center / contain no-repeat;
	mask: var(--wppm-badge-icon) center / contain no-repeat;
}
.wppm-badge--best-value {
	--wppm-badge-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 7.5l4.5 4 4.5-7 4.5 7 4.5-4-2 10.5H5z M5 19.5h14V21H5z'/%3E%3C/svg%3E");
}
.wppm-badge--popular {
	--wppm-badge-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12.5 2c.6 3.3 4.5 5.6 4.5 10.2 0 .9-.2 1.7-.6 2.4.2-2-.8-3.6-2.2-4.6.1 2.4-1.2 4-2.9 4-1.4 0-2.4-1.1-2.3-2.9C7.2 12.6 6 14.4 6 16.6 6 19.6 8.7 22 12 22s6-2.4 6-5.6C18 9.6 13.6 6 12.5 2z'/%3E%3C/svg%3E");
}
.wppm-badge--best-value::before,
.wppm-badge--popular::before {
	content: "";
}

/* Highlighted cell: rounded colored frame with a light tint */
.wppm-enter-table .attribute-price:has(.wppm-badge) {
	position: relative;
	padding: 14px 18px !important;
}
.wppm-enter-table .attribute-price:has(.wppm-badge)::before {
	content: "";
	position: absolute;
	inset: 4px;
	z-index: 0;
	border: 1.5px solid var(--wppm-badge-bg, #2271b1);
	border-radius: 8px;
	background: color-mix(in srgb, var(--wppm-badge-bg, #2271b1) 6%, transparent);
	pointer-events: none;
}
.wppm-enter-table .attribute-price:has(.wppm-badge) > * {
	position: relative;
	z-index: 1;
}
.wppm-enter-table .attribute-price:has(.wppm-badge) ins,
.wppm-enter-table .attribute-price:has(.wppm-badge) ins .amount {
	font-weight: 700;
	font-size: 1.1em;
}
.wppm-enter-table .attribute-price:has(.wppm-badge--best-value) ins .amount {
	color: color-mix(in srgb, var(--wppm-badge-bg, #00a32a) 80%, #000);
}

/* Bulk order mode */
body.pm-bulk-mode .variations_form table.variations,
body.pm-bulk-mode .single_variation_wrap .single_variation,
body.pm-bulk-mode .single_variation_wrap .woocommerce-variation-add-to-cart,
body.pm-bulk-mode .variations_form .reset_variations {
	display: none !important;
}
.pm-table-variations[data-mode="bulk"] .attribute-price,
.pm-table-variations[data-mode="bulk"] .attribute-price:hover {
	cursor: default;
}
.wppm-qty {
	display: flex;
	width: max-content;
	align-items: stretch;
	margin: 8px auto 0;
	border: 1px solid #dcdcde;
	border-radius: 6px;
	background: #fff;
	overflow: hidden;
	vertical-align: middle;
}
.wppm-qty.has-qty {
	border-color: currentColor;
}
.wppm-qty button {
	flex: 0 0 28px;
	width: 28px;
	min-height: 28px;
	margin: 0;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	color: inherit !important;
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
	box-shadow: none !important;
}
.wppm-qty button:hover,
.wppm-qty button:focus-visible {
	background: rgba(0, 0, 0, .05) !important;
	outline: none;
}
.wppm-qty .wppm-qty-input {
	width: 36px !important;
	min-width: 0;
	height: auto;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: inherit;
	font-size: 14px;
	text-align: center;
	-moz-appearance: textfield;
	appearance: textfield;
}
.wppm-qty .wppm-qty-input::-webkit-inner-spin-button,
.wppm-qty .wppm-qty-input::-webkit-outer-spin-button {
	-webkit-appearance: none;
	margin: 0;
}
.wppm-qty .wppm-qty-input:focus {
	outline: none;
}
.wppm-bulk-summary {
	margin: -15px 0 30px;
}
.wppm-bulk-totals {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 12px;
	font-size: .9em;
}
.wppm-bulk-total {
	font-size: 1.15em;
}
.wppm-bulk-total strong {
	font-weight: 700;
}
.wppm-bulk-message:empty {
	display: none;
}
.wppm-bulk-message {
	margin-bottom: 12px;
	padding: 10px 14px;
	border-left: 3px solid #b32d2e;
	background: #fcf0f1;
	font-size: .9em;
	line-height: 1.5;
}
.wppm-bulk-message a {
	margin-left: 4px;
	font-weight: 600;
	color: inherit;
	text-decoration: underline;
}
.wppm-bulk-message .button,
.wppm-bulk-message .wc-forward {
	float: none !important;
	padding: 0 !important;
	border: 0 !important;
	background: none !important;
	color: inherit !important;
	font-size: inherit !important;
}
.wppm-bulk-message.is-error {
	color: #b32d2e;
}
.wppm-bulk-summary .wppm-bulk-add {
	display: block;
	width: 100%;
	float: none !important;
}
.wppm-bulk-summary .wppm-bulk-add[disabled] {
	opacity: .6;
	cursor: not-allowed;
	pointer-events: none;
}

/* Quantity box: remove theme focus outlines / borders on the inner input and buttons
 * (they showed as a black line next to "+"), show one focus ring on the whole box instead. */
.wppm-qty .wppm-qty-input,
.wppm-qty .wppm-qty-input:focus,
.wppm-qty .wppm-qty-input:focus-visible,
.wppm-qty .wppm-qty-input:hover,
.wppm-qty button,
.wppm-qty button:focus,
.wppm-qty button:focus-visible,
.wppm-qty button:active {
	outline: 0 !important;
	outline-offset: 0 !important;
	border: 0 !important;
	box-shadow: none !important;
	-webkit-appearance: none;
	appearance: none;
}
.wppm-qty .wppm-qty-input {
	-moz-appearance: textfield;
	appearance: textfield;
}
.wppm-qty:focus-within {
	box-shadow: 0 0 0 2px rgba(34, 113, 177, .35);
}
