/* PaintSuper Contact - floating widget */
.psc-widget {
	--psc-primary: #1F3A5F;
	--psc-primary-2: #2E5C8A;
	--psc-accent: #6EC5E9;
	position: fixed;
	right: 22px;
	bottom: 22px;
	z-index: 99990;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Launcher button */
.psc-widget-btn {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	background: linear-gradient(135deg, var(--psc-primary), var(--psc-primary-2));
	color: #fff;
	border: none;
	border-radius: 999px;
	padding: 13px 22px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 10px 28px rgba(31, 58, 95, .35);
	transition: transform .12s ease, box-shadow .12s ease;
}
.psc-widget-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 16px 34px rgba(31, 58, 95, .42);
}
.psc-widget-btn-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .18);
	font-size: 15px;
	line-height: 1;
}
/* Hide the launcher only while the panel is open. */
.psc-widget.is-open .psc-widget-btn { display: none; }

/* Panel: hidden by default, shown only when the widget is open. This avoids
   the [hidden] attribute being overridden by an author display rule. */
.psc-widget-panel,
.psc-widget-panel[hidden] {
	display: none;
}
.psc-widget.is-open .psc-widget-panel {
	display: flex;
}
.psc-widget-panel {
	position: absolute;
	right: 0;
	bottom: 0;
	width: 360px;
	max-width: calc(100vw - 32px);
	max-height: calc(100vh - 60px);
	flex-direction: column;
	background: #fff;
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 20px 54px rgba(20, 33, 56, .26);
	animation: psc-pop .18s ease;
}
@keyframes psc-pop {
	from { opacity: 0; transform: translateY(12px) scale(.98); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Header with gradient + accent underline */
.psc-widget-head {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 20px;
	background: linear-gradient(135deg, var(--psc-primary), var(--psc-primary-2));
	color: #fff;
}
.psc-widget-head::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--psc-accent), #a7e0f4);
}
.psc-widget-title { font-size: 16px; font-weight: 700; letter-spacing: .01em; margin-right: 12px; }
.psc-widget-close {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, .16);
	border: none;
	color: #fff;
	width: 30px;
	height: 30px;
	padding: 0;
	border-radius: 50%;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	transition: background .12s ease;
}
.psc-widget-close:hover { background: rgba(255, 255, 255, .3); }

.psc-widget-body {
	padding: 20px;
	overflow-y: auto;
	background:
		radial-gradient(120% 70% at 100% 0%, rgba(110, 197, 233, .10), transparent 60%),
		#ffffff;
}
.psc-widget-intro {
	margin: 0 0 16px;
	font-size: 14px;
	line-height: 1.55;
	color: #4a525d;
	background: #f3f8fc;
	border-left: 3px solid var(--psc-accent);
	border-radius: 8px;
	padding: 12px 14px;
}

/* Inputs inside the widget keep the shared .psc-form styling but pick up the
   widget accent. */
.psc-widget .psc-submit {
	width: 100%;
	background: linear-gradient(135deg, var(--psc-primary), var(--psc-primary-2));
}

/* Step 1: pre-sale / after-sale chooser */
.psc-choose-title {
	margin: 4px 0 12px;
	font-size: 13px;
	font-weight: 700;
	color: var(--psc-primary);
	text-transform: uppercase;
	letter-spacing: .04em;
}
.psc-choose {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.psc-choose-btn {
	display: flex;
	align-items: center;
	gap: 14px;
	width: 100%;
	text-align: left;
	background: #fff;
	border: 1px solid #e1e7ef;
	border-radius: 14px;
	padding: 14px 16px;
	cursor: pointer;
	transition: border-color .12s ease, box-shadow .12s ease, transform .06s ease;
}
.psc-choose-btn:hover {
	border-color: var(--psc-accent);
	box-shadow: 0 8px 22px rgba(31, 58, 95, .12);
	transform: translateY(-1px);
}
.psc-choose-ic {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 12px;
	font-size: 20px;
}
.psc-choose-ic-presale {
	background: rgba(110, 197, 233, .18);
}
.psc-choose-ic-aftersale {
	background: rgba(31, 58, 95, .10);
}
.psc-choose-txt { display: flex; flex-direction: column; gap: 2px; }
.psc-choose-label { font-size: 15px; font-weight: 700; color: #1d2533; }
.psc-choose-desc { font-size: 12.5px; color: #7a838f; line-height: 1.4; }

/* Back link inside a form view */
.psc-widget-back {
	background: none;
	border: none;
	color: var(--psc-primary);
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	padding: 0 0 12px;
}
.psc-widget-back:hover { text-decoration: underline; }

/* Thread bubbles */
.psc-thread {
	max-height: 270px;
	overflow-y: auto;
	padding: 4px 2px;
	margin-bottom: 14px;
}
.psc-thread-empty { color: #9aa3ad; font-size: 13px; text-align: center; }
.psc-bubble {
	max-width: 85%;
	margin: 8px 0;
	padding: 9px 12px;
	border-radius: 14px;
	font-size: 14px;
	line-height: 1.5;
}
.psc-bubble-body { white-space: pre-wrap; }
.psc-bubble-meta { font-size: 11px; opacity: .65; margin-top: 4px; }
.psc-bubble-you {
	margin-left: auto;
	background: linear-gradient(135deg, var(--psc-primary), var(--psc-primary-2));
	color: #fff;
	border-bottom-right-radius: 4px;
}
.psc-bubble-agent {
	margin-right: auto;
	background: #eef2f6;
	color: #222;
	border-bottom-left-radius: 4px;
}
.psc-thread-form textarea {
	width: 100%;
	box-sizing: border-box;
	border: 1px solid #d9dee5;
	border-radius: 10px;
	padding: 9px 11px;
	font-size: 14px;
	resize: vertical;
}
.psc-thread-send { margin-top: 8px; }
.psc-thread-new {
	display: block;
	margin: 12px auto 0;
	background: none;
	border: none;
	color: var(--psc-primary);
	font-size: 13px;
	text-decoration: underline;
	cursor: pointer;
}

@media (max-width: 480px) {
	.psc-widget { right: 14px; bottom: 14px; }
	.psc-widget-panel { width: calc(100vw - 28px); }
}
