/* ==============================================
   Workwear Logo Customiser - Public CSS
   Version: 1.0.0
   ============================================== */

/* CSS Variables for Theme Compatibility */
:root {
	/* Primary Colors - Override to match your theme */
	--wlc-primary-color: #2e7d32;
	--wlc-primary-dark: #1b5e20;
	--wlc-primary-light: #4caf50;
	
	/* Secondary Colors */
	--wlc-secondary-color: #1976d2;
	--wlc-accent-color: #f57c00;
	
	/* Neutral Colors */
	--wlc-bg-light: #f9f9f9;
	--wlc-bg-lighter: #fafafa;
	--wlc-border-color: #ddd;
	--wlc-text-dark: #333;
	--wlc-text-light: #666;
	--wlc-text-lighter: #999;
	
	/* Sizes */
	--wlc-border-radius: 8px;
	--wlc-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	--wlc-box-shadow-strong: 0 5px 40px rgba(0, 0, 0, 0.16);
}

/* Tier Pricing Table */
.wlc-tier-pricing {
	margin: 20px 0;
	padding: 20px;
	background: var(--wlc-bg-light);
	border: 1px solid var(--wlc-border-color);
	border-radius: var(--wlc-border-radius);
}

.wlc-tier-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 15px;
}

.wlc-tier-price {
	font-size: 32px;
	font-weight: bold;
	color: var(--wlc-primary-color);
}

.wlc-tier-badges {
	display: flex;
	flex-direction: column;
	gap: 5px;
	align-items: flex-end;
}

.wlc-badge {
	padding: 5px 10px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 600;
}

.wlc-badge-guaranteed {
	background: var(--wlc-primary-color);
	color: #fff;
}

.wlc-badge-social {
	background: var(--wlc-secondary-color);
	color: #fff;
}

.wlc-tier-table {
	width: 100%;
	border-collapse: collapse;
}

.wlc-tier-row {
	border-top: 1px solid var(--wlc-border-color);
}

.wlc-tier-row:nth-child(even) {
	background: var(--wlc-bg-lighter);
}

.wlc-tier-row.wlc-tier-active {
	border-left: 3px solid var(--wlc-primary-color);
	background: rgba(46, 125, 50, 0.1) !important;
}

.wlc-tier-price {
	font-size: 18px;
	font-weight: bold;
	padding: 10px;
	color: var(--wlc-primary-color);
}

.wlc-tier-save {
	padding: 10px;
}

.wlc-save-badge {
	background: var(--wlc-accent-color);
	color: #fff;
	padding: 4px 8px;
	border-radius: 12px;
	font-size: 11px;
	font-weight: bold;
}

.wlc-tier-qty {
	text-align: right;
	padding: 10px;
	color: #666;
}

/* Colour Swatches */
.wlc-colour-swatches {
	margin: 20px 0;
}

.wlc-swatches-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.wlc-swatch {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 2px solid transparent;
	cursor: pointer;
	transition: all 0.2s;
}

.wlc-swatch:hover {
	transform: scale(1.1);
}

.wlc-swatch.wlc-swatch-selected {
	border: 3px solid #2e7d32;
	box-shadow: 0 0 0 2px #fff, 0 0 0 4px #2e7d32;
}

.wlc-swatch.wlc-swatch-out-of-stock {
	opacity: 0.5;
	cursor: not-allowed;
	position: relative;
}

.wlc-swatch.wlc-swatch-out-of-stock::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	height: 2px;
	background: #b32d2e;
	transform: rotate(-45deg);
}

/* Size Grid */
.wlc-size-grid {
	margin: 20px 0;
	padding: 20px;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 8px;
}

.wlc-size-grid-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 15px;
}

.wlc-delivery-badge {
	background: #fff3cd;
	color: #856404;
	padding: 10px;
	border-radius: 4px;
	margin-bottom: 15px;
	font-weight: 600;
}

.wlc-size-grid-container {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 15px;
	margin-bottom: 20px;
}

.wlc-size-cell {
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 15px;
	text-align: center;
}

.wlc-size-cell.wlc-size-out-of-stock {
	background:#f5f5f5;
	opacity: 0.6;
}

.wlc-size-label {
	font-size: 18px;
	font-weight: bold;
	margin-bottom: 10px;
}

.wlc-lightning {
	color: #e65100;
	font-size: 16px;
}

.wlc-qty-stepper {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 5px;
	margin: 10px 0;
}

.wlc-qty-minus,
.wlc-qty-plus {
	width: 30px;
	height: 30px;
	border: 1px solid #ddd;
	background: #fff;
	cursor: pointer;
	font-size: 18px;
	border-radius: 4px;
}

.wlc-qty-minus:hover,
.wlc-qty-plus:hover {
	background: #f5f5f5;
}

.wlc-qty-minus:disabled,
.wlc-qty-plus:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.wlc-qty-input {
	width: 50px;
	height: 30px;
	text-align: center;
	border: 1px solid #ddd;
	border-radius: 4px;
}

.wlc-stock-status {
	margin: 5px 0;
	font-size: 13px;
	font-weight: 600;
}

.wlc-in-stock {
	color: #2e7d32;
}

.wlc-out-of-stock {
	color: #b32d2e;
}

.wlc-stock-qty {
	font-size: 12px;
	color: #666;
}

#wlc-add-to-cart-btn {
	width: 100%;
	padding: 15px;
	font-size: 16px;
	font-weight: bold;
	background: #e65100;
	color: #fff;
	border: none;
	border-radius: 4px;
	cursor: pointer;
}

#wlc-add-to-cart-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* Logo Modal */
.wlc-modal {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 9999;
}

.wlc-modal-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.7);
}

.wlc-modal-content {
	position: relative;
	max-width: 800px;
	margin: 50px auto;
	background: #fff;
	border-radius: 8px;
	padding: 30px;
	max-height: 80vh;
	overflow-y: auto;
}

.wlc-modal-close {
	position: absolute;
	top: 15px;
	right: 15px;
	background: none;
	border: none;
	font-size: 30px;
	cursor: pointer;
	color: #999;
}

.wlc-step-footer {
	margin-top: 20px;
	display: flex;
	justify-content: space-between;
	gap: 10px;
}

/* Responsive */
@media (max-width: 768px) {
	.wlc-size-grid-container {
		grid-template-columns: repeat(2, 1fr);
	}
	
	.wlc-customizer-layout {
		flex-direction: column;
	}
	
	.wlc-customizer-sidebar {
		order: -1;
		margin-bottom: 20px;
	}
	
	.wlc-positions-grid {
		grid-template-columns: repeat(2, 1fr) !important;
	}

	.wlc-added-content {
		width: 95%;
		max-width: 100%;
		padding: 30px 20px;
		margin: 20px auto;
	}

	.wlc-added-product {
		flex-direction: column;
		text-align: center;
	}

	.wlc-added-product-image {
		width: 100%;
	}

	.wlc-added-close {
		top: 10px;
		right: 10px;
		font-size: 24px;
	}

	.wlc-added-content h2 {
		font-size: 22px;
	}

	.wlc-added-actions {
		flex-direction: column;
	}

	.wlc-added-actions a {
		width: 100%;
	}
}

/* Added to Cart Modal */
.wlc-added-modal {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow-y: auto;
}

.wlc-added-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.7);
	z-index: -1;
}

.wlc-added-content {
	position: relative;
	max-width: 600px;
	width: 90%;
	background: #fff;
	border-radius: 8px;
	padding: 40px;
	text-align: center;
	box-shadow: 0 5px 40px rgba(0, 0, 0, 0.16);
	margin: 50px auto;
}

.wlc-added-close {
	position: absolute;
	top: 15px;
	right: 15px;
	background: none;
	border: none;
	font-size: 30px;
	cursor: pointer;
	color: #999;
	line-height: 1;
}

.wlc-added-icon {
	margin: 0 auto 20px;
}

.wlc-added-content h2 {
	font-size: 28px;
	margin: 0 0 30px;
	color: #333;
}

.wlc-added-product {
	display: flex;
	align-items: center;
	gap: 15px;
	padding: 20px;
	background: #f8f9fa;
	border-radius: 8px;
	margin-bottom: 20px;
	text-align: left;
}

.wlc-added-product-image {
	flex-shrink: 0;
}

.wlc-added-product-image img {
	width: 80px;
	height: 80px;
	object-fit: cover;
	border-radius: 4px;
}

.wlc-added-product-details h3 {
	margin: 0 0 5px;
	font-size: 16px;
}

.wlc-added-product-details p {
	margin: 3px 0;
	font-size: 14px;
	color: #666;
}

.wlc-added-pricing {
	margin: 20px 0;
	padding: 15px;
	border-top: 1px solid #ddd;
	border-bottom: 1px solid #ddd;
}

.wlc-added-price-row {
	display: flex;
	justify-content: space-between;
	margin: 8px 0;
	font-size: 16px;
}

.wlc-added-price-row.wlc-added-total {
	font-weight: bold;
	font-size: 18px;
	margin-top: 15px;
	padding-top: 15px;
	border-top: 1px solid #ddd;
}

.wlc-added-vat {
	text-align: right;
	font-size: 14px;
	color: #666;
	margin: 5px 0 0;
}

.wlc-added-actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 20px 0;
}

.wlc-btn-add-logo {
	background: #e65100 !important;
	color: #fff !important;
	padding: 15px !important;
	font-size: 16px !important;
	font-weight: 600 !important;
	border-radius: 4px;
	text-decoration: none;
	display: block;
}

.wlc-btn-add-logo:hover {
	background: #d84315 !important;
}

.wlc-btn-view-basket {
	background: #fff !important;
	color: #333 !important;
	border: 2px solid #ddd !important;
	padding: 13px !important;
	font-size: 16px !important;
	text-decoration: none;
	display: block;
}

.wlc-continue-shopping {
	color: #666;
	text-decoration: underline;
	font-size: 14px;
	margin-top: 15px;
	display: inline-block;
}

/* Logo Customizer Full Page */
.wlc-customizer-page {
	background: #f8f9fa;
	min-height: 100vh;
}

.wlc-customizer-header {
	background: #fff;
	padding: 20px 0;
	border-bottom: 1px solid #ddd;
	margin-bottom: 30px;
}

.wlc-customizer-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

.wlc-back-link {
	color: #666;
	text-decoration: none;
	font-size: 14px;
	margin-bottom: 10px;
	display: inline-block;
}

.wlc-back-link:hover {
	color: #333;
}

.wlc-customizer-header h1 {
	margin: 10px 0 0;
	font-size: 32px;
}

.wlc-customizer-layout {
	display: flex;
	gap: 30px;
	align-items: flex-start;
}

.wlc-customizer-main {
	flex: 1;
	background: #fff;
	padding: 40px;
	border-radius: 8px;
}

.wlc-customizer-step h2 {
	font-size: 28px;
	margin: 0 0 30px;
}

.wlc-position-counter {
	background: #f8f9fa;
	padding: 15px;
	border-radius: 4px;
	margin-bottom: 20px;
	font-size: 16px;
}

.wlc-position-counter strong {
	color: #4CAF50;
	font-size: 20px;
}

.wlc-positions-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	margin-bottom: 30px;
}

.wlc-position-card {
	border: 2px solid #ddd;
	border-radius: 8px;
	padding: 20px;
	cursor: pointer;
	transition: all 0.3s;
	position: relative;
	background: #fff;
}

.wlc-position-card:hover {
	border-color: #4CAF50;
	box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.wlc-position-card.wlc-selected {
	border-color: #4CAF50;
	border-width: 3px;
	background: #e8f5e9;
}

.wlc-position-card-inner img {
	width: 100%;
	height: 150px;
	object-fit: contain;
	margin-bottom: 15px;
}

.wlc-position-placeholder {
	width: 100%;
	height: 150px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f5f5f5;
	margin-bottom: 15px;
	border-radius: 4px;
}

.wlc-position-placeholder .dashicons {
	font-size: 60px;
	color: #ccc;
}

.wlc-position-card-inner h3 {
	margin: 0 0 10px;
	font-size: 18px;
}

.wlc-position-methods {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.wlc-method-badge {
	font-size: 12px;
	color: #666;
	display: flex;
	align-items: center;
	gap: 5px;
}

.wlc-method-badge .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
}

.wlc-position-checkmark {
	position: absolute;
	top: 10px;
	right: 10px;
	opacity: 0;
	transition: opacity 0.3s;
}

.wlc-position-card.wlc-selected .wlc-position-checkmark {
	opacity: 1;
}

.wlc-step-actions {
	margin-top: 30px;
}

.wlc-error-message {
	color: #d32f2f;
	font-weight: 600;
	margin-bottom: 15px;
}

.wlc-action-buttons {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 15px;
}

.wlc-selected-info {
	font-size: 16px;
	color: #4CAF50;
	font-weight: 600;
}

.wlc-selected-info span {
	font-size: 20px;
}

/* Method Selection */
.wlc-method-options {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
	margin-bottom: 30px;
}

.wlc-method-option {
	border: 2px solid #ddd;
	border-radius: 8px;
	padding: 40px 20px;
	cursor: pointer;
	transition: all 0.3s;
	text-align: center;
	position: relative;
	background: #fff;
}

.wlc-method-option:hover {
	border-color: #4CAF50;
	box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.wlc-method-option.wlc-selected {
	border-color: #4CAF50;
	border-width: 3px;
	background: #e8f5e9;
}

.wlc-method-icon {
	margin-bottom: 20px;
}

.wlc-method-icon .dashicons {
	font-size: 60px;
	width: 60px;
	height: 60px;
	color: #666;
}

.wlc-method-option h3 {
	margin: 0 0 10px;
	font-size: 24px;
}

.wlc-method-option p {
	color: #666;
	margin: 0;
}

.wlc-method-checkmark {
	position: absolute;
	top: 15px;
	right: 15px;
	opacity: 0;
	transition: opacity 0.3s;
}

.wlc-method-option.wlc-selected .wlc-method-checkmark {
	opacity: 1;
}

/* Upload Section */
.wlc-upload-area {
	border: 3px dashed #ddd;
	border-radius: 8px;
	padding: 60px 40px;
	text-align: center;
	margin-bottom: 30px;
	background: #fafafa;
}

.wlc-upload-icon {
	margin-bottom: 20px;
}

.wlc-upload-icon .dashicons {
	font-size: 60px;
	color: #666;
}

#wlc-upload-btn {
	background: #4CAF50 !important;
	color: #fff !important;
	padding: 15px 30px !important;
	font-size: 16px !important;
	font-weight: 600 !important;
}

#wlc-upload-btn .dashicons {
	margin-right: 8px;
}

.wlc-upload-hint {
	color: #4CAF50;
	font-weight: 600;
	margin: 15px 0 10px;
}

.wlc-upload-info {
	color: #666;
	font-size: 14px;
	max-width: 600px;
	margin: 0 auto;
}

#wlc-upload-preview {
	text-align: center;
}

#wlc-preview-image {
	max-width: 300px;
	max-height: 300px;
	border: 1px solid #ddd;
	border-radius: 8px;
	margin-bottom: 15px;
}

.wlc-text-input {
	width: 100%;
	padding: 15px;
	border: 2px solid #ddd;
	border-radius: 4px;
	font-size: 16px;
	margin-top: 10px;
}

.wlc-confidence-box {
	background: #e8f5e9;
	border: 1px solid #4CAF50;
	border-radius: 8px;
	padding: 20px;
	margin-top: 30px;
}

.wlc-confidence-box h4 {
	margin: 0 0 15px;
	font-size: 18px;
	color: #2e7d32;
	display: flex;
	align-items: center;
	gap: 8px;
}

.wlc-confidence-box .dashicons {
	color: #4CAF50;
	font-size: 24px;
}

.wlc-confidence-box p {
	margin: 10px 0;
	color: #333;
	font-size: 14px;
}

/* Sidebar */
.wlc-customizer-sidebar {
	width: 350px;
	flex-shrink: 0;
}

.wlc-sidebar-box {
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 20px;
	margin-bottom: 20px;
}

.wlc-sidebar-box h3 {
	margin: 0 0 20px;
	font-size: 18px;
}

.wlc-sidebar-product {
	display: flex;
	gap: 15px;
	margin-bottom: 15px;
}

.wlc-sidebar-product img {
	width: 80px;
	height: 80px;
	object-fit: cover;
	border-radius: 4px;
}

.wlc-sidebar-product-info h4 {
	margin: 0 0 5px;
	font-size: 16px;
}

.wlc-sidebar-product-info p {
	margin: 3px 0;
	font-size: 14px;
	color: #666;
}

.wlc-sidebar-note {
	color: #666;
	font-size: 14px;
	font-style: italic;
	padding-top: 15px;
	border-top: 1px solid #ddd;
}

.wlc-sidebar-badges {
	background: #f8f9fa;
}

.wlc-sidebar-badge {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 0;
	border-bottom: 1px solid #ddd;
	font-size: 14px;
}

.wlc-sidebar-badge:last-child {
	border-bottom: none;
}

.wlc-sidebar-badge .dashicons {
	color: #4CAF50;
	font-size: 20px;
}

.wlc-empty-message {
	text-align: center;
	padding: 40px;
	color: #666;
	font-size: 16px;
}
