/* CLECOD · Mon espace · écran 18 « Devis à accepter » (module quote, vue devis).
   Theme HighRev: square corners, uppercase titles, red #E20100. Every rule is scoped to .cc-mod--quote. */

.clecod-client-space .cc-mod--quote {
	max-width: 720px;
	margin: 0 auto;
	color: #111;
	font-family: Archivo, system-ui, sans-serif;
	line-height: 1.5;
}

.clecod-client-space .cc-mod--quote .cq-i {
	flex-shrink: 0;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* ---------- App bar (back + call): the call button only on phones ---------- */
.clecod-client-space .cc-mod--quote .cq-appbar {
	display: flex;
	align-items: center;
}

.clecod-client-space .cc-mod--quote .cq-call {
	display: none;
}

/* ---------- Picture of the item ---------- */
.clecod-client-space .cc-mod--quote .cq-hero {
	position: relative;
	margin: 0;
	background: #0c0e12;
}

.clecod-client-space .cc-mod--quote .cq-hero img {
	display: block;
	width: 100%;
	height: 260px;
	object-fit: cover;
	object-position: 55% 70%;
}

.clecod-client-space .cc-mod--quote .cq-hero figcaption {
	position: absolute;
	left: 20px;
	bottom: 0;
	max-width: calc(100% - 40px);
	padding: 8px 12px;
	background: #111;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

/* ---------- Heading ---------- */
.clecod-client-space .cc-mod--quote .cq-head {
	padding: 20px 0 16px;
}

.clecod-client-space .cc-mod--quote .cq-over {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0;
}

.clecod-client-space .cc-mod--quote .cq-over > span:first-child {
	min-width: 0;
	color: #e20100;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	overflow-wrap: anywhere;
}

.clecod-client-space .cc-mod--quote .cq-pill {
	flex-shrink: 0;
	padding: 3px 7px;
	border: 1px solid #e20100;
	color: #e20100;
	font-size: 10px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.clecod-client-space .cc-mod--quote .cq-pill--ok {
	border-color: #bfdcc8;
	background: #edf7f0;
	color: #256039;
}

.clecod-client-space .cc-mod--quote .cq-pill--off {
	border-color: #d9d9d9;
	background: #f4f4f4;
	color: #595959;
}

.clecod-client-space .cc-mod--quote .cq-title {
	margin: 8px 0 0;
	color: #111;
	font-size: 29px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.035em;
	text-transform: uppercase;
	overflow-wrap: anywhere;
}

.clecod-client-space .cc-mod--quote .cq-version {
	margin: 8px 0 0;
	color: #686868;
	font-size: 14px;
	line-height: 1.45;
}

/* ---------- Messages ---------- */
.clecod-client-space .cc-mod--quote .cq-ok,
.clecod-client-space .cc-mod--quote .cq-warn {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0 0 14px;
	padding: 12px 14px;
	font-size: 14px;
	line-height: 1.45;
}

.clecod-client-space .cc-mod--quote .cq-ok {
	border: 1px solid #bfdcc8;
	background: #edf7f0;
	color: #256039;
	font-weight: 600;
}

.clecod-client-space .cc-mod--quote .cq-ok .cq-i {
	stroke-width: 2.6;
	margin-top: 1px;
}

.clecod-client-space .cc-mod--quote .cq-warn {
	border: 1px solid #e2e2e2;
	border-left: 3px solid #e20100;
	background: #f4f4f4;
	color: #111;
}

.clecod-client-space .cc-mod--quote .cq-error {
	margin: 0;
	color: #c40000;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.45;
}

.clecod-client-space .cc-mod--quote .cq-error:empty {
	display: none;
}

/* ---------- The next step, once accepted ---------- */
.clecod-client-space .cc-mod--quote .cq-next {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0 0 18px;
	padding: 16px;
	border: 1px solid #e2e2e2;
	border-top: 3px solid #e20100;
}

.clecod-client-space .cc-mod--quote .cq-hand {
	margin: 0;
	color: #e20100;
	font-family: 'Indie Flower', cursive;
	font-size: 22px;
	line-height: 1.1;
}

.clecod-client-space .cc-mod--quote .cq-label {
	margin: 0;
	color: #686868;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.clecod-client-space .cc-mod--quote .cq-next h3 {
	margin: 6px 0 0;
	color: #111;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: -0.03em;
	text-transform: uppercase;
}

.clecod-client-space .cc-mod--quote .cq-progress {
	display: grid;
	grid-auto-columns: minmax(0, 1fr);
	grid-auto-flow: column;
	gap: 3px;
}

.clecod-client-space .cc-mod--quote .cq-progress span {
	height: 5px;
	background: #d5d5d5;
}

.clecod-client-space .cc-mod--quote .cq-progress span.is-done {
	background: #e20100;
}

.clecod-client-space .cc-mod--quote .cq-next__text {
	margin: 0;
	color: #3a3a3a;
	font-size: 14px;
	line-height: 1.5;
}

/* ---------- Amount, delay, place, payment ---------- */
.clecod-client-space .cc-mod--quote .cq-amount {
	border: 1px solid #e2e2e2;
	background: #f4f4f4;
}

.clecod-client-space .cc-mod--quote .cq-amount__top {
	padding: 16px 16px 14px;
}

.clecod-client-space .cc-mod--quote .cq-amount__value {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 8px;
	margin: 6px 0 0;
}

.clecod-client-space .cc-mod--quote .cq-amount__value strong {
	font-size: 40px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.04em;
}

.clecod-client-space .cc-mod--quote .cq-amount__value span {
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.04em;
}

.clecod-client-space .cc-mod--quote .cq-facts {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin: 0;
	border-top: 1px solid #dcdcdc;
}

.clecod-client-space .cc-mod--quote .cq-facts > div {
	padding: 12px 16px;
}

.clecod-client-space .cc-mod--quote .cq-facts > div:first-child {
	border-right: 1px solid #dcdcdc;
}

.clecod-client-space .cc-mod--quote .cq-facts > .cq-facts__wide {
	grid-column: 1 / -1;
	border-top: 1px solid #dcdcdc;
}

.clecod-client-space .cc-mod--quote .cq-facts dt {
	color: #686868;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.clecod-client-space .cc-mod--quote .cq-facts dd {
	margin: 4px 0 0;
	color: #111;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.35;
}

.clecod-client-space .cc-mod--quote .cq-facts dd small {
	display: block;
	margin-top: 2px;
	color: #595959;
	font-size: 13px;
	font-weight: 400;
}

/* ---------- Sections ---------- */
.clecod-client-space .cc-mod--quote .cq-sec {
	margin: 28px 0 0;
}

.clecod-client-space .cc-mod--quote .cq-sec::before {
	content: '';
	display: block;
	width: 55px;
	height: 4px;
	background: #e20100;
}

.clecod-client-space .cc-mod--quote .cq-sec h3 {
	margin: 14px 0 10px;
	color: #111;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: -0.03em;
	text-transform: uppercase;
}

.clecod-client-space .cc-mod--quote .cq-sec > p {
	margin: 0;
	color: #3a3a3a;
	font-size: 15px;
	line-height: 1.55;
	white-space: pre-line;
}

.clecod-client-space .cc-mod--quote .cq-lines {
	margin: -6px 0 0;
	padding: 0;
	list-style: none;
}

.clecod-client-space .cc-mod--quote .cq-lines li {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin: 0;
	padding: 14px 0;
	border-bottom: 1px solid #e2e2e2;
}

.clecod-client-space .cc-mod--quote .cq-lines li:last-child {
	border-bottom: 0;
}

.clecod-client-space .cc-mod--quote .cq-lines li > span {
	min-width: 0;
}

.clecod-client-space .cc-mod--quote .cq-lines li > span strong {
	display: block;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.35;
}

.clecod-client-space .cc-mod--quote .cq-lines small {
	display: block;
	margin-top: 3px;
	color: #686868;
	font-size: 13px;
}

.clecod-client-space .cc-mod--quote .cq-lines li > strong {
	flex-shrink: 0;
	font-size: 15px;
	font-weight: 700;
	white-space: nowrap;
}

.clecod-client-space .cc-mod--quote .cq-lines__total {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin: 0;
	padding: 14px 0 0;
	border-top: 2px solid #111;
}

.clecod-client-space .cc-mod--quote .cq-lines__total span {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.clecod-client-space .cc-mod--quote .cq-lines__total strong {
	font-size: 20px;
	font-weight: 700;
	letter-spacing: -0.02em;
	white-space: nowrap;
}

.clecod-client-space .cc-mod--quote .cq-note {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 22px 0 0;
	padding: 14px 16px;
	background: #f4f4f4;
	color: #3a3a3a;
}

.clecod-client-space .cc-mod--quote .cq-note .cq-i {
	color: #111;
}

.clecod-client-space .cc-mod--quote .cq-note p {
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
}

.clecod-client-space .cc-mod--quote button.cq-inline {
	display: inline;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: #c40000;
	font-size: inherit;
	font-weight: 700;
	line-height: inherit;
	letter-spacing: 0;
	text-decoration: underline;
	text-transform: none;
}

.clecod-client-space .cc-mod--quote button.cq-inline:hover {
	background: transparent;
	color: #111;
}

/* ---------- Buttons ---------- */
.clecod-client-space .cc-mod--quote .cq-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 52px;
	margin: 0;
	padding: 6px 12px;
	border: 1px solid transparent;
	border-radius: 0;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.05em;
	text-align: center;
	text-transform: uppercase;
	box-shadow: none;
}

.clecod-client-space .cc-mod--quote .cq-btn--red {
	border-color: #e20100;
	background: #e20100;
	color: #fff;
}

.clecod-client-space .cc-mod--quote .cq-btn--red:hover {
	border-color: #b00100;
	background: #b00100;
	color: #fff;
}

.clecod-client-space .cc-mod--quote .cq-btn--ghost {
	border-color: #111;
	background: #fff;
	color: #111;
}

.clecod-client-space .cc-mod--quote .cq-btn--ghost:hover {
	background: #111;
	color: #fff;
}

.clecod-client-space .cc-mod--quote .cq-btn--dark {
	border-color: #111;
	background: #111;
	color: #fff;
}

.clecod-client-space .cc-mod--quote .cq-btn--dark:hover {
	border-color: #e20100;
	background: #e20100;
}

.clecod-client-space .cc-mod--quote .cq-btn:focus-visible {
	outline: 2px solid #e20100;
	outline-offset: 2px;
}

.clecod-client-space .cc-mod--quote .cq-btn[disabled] {
	opacity: 0.7;
	cursor: wait;
}

.clecod-client-space .cc-mod--quote .cq-sum {
	white-space: nowrap;
}

/* ---------- Action bar: end of the column on large screens, fixed at the bottom on phones ---------- */
.clecod-client-space .cc-mod--quote .cq-bar {
	position: sticky;
	bottom: 0;
	z-index: 20;
	margin: 28px 0 0;
	padding: 12px 0;
	border-top: 1px solid #e2e2e2;
	background: #fff;
}

.clecod-client-space .cc-mod--quote .cq-bar > .cq-btn {
	width: 100%;
	font-size: 13px;
	letter-spacing: 0.04em;
}

.clecod-client-space .cc-mod--quote .cq-bar--two {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
}

/* ---------- Empty states ---------- */
.clecod-client-space .cc-mod--quote .cq-empty {
	padding: 28px 0 8px;
}

.clecod-client-space .cc-mod--quote .cq-bar55 {
	display: block;
	width: 55px;
	height: 4px;
	background: #e20100;
}

.clecod-client-space .cc-mod--quote .cq-empty .cq-title {
	margin-top: 14px;
	font-size: 24px;
}

.clecod-client-space .cc-mod--quote .cq-empty p {
	margin: 12px 0 0;
	color: #3a3a3a;
	font-size: 15px;
	line-height: 1.55;
}

.clecod-client-space .cc-mod--quote .cq-empty__actions {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 22px;
}

/* ---------- Confirmation sheet ---------- */
html:has(.cc-mod--quote .cq-sheet) {
	overflow: hidden;
}

.clecod-client-space .cc-mod--quote .cq-sheet {
	position: fixed;
	inset: 0;
	z-index: 100000;
}

.clecod-client-space .cc-mod--quote .cq-sheet__scrim {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	min-height: 0;
	padding: 0;
	border: 0;
	background: rgba(12, 14, 18, 0.6);
	cursor: pointer;
}

.clecod-client-space .cc-mod--quote .cq-sheet__scrim:hover {
	background: rgba(12, 14, 18, 0.6);
}

.clecod-client-space .cc-mod--quote .cq-sheet__panel {
	position: absolute;
	top: 50%;
	left: 50%;
	display: flex;
	flex-direction: column;
	gap: 16px;
	width: min(560px, calc(100vw - 32px));
	max-height: calc(100vh - 48px);
	padding: 22px 24px 24px;
	overflow-y: auto;
	border-top: 4px solid #e20100;
	background: #fff;
	color: #111;
	transform: translate(-50%, -50%);
	overscroll-behavior: contain;
}

.clecod-client-space .cc-mod--quote .cq-sheet__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}

.clecod-client-space .cc-mod--quote .cq-sheet__head .cq-over > span:first-child {
	color: #e20100;
}

.clecod-client-space .cc-mod--quote .cq-sheet__head h2 {
	margin: 8px 0 0;
	color: #111;
	font-size: 24px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.035em;
	text-transform: uppercase;
}

.clecod-client-space .cc-mod--quote button.cq-sheet__close {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	min-height: 44px;
	margin: -6px -10px 0 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: #111;
}

.clecod-client-space .cc-mod--quote button.cq-sheet__close:hover {
	background: #f4f4f4;
}

.clecod-client-space .cc-mod--quote .cq-sheet__sum {
	border: 1px solid #e2e2e2;
	background: #f4f4f4;
}

.clecod-client-space .cc-mod--quote .cq-sheet__sum p {
	margin: 0;
}

.clecod-client-space .cc-mod--quote .cq-sheet__what {
	padding: 12px 16px;
	border-bottom: 1px solid #dcdcdc;
	font-size: 14px;
	line-height: 1.4;
}

.clecod-client-space .cc-mod--quote .cq-sheet__what strong {
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.clecod-client-space .cc-mod--quote .cq-sheet__what span {
	color: #595959;
}

.clecod-client-space .cc-mod--quote .cq-sheet__total {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 16px;
}

.clecod-client-space .cc-mod--quote .cq-sheet__total strong {
	font-size: 26px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.03em;
	white-space: nowrap;
}

.clecod-client-space .cc-mod--quote .cq-sheet__settle {
	padding: 0 16px 12px;
	color: #595959;
	font-size: 13px;
}

.clecod-client-space .cc-mod--quote .cq-consent {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 0;
	padding: 14px 16px;
	border: 1px solid #d9d9d9;
	color: #111;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.5;
	letter-spacing: 0;
	text-transform: none;
	cursor: pointer;
}

.clecod-client-space .cc-mod--quote .cq-consent.is-error {
	padding: 13px 15px;
	border: 2px solid #e20100;
}

.clecod-client-space .cc-mod--quote .cq-consent__box {
	position: relative;
	flex-shrink: 0;
	width: 24px;
	height: 24px;
}

.clecod-client-space .cc-mod--quote .cq-consent__box input {
	position: absolute;
	inset: 0;
	width: 24px;
	height: 24px;
	min-height: 0;
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	border: 2px solid #111;
	border-radius: 0;
	background: #fff;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
}

.clecod-client-space .cc-mod--quote .cq-consent__box input:checked {
	background: #111;
}

.clecod-client-space .cc-mod--quote .cq-consent__box input:focus-visible {
	outline: 2px solid #e20100;
	outline-offset: 2px;
}

.clecod-client-space .cc-mod--quote .cq-consent__box .cq-i {
	position: absolute;
	top: 4px;
	left: 4px;
	width: 16px;
	height: 16px;
	color: transparent;
	stroke-width: 3;
	pointer-events: none;
}

.clecod-client-space .cc-mod--quote .cq-consent__box input:checked + .cq-i {
	color: #fff;
}

.clecod-client-space .cc-mod--quote .cq-sheet__after {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0;
	color: #3a3a3a;
	font-size: 13px;
	line-height: 1.5;
}

.clecod-client-space .cc-mod--quote .cq-sheet__after .cq-i {
	color: #111;
}

.clecod-client-space .cc-mod--quote .cq-sheet__actions {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.clecod-client-space .cc-mod--quote .cq-sheet__actions .cq-btn--red {
	font-size: 13px;
	letter-spacing: 0.04em;
}

.clecod-client-space .cc-mod--quote .cq-sheet__actions .cq-btn--ghost {
	min-height: 50px;
}

/* ---------- Phones ---------- */
@media (max-width: 768px) {
	/* Red app bar of the mockup: back to the request + call the workshop. */
	body.cc-view-sub .clecod-client-space .cc-mod--quote .cq-appbar {
		position: sticky;
		top: 0;
		z-index: 60;
		width: calc(100% + 36px);
		min-height: 60px;
		margin: 0 -18px;
		padding: 0 6px 0 0;
		background: #e20100;
	}

	body.cc-view-sub .clecod-client-space .cc-mod--quote .cq-appbar button.cc-back {
		position: static;
		flex: 1;
		width: auto;
		min-width: 0;
		margin: 0;
	}

	.clecod-client-space .cc-mod--quote .cq-call {
		display: flex;
		align-items: center;
		justify-content: center;
		flex-shrink: 0;
		width: 44px;
		height: 44px;
		color: #fff;
	}

	.clecod-client-space .cc-mod--quote .cq-call:hover,
	.clecod-client-space .cc-mod--quote .cq-call:focus-visible {
		color: #fff;
		background: rgba(0, 0, 0, 0.12);
	}

	.clecod-client-space .cc-mod--quote .cq-call:focus-visible {
		outline: 2px solid #fff;
		outline-offset: -4px;
	}

	.clecod-client-space .cc-mod--quote .cq-hero {
		margin: 0 -18px;
	}

	.clecod-client-space .cc-mod--quote .cq-hero img {
		height: 176px;
	}

	.clecod-client-space .cc-mod--quote .cq-hero figcaption {
		left: 18px;
	}

	.clecod-client-space .cc-mod--quote .cq {
		padding-bottom: 28px;
	}

	/* The quote's own action bar replaces the site tab bar. */
	body[data-cc-view="devis"]:has(.cc-mod--quote .cq-bar) .clecod-tabbar {
		display: none !important;
	}

	html body.clecod-client-space-page[data-cc-view="devis"]:has(.cc-mod--quote .cq-bar) {
		padding-bottom: calc(90px + env(safe-area-inset-bottom, 0px));
	}

	.clecod-client-space .cc-mod--quote .cq-bar {
		position: fixed;
		right: 0;
		bottom: 0;
		left: 0;
		z-index: 120;
		margin: 0;
		padding: 12px 20px calc(16px + env(safe-area-inset-bottom, 0px));
	}

	/* « Accepter le devis » over its total, on two lines. */
	.clecod-client-space .cc-mod--quote .cq-bar--two .cq-btn--red {
		flex-direction: column;
		gap: 2px;
	}

	.clecod-client-space .cc-mod--quote .cq-bar--two .cq-sep {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
	}

	.clecod-client-space .cc-mod--quote .cq-bar--two .cq-sum {
		font-size: 14px;
		letter-spacing: 0.02em;
	}

	/* The confirmation is a bottom sheet. */
	.clecod-client-space .cc-mod--quote .cq-sheet__panel {
		top: auto;
		right: 0;
		bottom: 0;
		left: 0;
		width: auto;
		max-height: calc(100% - 24px);
		padding: 18px 20px calc(26px + env(safe-area-inset-bottom, 0px));
		transform: none;
	}

	.clecod-client-space .cc-mod--quote .cq-empty__actions {
		margin-top: 26px;
	}
}

@media (prefers-reduced-motion: no-preference) and (max-width: 768px) {
	.clecod-client-space .cc-mod--quote .cq-sheet.is-enter .cq-sheet__panel {
		animation: cq-rise 200ms ease-out;
	}

	@keyframes cq-rise {
		from { transform: translateY(24px); opacity: 0.4; }
		to { transform: none; opacity: 1; }
	}
}
