/* Print.com Connect — sélecteur produit */

.pcc-selector {
	margin: 1.5em 0;
	max-width: 520px;
}

/* Toggle HTVA / TVAC */
.pcc-tax-toggle {
	display: inline-flex;
	border: 1.5px solid #d1d5db;
	border-radius: 999px;
	overflow: hidden;
	margin-bottom: 1em;
}
.pcc-single-page .pcc-app .pcc-tax-btn {
	border: none;
	background: #fff;
	color: #6b7280;
	font-weight: 700;
	font-size: .82rem;
	padding: .4em 1em;
	cursor: pointer;
	transition: background .15s ease, color .15s ease;
}
.pcc-single-page .pcc-app .pcc-tax-btn.is-active { background: #2563eb; color: #fff; }

.pcc-selector .pcc-label {
	display: block;
	font-weight: 600;
	font-size: .8rem;
	letter-spacing: .03em;
	text-transform: uppercase;
	color: #6b7280;
	margin: 0 0 .5em;
}

/* Titre / prix « à partir de » */
.pcc-from {
	display: inline-flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: .4em;
}
.pcc-from .pcc-from-old {
	color: #9ca3af;
	text-decoration: line-through;
	font-weight: 400;
	font-size: .9em;
}
.pcc-from .pcc-from-new {
	font-weight: 700;
}
.pcc-from .pcc-from-qty {
	color: #6b7280;
	font-weight: 400;
	font-size: .85em;
}
.pcc-badge {
	display: inline-block;
	background: #e7f6ec;
	color: #137a3f;
	font-weight: 700;
	font-size: .8em;
	padding: .1em .5em;
	border-radius: 999px;
}

/* Select quantité customisé */
.pcc-field { margin-bottom: 1.25em; }
.pcc-select {
	position: relative;
	display: block;
}
.pcc-select select {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	width: 100%;
	padding: .85em 2.5em .85em 1em;
	font-size: 1rem;
	line-height: 1.2;
	color: #111827;
	background: #fff;
	border: 1.5px solid #d1d5db;
	border-radius: 12px;
	cursor: pointer;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.pcc-select select:hover { border-color: #9ca3af; }
.pcc-select select:focus {
	outline: none;
	border-color: #2563eb;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}
.pcc-select::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 1em;
	width: .6em;
	height: .6em;
	border-right: 2px solid #6b7280;
	border-bottom: 2px solid #6b7280;
	transform: translateY(-65%) rotate(45deg);
	pointer-events: none;
}

.pcc-unit {
	margin: .6em 0 0;
	font-size: 1.05em;
	color: #111827;
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: .4em;
}
.pcc-unit-normal { color: #9ca3af; text-decoration: line-through; font-size: .9em; }
.pcc-unit-sales { font-weight: 800; }
.pcc-unit-suffix { color: #6b7280; font-size: .82em; }
.pcc-discount {
	background: #e7f6ec;
	color: #137a3f;
	font-weight: 700;
	font-size: .8em;
	padding: .1em .5em;
	border-radius: 999px;
}

/* Livraison : boutons radio */
.pcc-modes {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: .6em;
}
@media (max-width: 520px) {
	.pcc-modes { grid-template-columns: 1fr; }
}
.pcc-mode-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: .25em;
	padding: .9em 1em;
	border: 1.5px solid #d1d5db;
	border-radius: 12px;
	cursor: pointer;
	background: #fff;
	transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.pcc-mode-card:hover { border-color: #9ca3af; }
.pcc-mode-card input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}
.pcc-mode-card.is-selected {
	border-color: #2563eb;
	background: #f5f8ff;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}
.pcc-mode-card:focus-within {
	border-color: #2563eb;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}
.pcc-mode-date { color: #111827; font-weight: 700; font-size: .95em; }
.pcc-mode-title {
	color: #6b7280;
	font-size: .82em;
	text-transform: uppercase;
	letter-spacing: .03em;
}
.pcc-mode-price { color: #137a3f; font-weight: 700; margin-top: .15em; }

.pcc-cutoff {
	margin: .6em 0 0;
	font-size: .75rem;
	color: #6b7280;
}

/* Upload drag & drop */
.pcc-upload { margin: 1.5em auto; max-width: 560px; }
.pcc-dropzone {
	position: relative;
	border: 2px dashed #cbd5e1;
	border-radius: 16px;
	background: linear-gradient(180deg, #fbfcfe 0%, #f6f8fb 100%);
	padding: 2.2em 1.4em;
	text-align: center;
	cursor: pointer;
	transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}
.pcc-dropzone:hover {
	border-color: #2563eb;
	background: #f5f8ff;
	box-shadow: 0 6px 20px -12px rgba(37, 99, 235, .5);
}
.pcc-dropzone:focus-visible { outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, .2); }
.pcc-dropzone.is-dragover {
	border-color: #2563eb;
	border-style: solid;
	background: #eaf1ff;
	transform: scale(1.01);
}
.pcc-dropzone.has-file { border-style: solid; border-color: #1f9d57; background: #f1fbf5; }
.pcc-dropzone.has-error { border-style: solid; border-color: #d63638; background: #fdf4f4; }
.pcc-dropzone input[type="file"] { display: none; }

.pcc-dz-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	margin-bottom: .5em;
	font-size: 1.6em;
	line-height: 1;
	background: #eef4ff;
	color: #2563eb;
	border-radius: 50%;
	transition: transform .18s ease, background .18s ease;
}
.pcc-dropzone:hover .pcc-dz-icon { transform: translateY(-2px); }
.pcc-dropzone.has-file .pcc-dz-icon { background: #e3f7ec; }
.pcc-dropzone.has-error .pcc-dz-icon { background: #fbe5e5; }
.pcc-dz-title { font-weight: 700; font-size: 1.05em; margin: 0 0 .2em; color: #111827; }
.pcc-dz-hint { color: #6b7280; font-size: .9em; }
.pcc-dz-status { margin-top: .7em; font-weight: 600; }
.pcc-dz-status.ok { color: #1f9d57; }
.pcc-dz-status.err { color: #d63638; }

.pcc-dz-progress {
	height: 8px;
	background: #e5e7eb;
	border-radius: 999px;
	overflow: hidden;
	margin: .8em auto 0;
	max-width: 320px;
	display: none;
}
.pcc-dz-progress.is-active { display: block; }
.pcc-dz-bar {
	height: 100%;
	width: 0;
	background: linear-gradient(90deg, #2563eb, #4f86ff);
	border-radius: 999px;
	transition: width .2s ease;
}

/* Écran de chargement « qui travaille » */
.pcc-dropzone.is-loading { cursor: progress; border-color: #2563eb; background: #f5f8ff; }
.pcc-loading {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: .5em;
	padding: 1em;
	text-align: center;
}
.pcc-loading[hidden] { display: none; }
.pcc-loading-spinner { font-size: 2em; color: #2563eb; }
.pcc-loading-text { font-weight: 700; color: #111827; margin: 0; min-height: 1.4em; }

/* Cartes des fichiers uploadés (recto/verso) */
.pcc-files { margin-top: .8em; display: flex; flex-direction: column; gap: .6em; }
.pcc-file {
	display: flex;
	align-items: stretch;
	gap: .8em;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	background: #fff;
	padding: .6em;
}
.pcc-file-preview {
	flex: none;
	width: 84px;
	height: 110px;
	border-radius: 8px;
	overflow: hidden;
	background: #f3f4f6;
	border: 1px solid #e5e7eb;
}
.pcc-file-preview object { width: 100%; height: 100%; border: 0; pointer-events: none; }
.pcc-file-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pcc-file-info { flex: 1; min-width: 0; }
.pcc-file-name { font-weight: 600; color: #111827; display: flex; align-items: center; gap: .4em; flex-wrap: wrap; }
.pcc-ico-pdf { color: #64748b; }
.pcc-ico-img { color: #2563eb; }
.pcc-file-badge { background: #eef2f7; color: #475569; font-size: .72em; font-weight: 700; padding: .1em .55em; border-radius: 999px; text-transform: uppercase; letter-spacing: .02em; }
.pcc-file-badge.side { background: #e8eefe; color: #2543b8; }
.pcc-file-badge.low { background: #fef3c7; color: #b45309; }

/* Drag & drop des faces */
.pcc-file[draggable="true"] { cursor: grab; }
.pcc-file.is-dragging { opacity: .5; }
.pcc-file.is-dragover-card { border-color: #2563eb; box-shadow: 0 0 0 2px rgba(37, 99, 235, .25); }
.pcc-file-msgs { list-style: none; margin: .4em 0 0; padding: 0; }
.pcc-file-msgs li { font-size: .82em; margin: .15em 0; }
.pcc-file-msgs li i { width: 1.2em; }
.pcc-file-remove {
	flex: none; align-self: flex-start; margin-left: auto;
	background: none; border: none; cursor: pointer;
	color: #9ca3af; font-size: 1.1em; padding: .2em .35em;
}
.pcc-file-remove:hover { color: #d63638; }

.pcc-msg-ok { color: #1f7a47; }
.pcc-msg-warning { color: #b45309; }
.pcc-msg-error { color: #d63638; }
.pcc-msg-info { color: #6b7280; }

/* Statut de l'ensemble (recto + verso) */
.pcc-set-status { margin: .6em 0 0; font-size: .92em; font-weight: 600; }
.pcc-set-status.is-ok { color: #1f9d57; }
.pcc-set-status.is-pending { color: #b45309; }
.pcc-set-status.is-error { color: #d63638; }

/* Case de responsabilité qualité */
.pcc-ack {
	display: flex;
	align-items: flex-start;
	gap: .5em;
	margin: .7em 0 0;
	padding: .7em .9em;
	background: #fffbeb;
	border: 1px solid #fde68a;
	border-radius: 10px;
	font-size: .88em;
	color: #92400e;
	cursor: pointer;
}
.pcc-ack[hidden] { display: none; }
.pcc-ack input { margin-top: .2em; }

/* Toggles accolés (spécifications + description) */
.pcc-toggles {
	margin-top: 1em;
	display: flex;
	flex-wrap: wrap;
	gap: .4em 1.2em;
	align-items: flex-start;
}
.pcc-toggle { flex: 1 1 240px; min-width: 220px; }
.pcc-single-page .pcc-app .pcc-toggle-summary {
	display: inline-flex;
	align-items: center;
	gap: .5em;
	background: none;
	border: none;
	padding: .3em 0;
	font-size: .95em;
	font-weight: 600;
	color: #2563eb;
	cursor: pointer;
}
.pcc-toggle-chevron { transition: transform .18s ease; font-size: .8em; }
.pcc-single-page .pcc-app .pcc-toggle-summary.is-open .pcc-toggle-chevron { transform: rotate(90deg); }
.pcc-toggle-body {
	margin-top: .5em;
	padding: .8em 1em;
	background: #f8fafc;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	font-size: .88em;
	color: #374151;
}
.pcc-toggle-body[hidden] { display: none; }
.pcc-toggle-body p { margin: 0 0 .5em; }
.pcc-toggle-body p:last-child { margin-bottom: 0; }
.pcc-specs-list { list-style: none; margin: 0; padding: 0; }
.pcc-specs-list li { margin: .3em 0; }
.pcc-specs-list li i { width: 1.3em; color: #6b7280; }
.pcc-specs-template { margin: .6em 0 0; }

.pcc-specs {
	margin: .8em 0 0;
	padding: .8em 1em;
	background: #f8fafc;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	font-size: .85em;
	color: #374151;
}
.pcc-specs ul { margin: .3em 0 0; padding-left: 1.2em; }
.pcc-specs li { margin: .15em 0; }
.pcc-specs a { font-weight: 600; }
