/* Printoma Artistic Styling - Simple Design */

.printoma-styling-wrapper {
	margin: 15px 0;
	/* padding: 15px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 6px; */
}

/* Force hide quantity for artistic styling products */
.single-product .printoma-styling-wrapper ~ .quantity,
.single-product .printoma-styling-wrapper ~ * .quantity {
	display: none !important;
}

.styling-checkbox-label {
	display: flex;
	align-items: center;
	cursor: pointer;
	margin-bottom: 8px;
}

.styling-checkbox {
	margin-right: 10px;
	cursor: pointer;
}

.service-title {
	font-size: 1rem;
	font-weight: 600;
	color: var(--section-color-text, #333);
}

.service-price {
	background: var(--section-color-primary, #0073aa);
	color: white;
	padding: 2px 8px;
	border-radius: 4px;
	font-size: 0.8rem;
	font-weight: 600;
	margin-left: 8px;
}

.styling-description {
	margin: 5px 0 0 0;
	font-size: 0.9rem;
	color: var(--section-color-text-light, #666);
}

/* Add to cart button states - simplified */
.single_add_to_cart_button:disabled {
	opacity: 0.7;
	cursor: not-allowed;
	background: #ccc !important;
	color: #666 !important;
}

.single_add_to_cart_button.file-upload-required {
	background: #dc3545 !important;
	color: white !important;
	border-color: #dc3545 !important;
}

.single_add_to_cart_button.upload-in-progress {
	background: #ffc107 !important;
	color: #212529 !important;
	border-color: #ffc107 !important;
	opacity: 0.8;
}

.single_add_to_cart_button.style-selection-required {
	background: #17a2b8 !important;
	color: white !important;
	border-color: #17a2b8 !important;
}

/* Subtle hover effect for better UX */
.single_add_to_cart_button:not(:disabled):hover {
	transform: translateY(-1px);
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	transition: all 0.2s ease;
}

/* Upload progress indicator */
.products-uploads-drop-progressBar {
	position: relative;
	transition: all 0.3s ease;
}

.products-uploads-drop-progressBar div {
	transition: width 0.3s ease;
}

.styling-options-container {
	margin-top: 10px;
	padding: 10px;
	background: white;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
}

.styling-select-label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
	color: var(--section-color-text, #333);
}

.artistic-styling-select {
	width: 100%;
	padding: 8px 12px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 0.9rem;
	background: white;
	cursor: pointer;
}

.artistic-styling-select:focus {
	outline: none;
	border-color: var(--section-color-primary, #0073aa);
}

/* Simple link styling */
.styling-info a {
	color: var(--section-color-primary, #0073aa);
	text-decoration: none;
}

.styling-info a:hover {
	text-decoration: underline;
}

/* Hide quantity selector for artistic styling products */
.single-product .quantity,
.woocommerce-variation-add-to-cart .quantity,
.single_variation_wrap .quantity,
div.quantity,
.cart .quantity {
	display: none !important;
}

/* Ensure quantity input is always 1 */
input[name="quantity"] {
	display: none !important;
}

/* Responsive Design - simple */
@media (max-width: 768px) {
	.printoma-styling-wrapper {
		margin: 10px 0;
	}

	.styling-checkbox-label {
		padding: 12px;
	}

	.service-title {
		font-size: 0.9rem;
	}

	.service-price {
		font-size: 0.7rem;
		padding: 1px 6px;
	}

	.styling-options-container {
		padding: 12px;
	}

	.artistic-styling-select {
		padding: 10px;
	}
}

@media (max-width: 480px) {
	.styling-checkbox-label {
		padding: 10px;
	}

	.service-title {
		font-size: 0.95rem;
	}

	.styling-options-container {
		padding: 10px;
	}
}

/* Hide quantity selector completely for products with artistic styling */
body.single-product .quantity {
	display: none !important;
}

/* Price display adjustments */
.price-adjustment {
	font-size: 0.9rem;
	color: var(--section-color-primary, #0073aa);
	margin-top: 5px;
}

/* Notice styling */
.styling-notice {
	background: #fff3cd;
	border: 1px solid #ffeaa7;
	border-radius: 4px;
	padding: 10px;
	margin-top: 10px;
	font-size: 0.9rem;
}

.styling-notice strong {
	color: #856404;
}

/* Loading animation */
.styling-options-container.loading {
	opacity: 0.7;
	pointer-events: none;
}

/* Error states */
.styling-error {
	background: #f8d7da;
	border: 1px solid #f5c6cb;
	border-radius: 4px;
	padding: 10px;
	margin-top: 10px;
	color: #721c24;
	font-size: 0.9rem;
}

/* Success states */
.styling-success {
	background: #d1edff;
	border: 1px solid #b8daff;
	border-radius: 4px;
	padding: 10px;
	margin-top: 10px;
	color: #004085;
	font-size: 0.9rem;
}

/* Accessibility improvements */
.styling-checkbox:focus {
	outline: 2px solid var(--section-color-primary, #0073aa);
	outline-offset: 2px;
}

.artistic-styling-select:focus {
	outline: 2px solid var(--section-color-primary, #0073aa);
	outline-offset: 2px;
}

/* Print styles */
@media print {
	.printoma-styling-wrapper {
		background: white;
		border: 1px solid #000;
	}
}

.products-uploads-drop-type_file,
.products-uploads-drop-type {
	/* display:none; */
}
.products-uploads-drop-statusbar {
	height: 80px;
	display: flex;
	align-items: center;
	background: #fff;
	border: 1px solid #e6e6e6;
	border-radius: 10px;
	padding: 8px 10px !important;
	margin-top: 10px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
	position: relative;
}

.products-uploads-drop-img {
	left: 5px;
	flex-shrink: 0;
	width: 60px !important;
	height: 60px !important;
	border-radius: 8px;
	overflow: hidden !important;
	border: 1px solid #ddd;
	background: #fafafa;
	display: flex;
	align-items: center;
	justify-content: center;
}

.products-uploads-drop-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.25s ease;
}

.products-uploads-drop-img img:hover {
	transform: scale(1.06);
}

.products-uploads-drop-filename {
	font-size: 0.85rem;
	color: #333;
	font-weight: 500;
	display: block;
	margin-bottom: 4px;
	word-break: break-all;
}

.products-uploads-drop-filesize {
	font-size: 0.75rem;
	color: #888;
}

.products-uploads-drop-progressBar {
	display: none !important;
	position: absolute;
	left: 0;
	bottom: 0;
	height: 4px;
	border-radius: 0 0 10px 0;
	background: #27ae60;
	transition: width 0.3s ease;
}

.products-uploads-drop-progressBar div {
	background: #27ae60;
	height: 100%;
	border-radius: 0 0 10px 10px;
	color: transparent !important;
}

.products-uploads_file_upload_remove {
	position: absolute !important;
	top: 6px !important;
	right: 8px !important;
	width: 20px !important;
	height: 20px !important;
	line-height: 16px;
	text-align: center;
	border-radius: 50%;
	background: #f0f0f0 !important;
	color: #666;
	cursor: pointer !important;
	transition: all 0.2s ease;
	font-size: 15px;
	padding-top: 3px;
}
.products-uploads_file_upload_remove:hover {
	background: #e74c3c !important;
	color: white !important;
}

#toggle-styling-options {
	accent-color: #3498db;
}
.printoma-styling-toggle label:hover span {
	color: #3498db;
	transition: color 0.2s ease;
}

.quantity {
	display: none !important;
}
.printoma-styling-wrapper {
	margin: -10px 0 25px 0;
}

/* Force 3 columns grid with reduced spacing */
.printoma-styles-grid {
	display: grid !important;
	grid-template-columns: 1fr 1fr 1fr !important;
	gap: 8px !important;
}

/* Style option styling - fix selection issues */
.printoma-style-option {
	border: 2px solid #e9ecef !important;
	border-radius: 12px !important;
	overflow: hidden !important;
	cursor: pointer !important;
	transition: all 0.3s ease !important;
	background: white !important;
	display: flex;
	flex-direction: column;
	height: 100%;
}

/* Style thumbnail container */
.style-thumbnail {
	height: 160px;
	position: relative;
	overflow: hidden;
	flex-shrink: 0;
}

/* Placeholder images */
.style-placeholder-image {
	width: 100%;
	height: 100% !important;
	object-fit: cover;
	filter: opacity(0.85);
	transition: all 0.3s ease;
}

/* AI styling badge */
.style-ai-badge {
	position: absolute;
	bottom: 8px;
	right: 8px;
	background: rgba(52, 152, 219, 0.1);
	color: white;
	padding: 4px 10px;
	border-radius: 5px;
	font-size: 0.7rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	backdrop-filter: blur(4px);
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Style info container */
.style-info {
	padding: 12px;
	text-align: center;
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 60px;
}

/* Style name with proper line height */
.style-name {
	font-weight: 600;
	font-size: 0.85rem;
	color: #2c3e50;
	margin-bottom: 6px;
	line-height: 1.2;
	min-height: 2.4em; /* Reserve space for 2 lines */
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
}

/* Enhanced price styling */
.style-price {
	font-size: 0.8rem;
	font-weight: 600;
	color: #e74c3c;
	background: rgba(231, 76, 60, 0.1);
	padding: 4px 8px;
	border-radius: 6px;
	display: inline-block;
	margin: 0 auto;
	border: 1px solid rgba(231, 76, 60, 0.2);
	text-transform: uppercase;
	letter-spacing: 0.3px;
}

/* Default option styling */
.style-thumbnail-default {
	background: #f8f9fa;
	border: 2px dashed #dee2e6;
}

.default-preview {
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	color: #6c757d;
}

.default-icon {
	font-size: 2.5rem;
	margin-bottom: 10px;
	opacity: 0.7;
}

.default-text {
	font-size: 0.85rem;
	font-weight: 500;
	opacity: 0.8;
}

/* Included price styling (green) */
.style-price-included {
	color: #27ae60;
	background: rgba(39, 174, 96, 0.1);
	border-color: rgba(39, 174, 96, 0.2);
}

.printoma-style-option:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
	border-color: #bdc3c7 !important;
}

.printoma-style-option:hover .style-placeholder-image {
	filter: opacity(1);
	transform: scale(1.02);
}

.printoma-style-option:hover .style-ai-badge {
	background: rgba(52, 152, 219, 0.5);
	transform: scale(1.05);
}

.printoma-style-option.selected {
	border-color: #3498db !important;
	box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3) !important;
	transform: translateY(-2px) !important;
}

.printoma-style-option.selected .style-info {
	background: #f0f8ff !important;
}

.printoma-style-option.selected .style-ai-badge {
	background: rgba(52, 152, 219, 0.5);
}

.printoma-style-option.selected .style-price {
	background: rgba(52, 152, 219, 0.1);
	color: #3498db;
	border-color: rgba(52, 152, 219, 0.3);
}

/* Mobile responsive - 2 columns on mobile, 3 on tablet+ */
@media (max-width: 640px) {
	.printoma-styles-grid {
		grid-template-columns: 1fr 1fr !important;
		gap: 6px !important;
	}

	.style-thumbnail {
		height: 160px !important;
	}

	.style-info {
		padding: 8px !important;
		min-height: 55px !important;
	}

	.style-name {
		font-size: 0.8rem !important;
		line-height: 1.1 !important;
		min-height: 2.2em !important;
		margin-bottom: 4px !important;
	}

	.style-price {
		font-size: 0.7rem !important;
		padding: 3px 6px !important;
	}

	.style-ai-badge {
		font-size: 0.65rem !important;
		padding: 3px 8px !important;
		bottom: 6px !important;
		right: 6px !important;
	}
}

/* Tablet responsive - 3 columns with adjusted spacing */
@media (min-width: 641px) and (max-width: 1024px) {
	.printoma-styles-grid {
		gap: 10px !important;
	}

	.style-name {
		font-size: 0.8rem !important;
	}
}

/* Hide any duplicate styling elements */
.printoma-styling-wrapper:not(#printoma-styling-main) {
	display: none !important;
}

/* Button states for validation */
.single_add_to_cart_button:disabled {
	opacity: 0.7;
	cursor: not-allowed;
	background: #bdc3c7 !important;
	color: #7f8c8d !important;
}

.single_add_to_cart_button.file-upload-required {
	background: #e74c3c !important;
	color: white !important;
}

.single_add_to_cart_button.upload-in-progress {
	background: #f39c12 !important;
	color: white !important;
	opacity: 0.8;
}

/* Individual Order Styles */
.individual-badge {
	background: rgba(52, 152, 219, 0.84) !important;
	color: white !important;
}

.printoma-style-option.selected .individual-badge {
	background: #3498db !important;
}

.individual-instructions {
	margin-top: 20px;
	padding: 0;
}

.individual-notice {
	background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
	border: 2px solid #3498db;
	border-radius: 12px;
	padding: 20px;
	position: relative;
}

.individual-notice h4 {
	color: #3498db;
	margin: 0 0 12px 0;
	font-size: 1.1rem;
	font-weight: 600;
}

.individual-notice p {
	margin: 0 0 10px 0;
	font-size: 0.95rem;
	line-height: 1.5;
	color: #2c3e50;
}

.individual-notice ul {
	margin: 12px 0 12px 20px;
	padding: 0;
}

.individual-notice li {
	margin: 6px 0;
	font-size: 0.9rem;
	color: #34495e;
	line-height: 1.4;
}

.individual-notice em {
	color: #3498db;
	font-weight: 500;
}

/* Mobile adjustments for individual instructions */
@media (max-width: 640px) {
	.individual-notice {
		padding: 15px;
	}

	.individual-notice h4 {
		font-size: 1rem;
	}

	.individual-notice p,
	.individual-notice li {
		font-size: 0.85rem;
	}
}
