/* Support Popup styles — blue design */

.sp-open-btn,
.sp-modal {
	--sp-blue: #0e4da3;
	--sp-blue-dark: #093c85;
	--sp-gray: #ececec;
}

/* Floating trigger button (blue pill, chat-bubbles icon) */
.sp-open-btn {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 99998;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 13px 26px;
	background: var(--sp-blue) !important;
	color: #fff !important;
	border: none;
	border-radius: 999px;
	font-size: 15px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.4px;
	cursor: pointer;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
	transition: background 0.15s ease, transform 0.15s ease;
}
.sp-open-btn:hover,
.sp-open-btn:focus {
	background: var(--sp-blue-dark) !important;
	color: #fff !important;
	transform: translateY(-2px);
}
.sp-open-btn-icon {
	width: 34px;
	height: 30px;
	flex: 0 0 auto;
}

/* Overlay: panel docked to the right like the reference site */
.sp-overlay {
	position: fixed;
	inset: 0;
	z-index: 99999;
	background: rgba(0, 0, 0, 0.45);
	display: flex;
	justify-content: flex-end;
	align-items: flex-start;
	padding: 16px;
	overflow-y: auto;
}
.sp-overlay[hidden] { display: none; }

.sp-modal {
	position: relative;
	background: #fff;
	width: 100%;
	max-width: 470px;
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	border-radius: 10px;
	padding: 26px 28px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
	font-family: inherit;
	color: #1a1a1a;
}

/* Close: blue circle with white cross */
.sp-close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--sp-blue) !important;
	color: #fff !important;
	border: none;
	border-radius: 50%;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	transition: background 0.15s ease;
	padding: 0;
}
.sp-close:hover { background: var(--sp-blue-dark) !important; color: #fff !important; }

.sp-modal h2 {
	margin: 0 40px 20px 0;
	font-size: 16px;
	line-height: 1.4;
	font-weight: 800;
	text-transform: uppercase;
	color: #111;
}

/* Out-of-hours hint */
.sp-offline {
	background: #fff4d6;
	border: 1px solid #eed48f;
	color: #6d5310;
	border-radius: 6px;
	padding: 12px 16px;
	font-size: 13.5px;
	line-height: 1.5;
	margin-bottom: 16px;
}

/* Fields: label above input */
.sp-field { margin-bottom: 16px; }
.sp-field label {
	display: block;
	margin-bottom: 6px;
	font-size: 13px;
	font-weight: 700;
	color: #1a1a1a;
}
.sp-field input[type="text"],
.sp-field textarea {
	width: 100%;
	box-sizing: border-box;
	border: 1px solid #c9c9c9;
	border-radius: 4px;
	padding: 10px 12px;
	font-size: 14.5px;
	color: #222;
	background: #fff;
	resize: vertical;
}
.sp-field input[type="text"]:focus,
.sp-field textarea:focus {
	outline: none;
	border-color: var(--sp-blue);
	box-shadow: 0 0 0 2px rgba(14, 77, 163, 0.15);
}
.sp-req { color: #c0392b; margin: 0 2px; }

/* Reply channels: stacked gray blocks */
.sp-channel-title {
	margin: 4px 0 10px;
	font-size: 13px;
	font-weight: 700;
	color: #1a1a1a;
}
.sp-channels { margin-bottom: 16px; }
.sp-radio {
	display: flex;
	align-items: center;
	gap: 10px;
	background: var(--sp-gray);
	border-radius: 6px;
	padding: 13px 16px;
	margin-bottom: 10px;
	font-size: 14px;
	color: #222;
	cursor: pointer;
}
.sp-radio input { accent-color: var(--sp-blue); width: 17px; height: 17px; flex: 0 0 auto; margin: 0; }

/* Consent: gray block */
.sp-consent {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	background: var(--sp-gray);
	border-radius: 6px;
	padding: 13px 16px;
	font-size: 12.5px;
	color: #333;
	line-height: 1.45;
	margin-bottom: 16px;
	cursor: pointer;
}
.sp-consent input { margin: 2px 0 0; flex: 0 0 auto; accent-color: var(--sp-blue); }
.sp-consent a { color: var(--sp-blue); text-decoration: underline; }

/* Submit: full-width blue; high specificity + !important so the theme
   can't turn it white on hover */
#sp-form .sp-submit,
#sp-form .sp-submit:visited {
	display: block;
	width: 100%;
	background: var(--sp-blue) !important;
	color: #fff !important;
	border: none !important;
	border-radius: 8px;
	padding: 13px 16px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease;
}
#sp-form .sp-submit:hover,
#sp-form .sp-submit:focus,
#sp-form .sp-submit:active {
	background: var(--sp-blue-dark) !important;
	color: #fff !important;
}
#sp-form .sp-submit:disabled { opacity: 0.6; cursor: default; }

.sp-msg {
	margin-bottom: 14px;
	padding: 10px 14px;
	border-radius: 4px;
	font-size: 14px;
}
.sp-msg.sp-msg-ok { background: #e8f6ec; color: #1e7d3c; border: 1px solid #b7e0c4; }
.sp-msg.sp-msg-err { background: #fdecea; color: #b3261e; border: 1px solid #f5c6c2; }

@media (max-width: 600px) {
	.sp-overlay { padding: 8px; }
	.sp-modal { max-width: none; padding: 22px 16px; max-height: calc(100vh - 16px); }
	.sp-open-btn { right: 12px; bottom: 12px; padding: 11px 18px; font-size: 13px; }
	.sp-open-btn-icon { width: 28px; height: 24px; }
}
