/*!
 * PrintShop Pro — Product Configurator Stylesheet
 */

.psp-configurator { max-width: 1100px; margin: 24px 0; }

.psp-configurator-progress {
	height: 6px;
	background: var(--psp-light-gray);
	border-radius: 999px;
	overflow: hidden;
	margin-bottom: 20px;
	display: none;
}
.psp-configurator-progress-bar {
	height: 100%;
	width: 0%;
	background: var(--psp-primary);
	transition: width .25s ease;
}

.psp-configurator-grid {
	display: grid;
	grid-template-columns: 1.6fr 1fr;
	gap: 28px;
	align-items: start;
}

.psp-step {
	background: var(--psp-white);
	border: 1px solid var(--psp-border);
	border-radius: var(--psp-radius);
	padding: 18px 20px;
	margin-bottom: 16px;
}

.psp-step-title {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 15px;
	font-weight: 700;
	margin: 0 0 14px;
}
.psp-step-number {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--psp-dark);
	color: var(--psp-white);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	flex-shrink: 0;
}
.psp-required { color: var(--psp-primary); }

.psp-option-values, .psp-quantity-selector { display: flex; flex-wrap: wrap; gap: 10px; }

.psp-option-chip, .psp-qty-chip {
	font-family: var(--psp-font);
	padding: 10px 16px;
	border-radius: var(--psp-radius);
	border: 1px solid var(--psp-border);
	background: var(--psp-white);
	cursor: pointer;
	font-size: 14px;
	transition: all .12s ease;
}
.psp-option-chip:hover, .psp-qty-chip:hover { border-color: var(--psp-primary); }
.psp-option-chip[aria-pressed="true"], .psp-qty-chip.psp-active {
	background: var(--psp-primary);
	border-color: var(--psp-primary);
	color: var(--psp-white);
}

.psp-dimension-inputs { display: flex; gap: 14px; flex-wrap: wrap; }
.psp-dimension-inputs label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: #555; }
.psp-dimension-inputs input, .psp-dimension-inputs select,
.psp-quantity-input {
	font-family: var(--psp-font);
	border: 1px solid var(--psp-border);
	border-radius: var(--psp-radius);
	padding: 10px 12px;
	font-size: 14px;
	min-width: 100px;
}

.psp-toggle-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 14px; cursor: pointer; }

/* Upload box */
.psp-upload-box {
	border: 2px dashed var(--psp-border);
	border-radius: var(--psp-radius);
	padding: 30px 16px;
	text-align: center;
	cursor: pointer;
	background: var(--psp-light-gray);
	transition: border-color .15s ease, background .15s ease;
}
.psp-upload-box:hover, .psp-upload-box.psp-dragover {
	border-color: var(--psp-primary);
	background: #fff5f6;
}
.psp-upload-icon { font-size: 30px; margin-bottom: 6px; }
.psp-upload-or { color: #888; font-size: 13px; }
.psp-upload-formats { font-size: 11px; color: #aaa; margin-top: 8px; letter-spacing: .3px; }

.psp-upload-list { list-style: none; margin: 14px 0 0; padding: 0; }
.psp-upload-list li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	background: var(--psp-white);
	border: 1px solid var(--psp-border);
	border-radius: var(--psp-radius);
	padding: 10px 14px;
	font-size: 13px;
	margin-bottom: 8px;
}
.psp-upload-list .psp-file-remove { color: var(--psp-error); cursor: pointer; font-weight: 700; }
.psp-upload-progress {
	height: 4px;
	background: var(--psp-border);
	border-radius: 999px;
	overflow: hidden;
	margin-top: 6px;
}
.psp-upload-progress-bar { height: 100%; background: var(--psp-primary); width: 0%; transition: width .1s linear; }

/* Summary / price box */
.psp-configurator-summary { position: sticky; top: 20px; }

.psp-live-preview {
	background: var(--psp-white);
	border: 1px solid var(--psp-border);
	border-radius: var(--psp-radius);
	padding: 18px;
	margin-bottom: 16px;
}
.psp-live-preview h4 { margin: 0 0 10px; font-size: 15px; }
.psp-preview-list { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.psp-preview-list li { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--psp-border); }
.psp-preview-list li:last-child { border-bottom: none; }

.psp-price-box {
	background: var(--psp-dark);
	color: var(--psp-white);
	border-radius: var(--psp-radius);
	padding: 20px;
	text-align: center;
	margin-bottom: 14px;
}
.psp-price-label { display: block; font-size: 12px; opacity: .7; margin-bottom: 6px; }
.psp-price-value { display: block; font-size: 24px; font-weight: 800; color: var(--psp-primary); }
.psp-price-loading { display: block; font-size: 12px; margin-top: 6px; opacity: .8; }

.psp-configurator-summary .psp-btn { width: 100%; }

.psp-notifications { margin-top: 10px; }
.psp-notification { border-radius: var(--psp-radius); padding: 10px 14px; font-size: 13px; margin-top: 8px; }
.psp-notification-error { background: #fdecea; color: var(--psp-error); border: 1px solid #f7c9c4; }
.psp-notification-success { background: #eafaf0; color: var(--psp-success); border: 1px solid #b9ecc9; }
.psp-notification-warning { background: #fff7e6; color: #92600a; border: 1px solid #ffe3a3; }

/* Sticky mobile cart bar */
.psp-sticky-cart {
	display: none;
	position: fixed;
	inset-inline: 0;
	bottom: 0;
	background: var(--psp-white);
	border-top: 1px solid var(--psp-border);
	padding: 12px 16px;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	z-index: 9999;
	box-shadow: 0 -6px 20px rgba(0,0,0,.08);
}
.psp-sticky-price { font-weight: 800; color: var(--psp-primary); font-size: 16px; }

/* Options hidden by an unmet dependency condition (added in 1.1.0) */
.psp-option-chip[hidden] { display: none !important; }
.psp-option-chip-locked { opacity: .4; cursor: not-allowed; pointer-events: none; }
