/**
 * Woo Product Customizer — customisation cart, floating button and toast.
 */

:root {
	--wpc-q-border: #e2e2e2;
	--wpc-q-muted: #6b6b6b;
	--wpc-q-accent: #2f6f4f;
	--wpc-q-warn: #d98324;
	--wpc-q-warn-bg: #fdf6ec;
	--wpc-q-bg: #fafafa;
}

/* ------------------------------------------------------- Floating button */

.wpc-fab {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 9990;
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 12px 18px;
	border-radius: 999px;
	background: var(--wpc-q-accent);
	color: #fff !important;
	text-decoration: none !important;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
	transition: transform 0.18s ease, opacity 0.18s ease;
}

.wpc-fab:hover {
	transform: translateY(-2px);
	color: #fff !important;
}

.wpc-fab.is-empty {
	display: none;
}

.wpc-fab.is-bumped {
	animation: wpc-bump 0.6s ease;
}

@keyframes wpc-bump {
	0%, 100% { transform: scale(1); }
	30%      { transform: scale(1.12); }
}

.wpc-fab__icon {
	font-size: 16px;
}

.wpc-fab__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	border-radius: 999px;
	background: #fff;
	color: var(--wpc-q-accent);
	font-size: 12px;
	font-weight: 700;
}

@media (max-width: 600px) {
	.wpc-fab__label {
		display: none;
	}

	.wpc-fab {
		padding: 14px;
		right: 14px;
		bottom: 14px;
	}
}

/* ---------------------------------------------------------------- Toast */

.wpc-toast {
	position: fixed;
	left: 50%;
	bottom: 28px;
	z-index: 9995;
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 13px 20px;
	border-radius: 8px;
	background: #1f2421;
	color: #fff;
	font-size: 14px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
	transform: translate(-50%, 20px);
	opacity: 0;
	transition: transform 0.3s ease, opacity 0.3s ease;
	max-width: calc(100vw - 32px);
}

.wpc-toast.is-in {
	transform: translate(-50%, 0);
	opacity: 1;
}

.wpc-toast__link {
	color: #9fe0bd !important;
	font-weight: 700;
	text-decoration: underline !important;
	white-space: nowrap;
}

/* ------------------------------------------------------------ Cart page */

.wpc-quote-cart {
	max-width: 960px;
	margin: 0 auto;
}

.wpc-warning {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	padding: 16px 18px;
	margin: 0 0 26px;
	border: 1px solid #f0d6ae;
	border-left: 5px solid var(--wpc-q-warn);
	border-radius: 6px;
	background: var(--wpc-q-warn-bg);
}

.wpc-warning__icon {
	flex: 0 0 26px;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--wpc-q-warn);
	color: #fff;
	font-weight: 800;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

.wpc-warning strong {
	display: block;
	margin-bottom: 4px;
	font-size: 15px;
}

.wpc-warning p {
	margin: 0;
	font-size: 14px;
	line-height: 1.6;
	color: #5c4a30;
}

/* Items */

.wpc-quote-item {
	display: grid;
	grid-template-columns: 96px minmax(0, 1fr) 200px;
	gap: 18px;
	padding: 18px 0;
	border-bottom: 1px solid var(--wpc-q-border);
	align-items: start;
}

.wpc-quote-item.is-busy {
	opacity: 0.5;
	pointer-events: none;
}

.wpc-quote-item__media img {
	width: 96px;
	height: 96px;
	object-fit: cover;
	border-radius: 6px;
	border: 1px solid var(--wpc-q-border);
	background: var(--wpc-q-bg);
}

.wpc-quote-item__name {
	margin: 0 0 8px;
	font-size: 16px;
}

.wpc-quote-item__specs {
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 13.5px;
	line-height: 1.7;
}

.wpc-quote-item__specs li {
	display: flex;
	gap: 8px;
}

.wpc-spec-key {
	color: var(--wpc-q-muted);
	min-width: 130px;
	flex: 0 0 auto;
}

.wpc-spec-value {
	font-weight: 600;
	word-break: break-word;
}

.wpc-quote-item__actions {
	text-align: right;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 8px;
}

.wpc-qty {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--wpc-q-muted);
}

.wpc-qty input {
	width: 68px;
	padding: 6px 8px;
	border: 1px solid var(--wpc-q-border);
	border-radius: 5px;
	text-align: center;
	font: inherit;
}

.wpc-quote-item__price {
	font-size: 16px;
	font-weight: 700;
}

.wpc-approx {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--wpc-q-warn);
	display: block;
}

.wpc-quote-remove {
	background: none;
	border: 0;
	padding: 0;
	font-size: 13px;
	color: #b3261e;
	text-decoration: underline;
	cursor: pointer;
}

.wpc-quote-total {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	padding: 18px 0;
	font-size: 18px;
	font-weight: 700;
	border-bottom: 2px solid #1f2421;
	margin-bottom: 30px;
}

/* Submit form */

.wpc-quote-form h2 {
	margin: 0 0 6px;
	font-size: 20px;
}

.wpc-quote-form__intro {
	margin: 0 0 18px;
	color: var(--wpc-q-muted);
	font-size: 14px;
}

.wpc-quote-form__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 14px;
	margin-bottom: 14px;
}

.wpc-field {
	display: block;
	margin-bottom: 14px;
}

.wpc-field > span {
	display: block;
	margin-bottom: 5px;
	font-size: 13px;
	font-weight: 600;
}

.wpc-field input,
.wpc-field textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--wpc-q-border);
	border-radius: 6px;
	font: inherit;
	background: #fff;
}

.wpc-quote-form__promise {
	padding: 14px 16px;
	margin: 6px 0 20px;
	background: var(--wpc-q-bg);
	border-radius: 6px;
	border-left: 4px solid var(--wpc-q-accent);
}

.wpc-quote-form__promise p {
	margin: 0;
	font-size: 13.5px;
	line-height: 1.65;
}

.wpc-btn {
	display: inline-block;
	padding: 14px 28px;
	border: 0;
	border-radius: 6px;
	background: #1f2421;
	color: #fff !important;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	text-decoration: none !important;
}

.wpc-btn--primary {
	background: var(--wpc-q-accent);
	width: 100%;
}

.wpc-btn.is-busy {
	opacity: 0.6;
	cursor: wait;
}

/* Empty and thank-you states */

.wpc-quote-empty,
.wpc-quote-thanks {
	text-align: center;
	padding: 50px 20px;
}

.wpc-quote-empty h2,
.wpc-quote-thanks h2 {
	margin: 0 0 10px;
}

.wpc-thanks__tick {
	width: 62px;
	height: 62px;
	margin: 0 auto 18px;
	border-radius: 50%;
	background: var(--wpc-q-accent);
	color: #fff;
	font-size: 32px;
	line-height: 62px;
}

.wpc-thanks__ref {
	font-size: 15px;
	color: var(--wpc-q-muted);
}

.wpc-thanks__next {
	max-width: 560px;
	margin: 18px auto;
	padding: 16px;
	background: var(--wpc-q-warn-bg);
	border-radius: 6px;
	line-height: 1.65;
}

.wpc-thanks__total {
	font-size: 16px;
}

@media (max-width: 720px) {
	.wpc-quote-item {
		grid-template-columns: 72px minmax(0, 1fr);
	}

	.wpc-quote-item__media img {
		width: 72px;
		height: 72px;
	}

	.wpc-quote-item__actions {
		grid-column: 1 / -1;
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}

	.wpc-spec-key {
		min-width: 100px;
	}
}

.wpc-customised-flag {
	display: inline-block;
	margin: 0 0 8px;
	padding: 2px 10px;
	border-radius: 999px;
	background: #e4f0e9;
	color: #1c6b3c;
	font-size: 12px;
	font-weight: 700;
}

.wpc-quote-form__sub {
	margin: 24px 0 12px;
	font-size: 16px;
	padding-top: 16px;
	border-top: 1px solid var(--wpc-q-border);
}

.wpc-errors {
	margin: 0 0 22px;
	padding: 14px 18px;
	border: 1px solid #f0c2c2;
	border-left: 5px solid #b3261e;
	border-radius: 6px;
	background: #fdf0f0;
}

.wpc-errors p {
	margin: 0 0 6px;
	color: #8a1f1f;
	font-size: 14px;
	font-weight: 600;
}

.wpc-errors p:last-child {
	margin-bottom: 0;
}
