/*
 * Million Dollar Script Two
 *
 * @author      Ryan Rhode
 * @copyright   (C) 2025, Ryan Rhode
 * @license     https://opensource.org/licenses/GPL-3.0 GNU General Public License, version 3
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 *
 *    Million Dollar Script
 *    Pixels to Profit: Ignite Your Revolution
 *    https://milliondollarscript.com/
 *
 */

/* Default CSS Variables (fallbacks) - will be overridden by dynamic styles */
:root {
	--mds-bg-primary: #ffffff;
	--mds-bg-secondary: #f8f9fa;
	--mds-bg-tertiary: #e9ecef;
	--mds-text-primary: #000000;
	--mds-text-secondary: #6c757d;
	--mds-primary-color: #ff0000;
	--mds-secondary-color: #000000;
	--mds-border-color: #dee2e6;
	--mds-menu-bg: #F4F2F1;
	--mds-menu-text: #333333;
	--mds-menu-hover-bg: #dddddd;
	--mds-input-bg: #ffffff;
	--mds-input-border: #cccccc;
	--mds-card-bg: #ffffff;
	--mds-shadow: rgba(0, 0, 0, 0.1);
	--mds-accessible-link: #0066cc;
	--mds-accessible-success: #28a745;
	--mds-accessible-error: #dc3545;
	--mds-accessible-warning: #ffc107;
	--mds-theme-mode: light;
	--mds-legacy-primary: #ff0000;
	--mds-legacy-secondary: #000000;
	--mds-legacy-background: #ffffff;
	--mds-legacy-text: #333333;
	--mds-btn-primary-bg: #0073aa;
	--mds-btn-primary-text: #ffffff;
	--mds-btn-secondary-bg: #91877D;
	--mds-btn-secondary-text: #ffffff;
	--mds-btn-tertiary-bg: #F6F7F7;
	--mds-btn-tertiary-text: #000000;
	--mds-btn-success-bg: #28a745;
	--mds-btn-success-text: #ffffff;
	--mds-btn-danger-bg: #f44336;
	--mds-btn-danger-text: #ffffff;
	--mds-btn-border-radius: 4px;
	--mds-tooltip-bg: #333333;
	/* Message and Alert Variables */
	--mds-success-bg: #DFF2BF;
	--mds-success-text: #4F8A10;
	--mds-warning-bg: #FFF3CD;
	--mds-warning-text: #8A6D3B;
	--mds-error-bg: #FFE6E6;
	--mds-error-text: #7B0000;
	--mds-info-bg: #d1e9ff;
	--mds-info-text: #21577a;
	--mds-price-zone-cyan: #00FFFF;
	--mds-price-zone-magenta: #FF00FF;
}

.mds-container .clear {
	clear: both;
}

body.mds-container {
	background-color: var(--mds-bg-primary, #ffffff);
	color: var(--mds-text-primary, #000);
	margin: 0;
}

body.mds-container.wp {
	overflow: auto;
}

.mds-container .outer {
	margin: 0;
	padding: 0;
	border: 0;
	width: 100%;
}

.mds-container .inner {
	margin: 0 auto;
	width: auto;
	padding: 0 1rem;
}

.mds-container .container::before,
.mds-container .container::after {
	content: "";
	clear: both;
	display: table;
}

.mds-container .container {
	width: calc(100% - 1rem);
	margin: 0 auto;
	padding: 0.5rem;
}

.mds-container.wp .container {
	padding: 0;
}

.mds-container.wp .logged-in {
	padding: 0.5rem !important;
}

/*
Heading bar
*/
.mds-container .heading {
	background: var(--mds-card-bg, #fff);
	max-width: 1000px;
	margin: 10px auto;
	display: flex;
	justify-content: center;
	align-content: space-between;
	flex-wrap: wrap;
	align-items: center;
}

.mds-container .logo img {
	max-width: 100%;
}

.mds-container .slogan {
	padding: 20px;
	text-align: center;
	width: auto;
	font-weight: bold;
	color: var(--mds-text-primary, #000);
}

.mds-container .mds-nav-status {
	padding-bottom: 1rem;
}

/*
controls the look and feel of the 'pixels-sold/available' box:
*/
.stats-container {
	width: 149px;
}

.stats-container .status_body {
	margin: 0;
	background-color: transparent;
	overflow: hidden;
}

.stats-container .status {
	border: 1px solid var(--mds-border-color, #efefef);
	background-color: var(--mds-card-bg, #fff);
	border-radius: 6px;
	width: auto;
	height: auto;
	padding: 8px;
	font-size: 12px;
	text-align: center;
	line-height: 16px;
	color: var(--mds-text-primary, #000);
}

.stats-container .status_text {
	font-weight: bold;
	color: var(--mds-text-primary, #000);
}

/* Menu bar */
.mds-container .menu-bar,
.mds-container .users-menu-bar {
	background-color: var(--mds-menu-bg, #F4F2F1);
	min-height: 53px;
	width: 100%;
	margin: 0 auto 20px auto;
	padding: 0;
	display: flex;
	justify-content: center;
	align-content: center;
	flex-wrap: wrap;
	border-radius: 4px;
}

.mds-users-menu {
	list-style-type: none !important;
	margin: 0;
	padding: 0 !important;
	overflow: hidden;
	background-color: var(--mds-menu-bg, #F4F2F1);
	display: flex;
	justify-content: space-around;
	width: 100%;
	max-width: 960px;
	line-height: 1 !important;
}

.mds-container .users-menu-bar a {
	display: block;
	color: var(--mds-menu-text, #333);
	text-align: center;
	padding: 14px 16px;
	text-decoration: none;
	font-weight: bold;
	border-radius: 4px;
}

.mds-container .users-menu-bar a:hover {
	background-color: var(--mds-menu-hover-bg, #ddd);
	color: var(--mds-text-primary, black);
	transition: background-color 0.3s;
}

.mds-menu-hamburger {
	display: none;
	cursor: pointer;
	padding: 14px 16px;
}

@media (max-width: 600px) {
	.mds-users-menu {
		flex-direction: column;
		display: none;
	}

	.mds-show-menu {
		display: flex;
	}

	.mds-container .users-menu-bar a {
		width: 100%;
		box-sizing: border-box;
		text-align: left;
	}

	.mds-menu-hamburger {
		display: block;
	}
}

/*
Grid frame
*/
.mds-container .grid-container .grid-inner {
	border: none;
	padding: 0;
	margin: 0 auto;
	display: block;
	max-width: 100%;
	line-height: 1;
}

/*
Fix the grid image to be responsive
*/
.mds-container .grid-container .grid-inner img {
	max-width: 100%;
	height: auto;
}

/*
Fix the grid image to be responsive
*/
.mds-container .grid-container .grid-inner img {
	max-width: 100%;
	height: auto;
}

/*
Footer
*/
.mds-container .footer {
	padding: 10px;
	text-align: center;
}

/*
Ads list page
*/

/* Enhanced List Container */
.mds-container .list-container {
	background-color: var(--mds-card-bg, #ffffff);
	color: var(--mds-text-primary, #000000);
	border: 1px solid var(--mds-border-color, #dee2e6);
	border-radius: 10px;
	box-shadow: 0 6px 18px var(--mds-shadow, rgba(15, 23, 42, 0.08));
	overflow: hidden;
	margin: 32px auto;
	max-width: 1040px;
	position: relative;
}

.mds-container .list-container::before {
	content: '';
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0) 60%);
}

.mds-container .mds-list-wrapper {
	overflow-x: auto;
}

.mds-container .list {
	width: 100%;
	border: none;
	font-family: "Inter", "Segoe UI", Arial, sans-serif;
	font-size: 0.95rem;
	color: var(--mds-text-primary, #1f2937);
	display: block;
	--mds-list-grid-template: repeat(1, minmax(0, 1fr));
}

.mds-container .list a {
	color: var(--mds-accessible-link, #0f172a);
	text-decoration: none;
	font-weight: 600;
	transition: color 0.2s ease;
}

.mds-container .list a:hover {
	color: var(--mds-primary-color, #ff0000);
	text-decoration: underline;
}

.mds-container .table-row {
	display: grid;
	grid-template-columns: var(--mds-list-grid-template, repeat(1, minmax(0, 1fr)));
	align-items: center;
	border-bottom: 1px solid var(--mds-border-color, #e9ecef);
	transition: background-color 0.15s ease-out, box-shadow 0.2s ease-out;
}

.mds-container .table-row:last-child {
	border-bottom: none;
}

.mds-container .list-cell,
.mds-container .list-heading {
	display: block;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	padding: 16px 18px;
	min-width: 0;
}

.mds-container .list-heading {
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-size: 0.75rem;
	font-weight: 700;
	color: var(--mds-text-tertiary, #6b7280);
}

.mds-container .table-row:nth-of-type(even):not(.header):not(.mds-banner-row) {
	background-color: var(--mds-bg-secondary, #f9fafb);
}

.mds-container .table-row:hover:not(.header):not(.mds-banner-row) {
	background-color: rgba(59, 130, 246, 0.08);
	box-shadow: inset 0 1px 0 rgba(59, 130, 246, 0.15), inset 0 -1px 0 rgba(59, 130, 246, 0.15);
}

.mds-container .table-row.header {
	background-color: rgba(59, 130, 246, 0.08);
	color: var(--mds-text-primary, #0f172a);
	font-weight: 600;
	border-bottom: 2px solid rgba(59, 130, 246, 0.25);
}

.mds-container .table-row.header .list-heading {
	color: inherit;
}

.mds-container .mds-banner-row {
	grid-template-columns: 1fr;
	padding: 18px;
	row-gap: 0;
}

.mds-container .mds-banner-row .list-heading {
	padding: 0;
	border-bottom: 0;
	white-space: normal;
}

.mds-container .mds-banner-heading {
	grid-column: 1 / -1;
	display: block;
	width: 100%;
	white-space: normal;
	text-transform: none;
	letter-spacing: normal;
	font-size: 1rem;
	font-weight: 600;
	color: var(--mds-text-primary, #1f2937);
}
.mds-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	padding: 0.1rem 0.5rem;
	border-radius: 999px;
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	background-color: rgba(59, 130, 246, 0.15);
	color: rgba(30, 64, 175, 1);
}

.mds-badge--scheduled::before {
	content: '';
	display: inline-block;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background-color: currentColor;
}


@media (max-width: 880px) {
	.mds-container .list {
		display: block;
	}

	.mds-container .mds-banner-row {
		display: block;
	}

	.mds-container .table-row,
	.mds-container .list-cell,
	.mds-container .list-heading {
		display: block;
		width: 100%;
	}

	.mds-container .table-row.header,
	.mds-container .table-row.header .list-heading {
		display: none;
	}

	.mds-container .table-row {
		padding: 12px 18px;
		border-bottom: 1px solid var(--mds-border-color, #e9ecef);
	}

	.mds-container .mds-banner-row {
		padding: 18px;
	}

	.mds-container .list-cell {
		padding: 4px 0;
		border: none;
		white-space: normal;
	}

	.mds-container .list-cell::before {
		content: attr(data-label);
		display: block;
		font-size: 0.7rem;
		font-weight: 600;
		text-transform: uppercase;
		color: var(--mds-text-tertiary, #6b7280);
		margin-bottom: 2px;
		letter-spacing: 0.05em;
	}

	.mds-container .list a {
		word-break: break-word;
	}
}

/* Enhanced List Status Indicators */
.mds-container .list-status-active {
	color: var(--mds-accessible-success, #28a745);
	font-weight: bold;
}

.mds-container .list-status-pending {
	color: var(--mds-accessible-warning, #ffc107);
	font-weight: bold;
}

.mds-container .list-status-expired {
	color: var(--mds-accessible-error, #dc3545);
	font-weight: bold;
}

.mds-container .list-status-inactive {
	color: var(--mds-text-secondary, #6c757d);
}

/* List Action Buttons */
.mds-container .list-action-btn {
	background-color: var(--mds-bg-tertiary, #e9ecef);
	color: var(--mds-text-primary, #000);
	border: 1px solid var(--mds-border-color, #dee2e6);
	border-radius: 4px;
	padding: 4px 8px;
	font-size: 0.8rem;
	cursor: pointer;
	transition: all 0.2s ease;
	text-decoration: none;
	display: inline-block;
	margin: 0 2px;
}

.mds-container .list-action-btn:hover {
	background-color: var(--mds-primary-color, #ff0000);
	color: var(--mds-card-bg, #ffffff);
	border-color: var(--mds-primary-color, #ff0000);
}

.mds-container .list-action-btn.edit {
	background-color: var(--mds-accessible-link, #0066cc);
	color: var(--mds-card-bg, #ffffff);
	border-color: var(--mds-accessible-link, #0066cc);
}

.mds-container .list-action-btn.edit:hover {
	background-color: var(--mds-accessible-link, #0066cc);
	border-color: var(--mds-accessible-link, #0066cc);
	filter: brightness(0.9);
}

.mds-container .list-action-btn.delete {
	background-color: var(--mds-accessible-error, #dc3545);
	color: var(--mds-card-bg, #ffffff);
	border-color: var(--mds-accessible-error, #dc3545);
}

.mds-container .list-action-btn.delete:hover {
	background-color: var(--mds-accessible-error, #dc3545);
	border-color: var(--mds-accessible-error, #dc3545);
	filter: brightness(0.9);
}

/*
.mds-container input[type='button'],
.mds-container input[type='submit'] {
	border-radius: 6px;
	background-color: var(--mds-btn-tertiary-bg, #efefef);
	color: var(--mds-accessible-link, #008cd4);
	font-weight: bold;
	font-size: 14px;
	padding: 6px;
	text-align: center;
	cursor: pointer;
	margin: 4px;
}
*/

.mds-container input[type="text"],
.mds-container textarea,
.mds-container select {
	padding: 10px;
	border: 1px solid var(--mds-input-border, #ccc);
	border-radius: 4px;
	background-color: var(--mds-input-bg, #ffffff);
	color: var(--mds-text-primary, #000);
	box-shadow: 0 1px 3px var(--mds-shadow, rgba(0, 0, 0, 0.12)), 0 1px 2px var(--mds-shadow, rgba(0, 0, 0, 0.24));
	margin: 10px 0;
	box-sizing: border-box;
}

.mds-container input[type="radio"],
.mds-container input[type="checkbox"] {
	margin: 0 10px 0 0;
}

.mds-container label {
	display: block;
	margin: 10px 0;
}

.mds-container input[type="submit"] {
	background-color: var(--mds-btn-primary-bg, #0073aa);
	color: var(--mds-btn-primary-text, #ffffff);
	padding: 10px 20px;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	transition: background-color 0.3s;
}

.mds-container input[type="submit"]:hover {
	background-color: var(--mds-btn-primary-bg, #0073aa);
	filter: brightness(0.9);
}

.mds-container input[type="submit"]:active {
	background-color: var(--mds-btn-primary-bg, #0073aa);
	filter: brightness(0.8);
}

.mds-container .outer-container {
	background-color: var(--mds-card-bg, rgba(255, 255, 255, 0));
	color: var(--mds-text-primary, #000000);
	border-color: var(--mds-border-color, #efefef);
	border-style: solid;
	padding: 10px;
	overflow: visible;
}

.mds-container .free {
	height: 10px;
	width: 10px;
	border: 1px solid var(--mds-border-color, #DFDFDF);
}

.mds-container a.big_link {
	font-size: 20px;
	font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
	font-weight: normal;
	color: var(--mds-accessible-link, #6699cc);
}

.mds-container .big_button {
	font-size: 18px;
}

.mds-container .sold {
	height: 10px;
	width: 10px;
}

.mds-container .mds-selected {
	height: 10px;
	width: 10px;
	border: 2px solid var(--mds-accessible-success, #33CC00);
	background-color: var(--mds-card-bg, #FFFFFF);
	color: var(--mds-text-primary, #000);
}

.mds-container .reserved {
	height: 10px;
	width: 10px;
}

.mds-container p {
	color: var(--mds-text-primary, #000000);
}

.mds-container table,
.mds-container tr,
.mds-container td {
	color: var(--mds-text-primary, #000000);
}

.mds-container form {
	margin: 0;
}

.mds-container a {
	color: var(--mds-accessible-link, #6699cc);
}

.mds-container .fancy-heading {
	background-color: var(--mds-bg-secondary, #f5f5f5);
	border-bottom: 1px solid var(--mds-border-color, #ddd);
	color: var(--mds-text-primary, #000);
	padding: 10px;
	font-size: 18px;
	font-weight: bold;
	text-align: center;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.mds-container table.ad_data {
	background-color: var(--mds-card-bg, #ffffff);
	color: var(--mds-text-primary, #000);
	border-width: 0;
}

.mds-container .error_msg_label,
.mds-error {
	color: var(--mds-accessible-error, #FF0000);
	font-weight: bold;
}

.mds-container .ok_msg_label {
	border-style: solid;
	border-color: var(--mds-accessible-success, #33CC00);
	border-width: 2px;
}

.mds-success-message {
	background-color: var(--mds-success-bg, #DFF2BF);
	color: var(--mds-success-text, #4F8A10);
	border: 1px solid var(--mds-success-text, #4F8A10);
	padding: 10px;
	margin-bottom: 10px;
}

.mds-success-message a {
	color: var(--mds-success-text, #4F8A10);
}

.mds-caution-message {
	background-color: var(--mds-warning-bg, #FFF3CD);
	color: var(--mds-warning-text, #8A6D3B);
	border: 1px solid var(--mds-warning-text, #8A6D3B);
	padding: 10px;
	margin-bottom: 10px;
}

.mds-caution-message a {
	color: var(--mds-warning-text, #8A6D3B);
}

.mds-error-message {
	background-color: var(--mds-error-bg, #FFE6E6);
	color: var(--mds-error-text, #7B0000);
	border: 1px solid var(--mds-error-text, #7B0000);
	padding: 10px;
	margin-bottom: 10px;
}

.mds-error-message a {
	color: var(--mds-error-text, #7B0000);
}

.mds-info-message {
	background-color: var(--mds-info-bg, #d1e9ff);
	color: var(--mds-info-text, #21577a);
	border: 1px solid var(--mds-info-text, #21577a);
	padding: 10px;
	margin-bottom: 10px;
}

.mds-info-message a {
	color: var(--mds-info-text, #21577a);
}

/* Ads list */

.mds-container #pixels_list .today {
	color: var(--mds-primary-color, #ff0000);
	font-weight: bold;
}

.mds-container #pixels_list .days_ago {
	color: var(--mds-accessible-success, #339900);
	font-weight: bold;
}

.mds-container #pixels_list .days_ago2 {
	color: var(--mds-text-secondary, #C0C0C0);
	font-weight: bold;
}

.mds-container #pixels_list .list_header_cell {
	font-size: 1.1rem;
	margin: 0;
	padding: 3px;
	font-weight: bold;
}

.mds-container .tooltip-source {
	visibility: hidden;
}

.mds-container .publish-grid {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	max-width: 100%;
	min-width: 100%;
}

.mds-container .publish-grid map,
.mds-container .publish-grid img {
	max-width: 100%;
	height: auto;
}

.mds-container .publish-grid::after {
	content: "";
	clear: both;
	display: table;
}

.mds-container .flex-container {
	margin: 10px auto;
	clear: both;
	display: flex;
	justify-content: center;
	align-content: space-between;
	flex-flow: column wrap;
	align-items: flex-start;
	max-width: 100%;
}

.mds-container .flex-row {
	clear: both;
	display: flex;
	flex-flow: row wrap;
	flex: 1 1 auto;
	max-width: 100%;
}

.mds-container .flex-cell {
	padding: 5px;
	max-width: calc(100% - 10px);
}

.mds-container area {
	cursor: pointer;
}

.ajax-loader {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	min-height: 64px;
	margin: 12px 0;
	padding: 16px 0;
	box-sizing: border-box;
}

.ajax-loader__spinner {
	display: inline-block;
	width: 32px;
	height: 32px;
	background: url(../images/ajax-loader.gif) no-repeat center center;
	background-size: contain;
}
.mds-container .mds-pixel-wrapper > .ajax-loader {
	position: absolute;
	inset: 0;
	margin: 0;
	min-height: 0;
	height: 100%;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding-top: 16px;
	background: transparent;
	z-index: 10060; /* above canvas (10000) and pointer (10001) */
	pointer-events: none;
}


.mds-grid-frame {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	width: 100%;
}

.mds-grid-status {
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	gap: 12px;
	padding: 0;
}

.mds-grid-preloader {
	display: flex;
	justify-content: center;
	align-items: center;
	pointer-events: none;
}

.mds-grid-preloader[hidden] {
	display: none !important;
}

.mds-grid-preloader__spinner {
	display: inline-block;
	width: 32px;
	height: 32px;
	background: url(../images/ajax-loader.gif) no-repeat center center;
	background-size: contain;
}

.mds-grid-feedback {
	background: rgba(255, 255, 255, 0.94);
	padding: 20px 20px;
	box-sizing: border-box;
	border-radius: 8px;
	max-width: 520px;
	width: min(90%, 520px);
	text-align: center;
	box-shadow: 0 8px 18px rgba(0,0,0,0.15);
	pointer-events: auto;
}

.mds-grid-feedback[hidden] {
	display: none !important;
}

.mds-grid-canvas,
.mds-pixels-canvas {
	position: relative;
	width: 100%;
}

.mds-pixels-canvas img,
.mds-grid-canvas img {
	display: block;
	margin: 0 auto;
	max-width: 100%;
}

.mds-container .mds-pixel-wrapper {
	position: relative;
	display: block;
}

.mds-container .mds-grid-preloader {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	margin: 0;
}

.mds-container .mds-grid-preloader .ajax-loader {
	margin: 0;
	padding: 0;
	min-width: 32px;
	min-height: 32px;
	width: auto;
	height: auto;
}

.mds-container .mds-grid-preloader .ajax-loader .ajax-loader__spinner {
	width: 32px;
	height: 32px;
	background-size: contain;
}

.mds-container .mds-grid-feedback {
	display: none;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	gap: 12px;
	margin: 0;
	padding: 18px 20px;
	border-radius: 8px;
	border: 1px solid var(--mds-border-color, rgba(0, 0, 0, 0.08));
	background: var(--mds-bg-secondary, #f6f7f7);
	color: var(--mds-text-primary, #1d2327);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
	width: 100%;
	box-sizing: border-box;
}

.mds-grid-image--hidden {
	display: none !important;
}

.mds-container .mds-grid-feedback.is-visible,
.mds-container .mds-grid-feedback:not([hidden]) {
	display: flex;
}

.mds-container .mds-grid-feedback__message {
	margin: 0;
	font-size: 1rem;
	line-height: 1.5;
}

.mds-container .mds-grid-feedback__retry {
	padding: 8px 18px;
	border: none;
	border-radius: 4px;
	background: var(--mds-btn-primary-bg, #0073aa);
	color: var(--mds-btn-primary-text, #ffffff);
	font-size: 0.95rem;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.mds-container .mds-grid-feedback__retry:hover {
	background: var(--mds-btn-primary-bg-hover, #006799);
	transform: translateY(-1px);
}

.mds-container .mds-grid-feedback__retry:focus {
	outline: 2px solid var(--mds-border-color, rgba(0, 0, 0, 0.2));
	outline-offset: 2px;
}

/* Ensure selection block images fill their cell exactly */
.mds-block img {
	display: block;
	width: 100%;
	height: 100%;
}

.tippy-content {
	min-width: 33px;
	min-height: 31px;
	margin: 12px 16px !important;
	padding: 0;
	font-family: Arial, sans-serif !important;
	font-size: 0.9rem !important;
	line-height: 1.4 !important;
}

/* Enhanced Tippy Tooltip Styling */
.tippy-box[data-theme~='light'] {
	background-color: var(--mds-bg-primary, #ffffff) !important;
	color: var(--mds-text-primary, #000000) !important;
	border: 1px solid var(--mds-border-color, #dee2e6) !important;
	border-radius: 8px !important;
	box-shadow: 0 4px 12px var(--mds-shadow, rgba(0, 0, 0, 0.15)) !important;
}

.tippy-box[data-theme~='light'] .tippy-content {
	color: var(--mds-text-primary, #000000) !important;
}

.tippy-box[data-theme~='light'] .tippy-content p {
	margin: 0 0 8px 0 !important;
	color: var(--mds-text-primary, #000000) !important;
}

.tippy-box[data-theme~='light'] .tippy-content p:last-child {
	margin-bottom: 0 !important;
}

.tippy-box[data-theme~='light'] .tippy-content strong {
	color: var(--mds-text-primary, #000000) !important;
	font-weight: bold !important;
}

.tippy-box[data-theme~='light'] .tippy-content a {
	color: var(--mds-accessible-link, #0066cc) !important;
	text-decoration: none !important;
	transition: color 0.2s ease !important;
}

.tippy-box[data-theme~='light'] .tippy-content a:hover {
	color: var(--mds-primary-color, #ff0000) !important;
	text-decoration: underline !important;
}

.tippy-box[data-theme~='light'] .tippy-content .mds-creator-profile-link {
	display: inline-block !important;
	background-color: var(--mds-bg-tertiary, #e9ecef) !important;
	color: var(--mds-accessible-link, #0066cc) !important;
	padding: 4px 8px !important;
	border-radius: 4px !important;
	border: 1px solid var(--mds-border-color, #dee2e6) !important;
	font-size: 0.85rem !important;
	margin-top: 4px !important;
	transition: all 0.2s ease !important;
}

.tippy-box[data-theme~='light'] .tippy-content .mds-creator-profile-link:hover {
	background-color: var(--mds-accessible-link, #0066cc) !important;
	color: var(--mds-bg-primary, #ffffff) !important;
	border-color: var(--mds-accessible-link, #0066cc) !important;
	text-decoration: none !important;
}

.tippy-box[data-theme~='light'] .tippy-arrow {
	color: var(--mds-bg-primary, #ffffff) !important;
}

.tippy-box[data-theme~='light'][data-placement^='top'] > .tippy-arrow::before {
	border-top-color: var(--mds-bg-primary, #ffffff) !important;
}

.tippy-box[data-theme~='light'][data-placement^='bottom'] > .tippy-arrow::before {
	border-bottom-color: var(--mds-bg-primary, #ffffff) !important;
}

.tippy-box[data-theme~='light'][data-placement^='left'] > .tippy-arrow::before {
	border-left-color: var(--mds-bg-primary, #ffffff) !important;
}

.tippy-box[data-theme~='light'][data-placement^='right'] > .tippy-arrow::before {
	border-right-color: var(--mds-bg-primary, #ffffff) !important;
}

.mds-order-explain {
	padding: 1rem;
	font-size: 1rem;
}

.mds-order-renew {
	color: var(--mds-primary-color, #ff0000);
}

.mds-select-intro,
.mds-select-instructions {
	padding: 1rem;
}

.mds-select-wrapper {
	border: 1px solid var(--mds-border-color, #ddd);
	padding: 20px;
	background-color: var(--mds-bg-secondary, #f5f5f5);
	color: var(--mds-text-primary, #000);
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
}

.mds-select-prompt {
	margin: 0 20px 20px 0;
	font-size: 1.2rem;
	line-height: 24px;
}

.mds-select-items {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	justify-content: center;
	align-items: center;
	flex-direction: row;
}

.mds-input-item {
	flex-grow: 1;
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: row;
	flex-wrap: wrap;
}

.mds-slider {
	flex-grow: 2;
	padding-bottom: 25px;
}

.mds-number {
	justify-content: center;
}

.mds-select-input {
	display: flex;
	align-items: center;
	margin-right: 20px;
	margin-bottom: 10px;
	border-radius: 5px;
	overflow: hidden;
	background-color: var(--mds-card-bg, #fff);
	color: var(--mds-text-primary, #000);
	box-shadow: 0 0 5px var(--mds-shadow, rgba(0, 0, 0, 0.3));
	transition: all 0.2s ease-in-out;
	position: relative;
}

.mds-select-input:hover {
	transform: scale(1.1);
	box-shadow: 0 0 10px var(--mds-shadow, rgba(0, 0, 0, 0.5));
}

.mds-select-input,
.mds-select-input * {
	cursor: pointer;
}

.mds-select-input input[type="checkbox"] {
	display: none;
}

.mds-input-item label {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.2rem;
	padding: 10px;
	transition: all 0.2s ease-in-out;
	margin: 0;
	text-align: center;
}

#mds-selection-size-slider {
	width: 90%;
	height: 10px;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--mds-border-color, #bbb), var(--mds-bg-tertiary, #d0d5db));
	outline: none;
	opacity: 1;
	transition: box-shadow 0.2s, background-color 0.2s, opacity 0.2s;
	-webkit-appearance: none;
	appearance: none;
	box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--mds-text-primary, #000) 20%, transparent);
}

#mds-selection-size-slider:hover,
#mds-selection-size-slider:focus {
	opacity: 1;
	box-shadow: 0 0 0 3px color-mix(in oklab, var(--mds-accessible-link, #0066cc) 30%, transparent);
}

/* Webkit/Chrome styling */
#mds-selection-size-slider::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--mds-primary-color, #d32f2f);
	cursor: pointer;
	border: 3px solid var(--mds-card-bg, #fff);
	box-shadow: 0 2px 6px var(--mds-shadow, rgba(0, 0, 0, 0.35));
}

/* Firefox styling */
#mds-selection-size-slider::-moz-range-thumb {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--mds-primary-color, #d32f2f);
	cursor: pointer;
	border: 3px solid var(--mds-card-bg, #fff);
	box-shadow: 0 2px 6px var(--mds-shadow, rgba(0, 0, 0, 0.35));
}

#mds-selection-size-slider::-moz-range-track {
	height: 10px;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--mds-border-color, #bbb), var(--mds-bg-tertiary, #d0d5db));
	border: none;
	box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--mds-text-primary, #000) 20%, transparent);
}

#mds-selection-size-value {
	width: 150px;
	padding: 4px;
	font-size: 1.1rem;
}

#mds-total-blocks-value {
	width: 150px;
	padding: 4px;
	font-size: 1.1rem;
}

.mds-container input[type="checkbox"]:checked + label {
	background-color: var(--mds-btn-success-bg, #28a745);
	color: var(--mds-btn-success-text, #fff);
}

.mds-select-input .icon-single,
.mds-select-input .icon-square,
.mds-select-input .icon-rectangle,
.mds-select-input .icon-erase {
	margin-right: 8px;
}

.mds-break {
	flex-basis: 100%;
	height: 0;
}

.mds-break-column {
	flex-basis: 100%;
	width: 0;
}

/* submit buttons */
.mds-container #submit-buttons {
	display: flex;
	justify-content: center;
	margin: 20px 0;
}

.mds-container #submit_button1,
.mds-container #submit_button2,
.mds-container #reset_button {
	border: none;
	border-radius: 4px;
	color: var(--mds-btn-primary-text, #fff);
	cursor: pointer;
	font-size: 16px;
	font-weight: bold;
	margin-right: 10px;
	padding: 10px 20px;
	transition: background-color 0.3s ease;
}

.mds-container #submit_button1:hover,
.mds-container #submit_button2:hover,
.mds-container #reset_button:hover {
	filter: brightness(1.1);
}

.mds-container .mds-pixel-wrapper {
	display: inline-block;
	position: relative;
}

.mds-container .mds-pixel-wrapper img {
	display: block;
	max-width: 100%;
	max-height: 100%;
	height: auto;
	width: auto;
	position: relative;
	z-index: 1;
	box-shadow: 1px 1px 0 0 var(--mds-bg-tertiary, #ccc);
}

/* Canvas overlay for selections */
.mds-container .mds-pixel-wrapper canvas#blocks_canvas {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 10000; /* below pointer (10001) and above image (1) */
	pointer-events: none; /* do not block mouse */
}

body #login {
	padding-top: 20px !important;
}

/* View cart button fix */
.woocommerce-error a.button.wc-forward,
.woocommerce-error a.button.wc-forward:hover {
	border: none;
	background: var(--mds-card-bg, #fff);
	color: var(--mds-text-primary, #000);
}

.mds-popup-text {
	word-break: break-word;
}

.mds-popup-url {
	max-width: 100%;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	display: inline-block;
}

.entry-content img.mds-popup-image,
.mds-popup-image {
	max-width: 100%;
	display: block;
}

.mds-order-details {
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
	padding: 10px;
	max-width: 500px;
	margin: auto;
	background-color: var(--mds-bg-secondary, #f5f5f5);
	color: var(--mds-text-primary, #000);
	border-radius: 8px;
	font-family: Arial, sans-serif;
}

.mds-order-details .mds-order-details-section {
	padding: 5px;
	background-color: var(--mds-card-bg, white);
	color: var(--mds-text-primary, #000);
	border-radius: 4px;
	box-shadow: 0 1px 3px var(--mds-shadow, rgba(0, 0, 0, 0.12)), 0 1px 2px var(--mds-shadow, rgba(0, 0, 0, 0.24));
}

.mds-order-details .mds-order-details-section > b {
	display: block;
	margin-bottom: 5px;
}

.mds-button-container {
	display: flex;
	justify-content: space-between;
	margin-top: 20px;
}

#loginform input[type="submit"],
.mds-register-link,
.mds-container input[type='button'],
.mds-container input[type='submit'],
.mds-button,
a.mds-button {
	background-color: var(--mds-btn-secondary-bg, #91877D);
	color: var(--mds-btn-secondary-text, #ffffff);
	padding: 10px 20px;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	transition: background-color 0.3s;
	font-size: 1.2rem;
	margin: 8px;
	text-decoration: none;
	display: inline-block;
}

#loginform input[type="submit"]:hover,
.mds-register-link:hover,
.mds-container input[type='button']:hover,
.mds-container input[type='submit']:hover,
.mds-button:hover {
	background-color: var(--mds-btn-primary-hover-bg, var(--mds-btn-secondary-text, #ffffff));
	color: var(--mds-btn-primary-hover-text, var(--mds-btn-secondary-bg, #91877D));
	border-color: var(--mds-btn-primary-bg, var(--mds-btn-secondary-bg, #91877D));
}

.mds-container input[type='button']:active,
.mds-container input[type='submit']:active,
.mds-button:active {
	background-color: var(--mds-btn-secondary-bg, #91877D);
	color: var(--mds-btn-secondary-text, #ffffff);
	filter: brightness(0.8);
}

/* Register Button Specific Styling */
.wp-core-ui .button-register,
.wp-core-ui input[type="submit"].button-register,
.login .mds-register-link {
	background-color: var(--mds-btn-secondary-bg, #91877D);
	color: var(--mds-btn-secondary-text, #ffffff);
	border: 1px solid var(--mds-border-color, #ddd);
	text-decoration: none;
	display: inline-block;
	padding: 8px 16px;
	border-radius: 4px;
	transition: all 0.3s ease;
}

.wp-core-ui .button-register:hover,
.wp-core-ui input[type="submit"].button-register:hover,
.login .mds-register-link:hover {
	background-color: var(--mds-btn-secondary-hover-bg, var(--mds-bg-tertiary, #f0f0f0));
	color: var(--mds-btn-secondary-hover-text, var(--mds-text-primary, #333));
	border-color: var(--mds-btn-primary-bg, var(--mds-btn-secondary-bg, #91877D));
	text-decoration: none;
}

.mds-container input[type='button'].mds-confirm,
.mds-container input[type='button'].mds-upload,
.mds-container input[type='button'].mds-write,
.mds-container input[type='button'].mds-pay,
.mds-container input[type='button'].mds-continue,
.mds-container input[type='submit'].mds-complete,
.mds-button.mds-confirm,
.mds-button.mds-upload,
.mds-button.mds-write,
.mds-button.mds-pay,
.mds-button.mds-continue,
.mds-button.mds-complete,
.mds-container #submit_button1,
.mds-container #submit_button2 {
	background-color: var(--mds-accessible-success, #28a745);
	color: var(--mds-btn-success-text, #fff);
}

.mds-container input[type='button'].mds-complete:hover,
.mds-container input[type='submit'].mds-complete:hover,
.mds-button.mds-complete:hover {
	background-color: var(--mds-accessible-success, #66FF33);
	color: var(--mds-btn-success-text, #fff);
}

.mds-container input[type='button'].mds-complete:active,
.mds-container input[type='submit'].mds-complete:active,
.mds-button.mds-complete:active {
	background-color: var(--mds-accessible-success, #1e7e34);
	color: var(--mds-btn-success-text, #fff);
}

.mds-container #reset_button,
.mds-button.mds-cancel {
	color: var(--mds-btn-danger-text, #fff);
	background-color: var(--mds-accessible-error, #f44336);
}

.mds-pixels-list,
.mds-package-options {
	display: flex;
	flex-direction: column;
	width: 100%;
	margin: 8px auto;
}

.mds-pixels-list-heading,
.mds-package-options-heading {
	background-color: var(--mds-menu-bg, #F4F2F1);
	color: var(--mds-text-primary, #000);
	font-size: 18px;
	font-weight: bold;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.mds-pixels-list-heading div,
.mds-package-options-heading div {
	font-weight: bold;
}

.mds-pixels-list-heading,
.mds-manage-row,
.mds-pixels-list-row,
.mds-package-options-heading,
.mds-package-options-row {
	display: flex;
	border-bottom: 1px solid var(--mds-border-color, #ddd);
	padding: 10px 0;
}

.mds-pixels-list-heading div,
.mds-manage-row div,
.mds-pixels-list-row div,
.mds-package-options-heading div,
.mds-package-options-row div {
	flex: 1;
	padding: 0 10px;
	text-align: center;
}

/* Override flex behavior for status containers */
.mds-manage-row div.mds-status-container,
.mds-pixels-list-row div.mds-status-container {
	flex: 0 0 60px !important;
	width: 60px !important;
	display: block !important;
	align-items: unset !important;
	justify-content: unset !important;
	padding: 0 !important;
}

.mds-status-indicator {
	color: var(--mds-text-primary, #000);
	border-radius: 50%;
	width: 36px;
	height: 36px;
	display: block;
	line-height: 36px;
	padding: 0 !important;
	text-align: center;
	font-size: 13px;
	font-weight: bold;
	margin: 0 auto;
	background: var(--mds-bg-tertiary, #e5e7eb);
	box-sizing: border-box;
}

.mds-manage-row,
.mds-pixels-list-row {
	background-color: var(--mds-card-bg, #fff);
	color: var(--mds-text-primary, #000);
	cursor: pointer;
	box-shadow: 0 0 3px var(--mds-shadow, rgba(0, 0, 0, 0.3));
}

.mds-manage-row:hover,
.mds-pixels-list-row:hover {
	background-color: var(--mds-bg-secondary, #f9f9f9);
}

.mds-pixels-list-row-selected {
	background-color: var(--mds-bg-secondary, #f9f9f9);
}

.mds-radio-cell {
	flex: 0 0 60px;
	text-align: left;
}

.mds-login-form {
	display: flex;
	justify-content: center;
	align-items: center;
	background-color: transparent;
	font-family: Arial, sans-serif;
}

#loginform {
	background-color: var(--mds-card-bg, #ffffff);
	color: var(--mds-text-primary, #000);
	padding: 10px;
	border-radius: 5px;
	box-shadow: 0px 0px 10px var(--mds-shadow, rgba(0, 0, 0, 0.1));
	width: 100%;
	max-width: 320px;
}

#loginform p {
	margin-bottom: 10px;
}

body:not(.login) #loginform label {
	display: block;
	margin-bottom: 5px;
}

#loginform input[type="text"],
#loginform input[type="password"] {
	width: 100%;
	padding: 10px;
	border: 1px solid var(--mds-input-border, #ddd);
	background-color: var(--mds-input-bg, #ffffff);
	color: var(--mds-text-primary, #000);
	border-radius: 5px;
	box-sizing: border-box;
}

#loginform .login-remember {
	margin-bottom: 20px;
}

#loginform input[type="submit"] {
	width: 145px;
	margin: 0;
}

#loginform input[type="submit"]:hover {
	background-color: var(--mds-bg-tertiary, #f0f0f0) !important;
	color: var(--mds-text-primary, #333) !important;
}

.mds-register-btn-container {
	margin: 0 0 0 10px;
	display: inline-block;
	width: 145px;
}

.mds-register-link {
	background-color: var(--mds-btn-primary-bg, #0073aa) !important;
	color: var(--mds-btn-primary-text, #ffffff) !important;
	text-align: center;
	display: block;
	margin: 0;
	padding: 10px 20px;
	border: none;
	border-radius: 4px;
	text-decoration: none;
	font-size: 1.2rem;
	box-sizing: border-box;
	width: 100%;
}

.mds-register-link:hover {
	background-color: var(--mds-bg-tertiary, #f0f0f0) !important;
	color: var(--mds-text-primary, #333) !important;
	border: none;
}

.mds-pixel-content {
	margin: 1rem;
}

#pixels-container {
	position: relative;
	display: inline-block;
}

.mds-legend-block {
	background: var(--mds-bg-tertiary, #ccc);
	padding: 1px;
	display: inline-block;
	line-height: 1;
	font-size: 1px;
}

.mds-navigation {
	text-align: center;
	padding: 20px 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}

.mds-navigation a, .mds-navigation span {
	color: var(--mds-text-primary, #333);
	text-decoration: none;
	margin: 5px;
	padding: 10px 15px;
	border: 1px solid var(--mds-border-color, #333);
	border-radius: 5px;
	transition: all 0.3s ease;
	background-color: var(--mds-card-bg, #fff);
	line-height: 1.5; /* Add this line to vertically center the text */
}

.mds-navigation a:hover {
	color: var(--mds-card-bg, #fff);
	border-color: var(--mds-primary-color, #333);
	background-color: var(--mds-primary-color, #333);
}

.mds-navigation span {
	color: var(--mds-card-bg, #fff);
	background-color: var(--mds-primary-color, #333);
	border-color: var(--mds-primary-color, #333);
}

@media screen and (max-width: 600px) {
	.mds-navigation a, .mds-navigation span {
		font-size: 14px;
		padding: 5px 10px;
	}
}

.mds-status-container {
	position: relative;
	text-align: center;
	min-height: 60px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.mds-pixel-info {
	background: var(--mds-card-bg, #fff);
	color: var(--mds-text-primary, #000);
	padding: 20px;
	border-radius: 5px;
	box-shadow: 0 0 10px var(--mds-shadow, rgba(0, 0, 0, 0.1));
	display: none;
}

/* Responsive Pixel Info Layout */
.mds-pixel-info-container {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	background: var(--mds-card-bg, #fff);
	border-radius: 8px;
	box-shadow: 0 2px 8px var(--mds-shadow, rgba(0,0,0,0.06));
	padding: 24px 16px;
	margin: 20px 0;
	justify-content: space-between;
	width: 100%;
	max-width: none;
	box-sizing: border-box;
}

.mds-pixel-info-block {
	margin: 0 auto;
	background: var(--mds-bg-secondary, #f7f7f7);
	color: var(--mds-text-primary, #000);
	border-radius: 6px;
	padding: 16px 12px;
	box-sizing: border-box;
	text-align: center;
}

.mds-pixel-info-image {
	flex: 1 1 auto;
	min-width: 120px;
}

.mds-pixel-info-details {
	flex: 1 1 auto;
	min-width: 120px;
}

.mds-pixel-info-upload {
	flex: 1 1 auto;
	min-width: 120px;
}

.mds-pixel-info-image img {
	display: block;
	margin: 0 auto;
	max-width: 100%;
	width: auto;
	height: auto;
	border-radius: 4px;
	box-shadow: 0 1px 4px var(--mds-shadow, rgba(0,0,0,0.08));
	background: var(--mds-bg-tertiary, #eee);
}

.mds-pixel-info-block b {
	display: block;
	margin-bottom: 8px;
	font-size: 1.1em;
	color: var(--mds-text-primary, #222);
}

@media (max-width: 1100px) {
	.mds-pixel-info-container {
		flex-direction: column;
		gap: 16px;
		padding: 16px 4px;
	}
	.mds-pixel-info-block {
		max-width: 100%;
		width: 100%;
	}
}

/* Theme-Aware Admin Action Buttons */
.mds-admin-action-approve {
	background-color: var(--mds-accessible-success, #388E3C) !important;
	color: var(--mds-btn-success-text, #ffffff) !important;
	border: none !important;
}

.mds-admin-action-disapprove {
	background-color: var(--mds-accessible-warning, #E65100) !important;
	color: var(--mds-btn-primary-text, #ffffff) !important;
	border: none !important;
}

.mds-admin-action-deny {
	background-color: var(--mds-accessible-error, #D32F2F) !important;
	color: var(--mds-btn-danger-text, #ffffff) !important;
	border: none !important;
}

.mds-admin-action-new {
	background-color: var(--mds-accessible-success, #66FF33) !important;
	color: var(--mds-text-primary, #000) !important;
	border: none !important;
}

/* Log Viewer Styling */
.mds-log-viewer {
	height: 400px;
	overflow-y: scroll;
	background: var(--mds-bg-secondary, #f9f9f9);
	border: 1px solid var(--mds-border-color, #ccc);
	padding: 10px;
	font-family: monospace;
	white-space: pre-wrap;
	color: var(--mds-text-primary, #000);
}

/* Block Pointer Styling */
.mds-block-pointer {
	font-size: 1px;
	line-height: 1px;
	cursor: pointer;
	position: absolute;
	left: 0;
	top: 0;
	background-color: var(--mds-card-bg, #FFFFFF);
	visibility: hidden;
}

/* Price Zone Color Options */
.mds-price-zone-yellow {
	background-color: var(--mds-accessible-warning, #FFFF00);
	color: var(--mds-text-primary, #000);
}

.mds-price-zone-cyan {
	background-color: var(--mds-price-zone-cyan, #00FFFF);
	color: var(--mds-text-primary, #000);
}

.mds-price-zone-magenta {
	background-color: var(--mds-price-zone-magenta, #FF00FF);
	color: var(--mds-card-bg, #ffffff);
}

.mds-price-zone-white {
	background-color: var(--mds-card-bg, #ffffff);
	color: var(--mds-text-primary, #000);
	border: 1px solid var(--mds-border-color, #ccc);
}

/* SVG Icon Styling for Theme Support */
.mds-icon-svg {
	vertical-align: middle;
}

.mds-icon-svg rect {
	fill: var(--mds-text-primary, #555);
}

.mds-icon-svg rect.secondary {
	fill: var(--mds-text-secondary, #bbb);
}

/* Utility Classes for Row Highlighting */
.mds-highlight-row {
	background-color: var(--mds-accessible-warning, #fef3c7) !important;
	color: var(--mds-text-primary, #000) !important;
}

/* Admin Button States */
.mds-admin-button-processing {
	background-color: var(--mds-accessible-warning, #f59e0b) !important;
	color: var(--mds-btn-primary-text, #ffffff) !important;
}

.mds-admin-button-success {
	background-color: var(--mds-accessible-success, #10b981) !important;
	color: var(--mds-btn-success-text, #ffffff) !important;
}

.mds-admin-button-error {
	background-color: var(--mds-accessible-error, #ef4444) !important;
	color: var(--mds-btn-danger-text, #ffffff) !important;
}

/* jQuery UI Accordion Theme Overrides for Dark Mode */
.mds-container .ui-accordion,
.mds-container .ui-widget {
	background: var(--mds-card-bg, #ffffff) !important;
	color: var(--mds-text-primary, #000000) !important;
	border: 1px solid var(--mds-border-color, #dddddd) !important;
}

.mds-container .ui-accordion-header,
.mds-container .ui-widget-header {
	background: var(--mds-bg-secondary, #f8f9fa) !important;
	color: var(--mds-text-primary, #000000) !important;
	border: 1px solid var(--mds-border-color, #dddddd) !important;
	border-bottom: none !important;
}

.mds-container .ui-accordion-content,
.mds-container .ui-widget-content {
	background: var(--mds-card-bg, #ffffff) !important;
	color: var(--mds-text-primary, #000000) !important;
	border: 1px solid var(--mds-border-color, #dddddd) !important;
	border-top: none !important;
}

.mds-container .ui-state-hover,
.mds-container .ui-state-focus {
	background: var(--mds-bg-secondary, #f0f0f0) !important;
	color: var(--mds-text-primary, #000000) !important;
}

.mds-container .ui-state-active {
	background: var(--mds-bg-secondary, #e0e0e0) !important;
	color: var(--mds-text-primary, #000000) !important;
}

/* Enhanced Accordion Header Styling for Better Visual Separation */
.mds-container .mds-manage-row.ui-accordion-header {
	background-color: var(--mds-card-bg, #ffffff) !important;
	color: var(--mds-text-primary, #000000) !important;
	border: 1px solid var(--mds-border-color, #d1d5db) !important;
	border-left: 3px solid #c0c4cc !important;
	border-radius: 4px !important;
	margin: 2px 0 !important;
	box-shadow: 0 1px 3px var(--mds-shadow, rgba(0, 0, 0, 0.08)) !important;
	transition: all 0.2s ease !important;
}

/* Hover State for Better Interaction Feedback */
.mds-container .mds-manage-row.ui-accordion-header.ui-state-hover,
.mds-container .mds-manage-row.ui-accordion-header:hover {
	background-color: var(--mds-bg-secondary, #f1f3f4) !important;
	border-left-color: #8b9197 !important;
	box-shadow: 0 2px 6px var(--mds-shadow, rgba(0, 0, 0, 0.12)) !important;
	transform: translateX(2px) !important;
}

/* Active/Selected State for Clear Visual Distinction */
.mds-container .mds-manage-row.ui-accordion-header.ui-state-active,
.mds-container .mds-manage-row.ui-accordion-header.ui-accordion-header-active {
	background-color: var(--mds-bg-secondary, #f0f2f5) !important;
	color: var(--mds-text-primary, #000000) !important;
	border-left-color: #6b7280 !important;
	border-left-width: 4px !important;
	box-shadow: 0 3px 8px var(--mds-shadow, rgba(0, 0, 0, 0.15)) !important;
	font-weight: 600 !important;
}

/* Focus State - Subtle and Elegant */
.mds-container .mds-manage-row.ui-accordion-header.ui-state-focus,
.mds-container .mds-manage-row.ui-accordion-header:focus {
	outline: none !important;
	border: 2px solid #93a3b8 !important;
	border-left: 4px solid #4f5866 !important;
	box-shadow: 0 0 0 2px rgba(147, 163, 184, 0.3) !important;
	background-color: var(--mds-bg-secondary, #f3f4f6) !important;
}

/* Remove Default jQuery UI Corner Classes to Use Our Border Radius */
.mds-container .ui-corner-top,
.mds-container .ui-corner-bottom,
.mds-container .ui-corner-all {
	border-radius: 6px !important;
}

/* Accordion Content Styling for Better Integration */
.mds-container .ui-accordion-content.ui-widget-content {
	background: var(--mds-card-bg, #ffffff) !important;
	color: var(--mds-text-primary, #000000) !important;
	border: 2px solid var(--mds-border-color, #cccccc) !important;
	border-top: 1px solid var(--mds-border-color, #cccccc) !important;
	border-radius: 0 0 6px 6px !important;
	margin-bottom: 4px !important;
	box-shadow: 0 2px 4px var(--mds-shadow, rgba(0, 0, 0, 0.05)) !important;
}

/* Icons in Accordion Headers */
.mds-container .ui-accordion-header .ui-icon {
	background-color: transparent !important;
	color: inherit !important;
}

/* Ensure Text Readability in All States */
.mds-container .mds-manage-row.ui-accordion-header *:not(input):not(button):not(.mds-button):not(a.mds-button) {
	color: inherit !important;
}

/* Make the Edit button column skinnier (second child div) */
.mds-manage-row > div:nth-child(2),
.mds-pixels-list-row > div:nth-child(2),
.mds-pixels-list-heading > div:nth-child(2),
.mds-package-options-row > div:nth-child(2) {
	flex: 0 1 auto;
	min-width: 55px;
	max-width: 200px;
	padding-left: 6px;
	padding-right: 6px;
	text-align: center;
	white-space: nowrap;
}
