/**
 * DropPrint Admin Panel Styles
 *
 * Styles for the Drop Print product data panel, dropzone, preview,
 * actions bar, overlay feedback, and meta box.
 *
 * @package DropPrint\CSS
 * @version 1.1.2
 */
#drop-print-preview-container img {
	max-width: 100%;
	height: auto;
	margin-bottom: 10px;
	display: block;
	box-sizing: border-box;
}
#drop-print-product-data-panel {
	min-height: 50vh;
	width: 100%;
	padding: 0;
	box-sizing: border-box;
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	border: none;
}
#drop-print-dropzone-wrapper {
	padding: 15px;
	border-bottom: 1px solid #ddd;
	background: #fff;
}
#drop-print-dropzone {
	min-height: 40vh;
	border: 2px dashed #ccc;
	border-radius: 5px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f8f8f8;
	transition: background-color 0.2s ease, border-color 0.2s ease;
	cursor: pointer;
}
#drop-print-dropzone:not(.dz-max-files-reached):hover {
	border-color: #007cba;
	background: #f0f6fc;
}
.dropzone-inner {
	padding: 20px;
	text-align: center;
	width: 100%;
	max-width: 450px;
}
.drop-print-prompt {
	color: #50575e;
}
.drop-print-prompt-icon {
	font-size: 48px;
	width: 48px;
	height: 48px;
	color: #a0a5aa;
	margin-bottom: 10px;
	display: block;
	margin-left: auto;
	margin-right: auto;
}
.drop-print-prompt h3 {
	margin: 0 0 5px 0;
	font-size: 1.1em;
}
.drop-print-prompt p {
	margin: 0;
	font-size: 0.9em;
	line-height: 1.4;
}
.drop-print-prompt p small {
	color: #757575;
	font-size: 0.9em;
}
#drop-print-step-1 {
	display: none;
	flex-grow: 1;
	flex-direction: column;
	overflow: hidden;
	min-height: 480px;
}
#drop-print-step-1.active {
	display: flex;
}
.drop-print-columns {
	flex: 1;
	display: flex;
	position: relative;
	overflow: hidden;
}
.drop-print-preview-col {
	width: 40%;
	padding: 15px;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	position: relative;
	overflow: hidden;
	background: #fdfdfd;
}
#drop-print-image-wrapper {
	position: relative;
	display: inline-block;
	max-width: 100%;
	margin: 0;
	padding: 5px;
	text-align: center;
}
#drop-print-image-preview {
	display: none;
	max-width: 100%;
	max-height: 350px;
	object-fit: contain;
	margin: 0 auto;
	transition: opacity 0.5s ease-in;
}
#drop-print-image-preview.visible {
	display: block;
	opacity: 1;
}
#drop-print-dimension-height,
#drop-print-dimension-width {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #9a9a9a;
	opacity: 0;
	transition: opacity 0.3s ease;
	pointer-events: none;
}
#drop-print-dimension-height.visible,
#drop-print-dimension-width.visible {
	opacity: 1;
}
#drop-print-dimension-height {
	top: 5px;
	bottom: 5px;
	left: -40px;
}
#drop-print-dimension-width {
	left: 5px;
	right: 5px;
	bottom: -25px;
}
#drop-print-dimension-height::before,
#drop-print-dimension-width::before {
	content: "";
	position: absolute;
	background-color: #dedede;
	z-index: 0;
}
#drop-print-dimension-height::before {
	left: 50%;
	transform: translateX(-50%);
	top: 0;
	bottom: 0;
	width: 1px;
}
#drop-print-dimension-width::before {
	top: 50%;
	transform: translateY(-50%);
	left: 0;
	right: 0;
	height: 1px;
}
#drop-print-preview-dimensions-height,
#drop-print-preview-dimensions-width {
	font-size: 0.75rem;
	background: #fff;
	padding: 2px 4px;
	z-index: 1;
	border: 1px solid #eee;
	border-radius: 2px;
	white-space: nowrap;
}
#drop-print-preview-dimensions-height {
	transform: rotate(-90deg);
	transform-origin: center;
}
.drop-print-products-col {
	width: 60%;
	min-height: 65vh;
	max-height: 65vh;
	background: #fff;
	display: flex;
	flex-direction: column;
	border-left: 1px solid #ddd;
	height: 100%;
	box-sizing: border-box;
}
.drop-print-products-col > .drop-print-field {
	flex-shrink: 0;
	display: none;
	padding: 10px 15px;
	border-bottom: 1px solid #eee;
}
.drop-print-products-col > .drop-print-field > label {
	float: none !important;
	width: auto !important;
	padding: 0 !important;
	margin: 0 0 5px 0 !important;
	position: static !important;
	display: block !important;
	font-weight: 600 !important;
}
#drop-print-product-list-container {
	flex-grow: 1;
	overflow-y: auto;
	box-sizing: border-box;
	scrollbar-gutter: stable;
	height: 100%;
}
.drop-print-product-list-loading {
	color: #646970;
	padding: 30px;
	text-align: center;
}
.drop-print-actions {
	padding: 12px 15px;
	border-top: 1px solid #ddd;
	background: #f8f9fa;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-shrink: 0;
	width: 100%;
	box-sizing: border-box;
}
#drop-print-file-info-wrapper {
	display: none;
	flex-grow: 1;
	text-align: center;
	padding: 0 10px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.drop-print-file-info-container {
	margin-bottom: 0;
}
.drop-print-file-info {
	padding: 0;
	border: none;
	font-size: 0.9em;
	color: #555;
}
#drop-print-file-name {
	font-style: normal;
	color: #333;
}
.drop-print-actions .button {
	margin: 0;
	flex-shrink: 0;
}
#drop-print-panel-overlay {
	position: absolute;
	inset: 0;
	background: rgba(240, 240, 241, 0.95);
	z-index: 1000;
	display: none;
	justify-content: center;
	align-items: center;
	padding: 20px;
	box-sizing: border-box;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s ease, visibility 0.2s ease;
}
#drop-print-panel-overlay #drop-print-resize-select {
    min-width: 330px!important;
    margin-top: 15px!important;
    margin-left: 20px;
}
.drop-print-overlay-message .woocommerce_options_panel label {
width: auto!important;
margin: 0 0 0 0!important;
}
#drop-print-panel-overlay.is-visible {
	display: flex;
	opacity: 1;
	visibility: visible;
}
.drop-print-overlay-content {
	background: #fff;
	padding: 30px 40px;
	border-radius: 4px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
	text-align: center;
	max-width: 500px;
	width: 100%;
	box-sizing: border-box;
	color: #3c434a;
}
.drop-print-overlay-icon {
	margin-bottom: 20px;
	line-height: 1;
}
.drop-print-overlay-icon .spinner {
	display: none;
	visibility: hidden;
	width: 20px;
	height: 20px;
	margin: 0 auto;
}
.drop-print-overlay-icon .dashicons {
	display: none;
	font-size: 40px;
	width: 40px;
	height: 40px;
	line-height: 1;
}
.drop-print-overlay-title {
	font-size: 1.2em;
	font-weight: 600;
	margin: 0 0 15px 0;
	color: #1d2327;
}
.drop-print-overlay-message {
	font-size: 1em;
	line-height: 1.6;
	margin-bottom: 25px;
}
.drop-print-overlay-message p {
	margin-bottom: 1em;
}
.drop-print-overlay-message p:last-child {
	margin-bottom: 0;
}
.drop-print-overlay-message strong {
	font-weight: 600;
}
.drop-print-overlay-actions {
	display: none;
	justify-content: center;
	gap: 10px;
	flex-wrap: wrap;
}
.drop-print-overlay-actions .button {
	margin: 0;
}
#drop-print-panel-overlay.is-loading .spinner {
	display: inline-block;
	visibility: visible;
	float: none;
}
#drop-print-panel-overlay.is-loading .dashicons,
#drop-print-panel-overlay.is-loading .drop-print-overlay-actions {
	display: none !important;
}
#drop-print-panel-overlay.is-error .dashicons,
#drop-print-panel-overlay.is-blocked .dashicons,
#drop-print-panel-overlay.is-prompt .dashicons {
	display: inline-block;
}
#drop-print-panel-overlay.is-error .dashicons { color: #d63638; }
#drop-print-panel-overlay.is-error .drop-print-overlay-title { color: #d63638; }
#drop-print-panel-overlay.is-blocked .dashicons { color: #ffb900; }
#drop-print-panel-overlay.is-blocked .drop-print-overlay-title { color: #50575e; }
#drop-print-panel-overlay.is-prompt .dashicons { color: #007cba; }
.drop-print-overlay-actions .button#drop-print-overlay-reset-btn {
	background: #d63638;
	border-color: #d63638 #cc292b #cc292b;
	box-shadow: inset 0 1px 0 #e48a8b;
	color: #fff;
	text-shadow: 0 -1px 1px #cc292b, 1px 0 1px #cc292b, 0 1px 1px #cc292b, -1px 0 1px #cc292b;
}
.drop-print-overlay-actions .button#drop-print-overlay-reset-btn:hover,
.drop-print-overlay-actions .button#drop-print-overlay-reset-btn:focus {
	background: #cc292b;
	border-color: #cc292b;
	color: #fff;
}
ul.product_data_tabs li.drop-print-tab a::before {
	content: '';
	display: inline-block;
	width: 16px;
	height: 16px;
	vertical-align: text-bottom;
	background-color: #646970;
	mask-image: url(../images/icon-drop-print-product-data-menu.svg);
	mask-size: contain;
	mask-repeat: no-repeat;
	mask-position: center;
	-webkit-mask-image: url(../images/icon-drop-print-product-data-menu.svg);
	-webkit-mask-size: contain;
	-webkit-mask-repeat: no-repeat;
	-webkit-mask-position: center;
}
ul.product_data_tabs li.drop-print-tab.active a::before {
	background-color: #555;
}
.drop-print-overlay-actions .button::before {
	display: inline-block;
	line-height: 1;
	font-weight: 400;
	font-style: normal;
	speak: never;
	text-decoration: inherit;
	text-transform: none;
	text-rendering: auto;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	vertical-align: text-top;
	margin-right: 6px;
	font-size: 18px;
}
#dp-upload-progress-container {
	width: 80%;
	margin: 20px auto;
	text-align: center;
}
#dp-upload-progress-text {
	margin-bottom: 5px;
	font-size: 0.9em;
	color: #555;
}
#dp-upload-progress-bar-outer {
	background-color: #e0e0e0;
	border-radius: 4px;
	padding: 2px;
	height: 14px;
	box-sizing: border-box;
}
#dp-upload-progress-bar-inner {
	width: 0%;
	height: 10px;
	background-color: #007cba;
	border-radius: 2px;
	transition: width 0.2s ease-out;
}
@keyframes drop-print-pulse-anim {
	0% {
		transform: scale(1);
		box-shadow: 0 0 0 0 rgba(0, 118, 170, 0.5);
	}
	70% {
		transform: scale(1.02);
		box-shadow: 0 0 0 8px rgba(0, 118, 170, 0);
	}
	100% {
		transform: scale(1);
		box-shadow: 0 0 0 0 rgba(0, 118, 170, 0);
	}
}
.drop-print-actions button#drop-print-add-variations-button.drop-print-pulse {
	animation: drop-print-pulse-anim 1.8s infinite;
}
ul.product_data_tabs li.drop-print-tab-intercepted {
	opacity: 0.6;
	cursor: not-allowed;
}
ul.product_data_tabs li.drop-print-tab-intercepted a {
	cursor: not-allowed !important;
}
ul.product_data_tabs li.drop-print-tab-intercepted:hover a,
ul.product_data_tabs li.drop-print-tab-intercepted a:hover {
	color: inherit;
}