#d2s-aic-root {
	position: static !important;
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	z-index: 999999 !important;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

/* Vertical sticky tab — fixed to the right edge, always visible, the
   label itself invites clicking so no separate tooltip is needed. */
.d2s-aic-tab {
	position: fixed !important;
	top: 55% !important;
	right: 0 !important;
	left: auto !important;
	bottom: auto !important;
	margin: 0 !important;
	transform: translateY(-50%) !important;
	z-index: 999999 !important;
	display: flex !important;
	visibility: visible !important;
	opacity: 1 !important;
	flex-direction: column !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 8px !important;
	width: auto !important;
	height: auto !important;
	min-width: 0 !important;
	max-width: none !important;
	background: linear-gradient(160deg, #0F766E 0%, #08534C 100%) !important;
	background-color: #0F766E !important;
	color: #fff !important;
	border: none !important;
	border-radius: 10px 0 0 10px !important;
	padding: 16px 9px !important;
	cursor: pointer !important;
	box-shadow: -4px 4px 16px rgba(0,0,0,0.18) !important;
	box-sizing: border-box !important;
	float: none !important;
	overflow: visible !important;
	transition: padding-right 0.18s ease, box-shadow 0.18s ease !important;
}

.d2s-aic-tab:hover {
	padding-right: 15px;
	box-shadow: -6px 6px 20px rgba(0,0,0,0.24);
}

.d2s-aic-tab:active {
	background: linear-gradient(160deg, #0C645D 0%, #063f3a 100%);
}

.d2s-aic-tab-icon {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	visibility: visible !important;
	opacity: 1 !important;
	margin: 0 !important;
	padding: 0 !important;
	width: auto !important;
	height: auto !important;
	background: none !important;
	border: none !important;
}

.d2s-aic-tab-label {
	writing-mode: vertical-rl !important;
	transform: rotate(180deg) !important;
	font-size: 12.5px !important;
	font-weight: 700 !important;
	letter-spacing: 0.6px !important;
	white-space: nowrap !important;
	text-transform: uppercase !important;
	color: #fff !important;
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	margin: 0 !important;
	padding: 0 !important;
	background: none !important;
}

.d2s-aic-tab-badge {
	position: absolute !important;
	top: -8px !important;
	left: -8px !important;
	right: auto !important;
	bottom: auto !important;
	min-width: 20px !important;
	height: 20px !important;
	padding: 0 4px !important;
	margin: 0 !important;
	border-radius: 10px !important;
	background: #E23D3D !important;
	color: #fff !important;
	font-size: 11px !important;
	font-weight: 700 !important;
	align-items: center !important;
	justify-content: center !important;
	border: 2px solid #fff !important;
}

@keyframes d2s-aic-tab-pulse-kf {
	0%   { box-shadow: -4px 4px 16px rgba(0,0,0,0.18), 0 0 0 0 rgba(15,118,110,0.5); }
	50%  { box-shadow: -4px 4px 16px rgba(0,0,0,0.18), 0 0 0 8px rgba(15,118,110,0); }
	100% { box-shadow: -4px 4px 16px rgba(0,0,0,0.18), 0 0 0 0 rgba(15,118,110,0); }
}

.d2s-aic-tab-pulse {
	animation: d2s-aic-tab-pulse-kf 1.4s ease-out 1;
}

/* Proactive engagement callout — appended to document.body, positioned
   next to the tab. Hardened the same way as every other element here,
   since it lives outside #d2s-aic-root and can't inherit its protection. */
.d2s-aic-proactive {
	position: fixed !important;
	top: 55% !important;
	right: 46px !important;
	left: auto !important;
	bottom: auto !important;
	transform: translateY(-50%) translateX(12px) !important;
	max-width: 240px !important;
	width: max-content !important;
	background: #fff !important;
	color: #222 !important;
	border-radius: 12px !important;
	padding: 14px 32px 14px 16px !important;
	box-shadow: 0 10px 30px rgba(0,0,0,0.2) !important;
	font-size: 13px !important;
	line-height: 1.45 !important;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
	cursor: pointer !important;
	z-index: 999998 !important;
	opacity: 0 !important;
	visibility: hidden !important;
	display: block !important;
	margin: 0 !important;
	border: 1px solid #E5E5E0 !important;
	transition: opacity 0.25s ease, transform 0.25s ease !important;
}

.d2s-aic-proactive-show {
	opacity: 1 !important;
	visibility: visible !important;
	transform: translateY(-50%) translateX(0) !important;
}

.d2s-aic-proactive-greeting {
	color: #08534C !important;
	font-size: 13.5px !important;
	font-weight: 700 !important;
	font-family: inherit !important;
	margin: 0 0 4px !important;
}

.d2s-aic-proactive-text {
	color: #222 !important;
	font-size: 13px !important;
	font-family: inherit !important;
}

.d2s-aic-proactive-close {
	position: absolute !important;
	top: 6px !important;
	right: 8px !important;
	background: none !important;
	border: none !important;
	color: #999 !important;
	font-size: 18px !important;
	line-height: 1 !important;
	cursor: pointer !important;
	padding: 4px !important;
	margin: 0 !important;
}

@media (max-width: 480px) {
	.d2s-aic-proactive {
		right: 44px !important;
		max-width: 190px !important;
		font-size: 12.5px !important;
	}
}

/* Chat window */
.d2s-aic-window {
	display: none;
	flex-direction: column;
	position: fixed !important;
	bottom: 20px;
	right: 20px;
	width: 370px;
	max-width: calc(100vw - 32px);
	height: 560px;
	max-height: calc(100vh - 120px);
	background: #fff !important;
	border-radius: 16px;
	box-shadow: 0 12px 40px rgba(0,0,0,0.22);
	overflow: hidden;
	z-index: 999999 !important;
}

.d2s-aic-window.d2s-aic-open {
	display: flex;
}

.d2s-aic-header {
	background: linear-gradient(135deg, #08534C 0%, #0F766E 100%);
	color: #fff;
	padding: 14px 18px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.d2s-aic-header-brand {
	display: flex;
	align-items: center;
	gap: 10px;
}

.d2s-aic-header-icon {
	width: 34px;
	height: 34px;
	border-radius: 0;
	background: none;
	display: block;
	flex-shrink: 0;
}

.d2s-aic-brandmark {
	font-size: 15px !important;
	font-weight: 700 !important;
	letter-spacing: 0.1px;
	line-height: 1.15;
	display: block;
	color: #fff;
}

.d2s-aic-brand-2 {
	color: #F5A623;
}

.d2s-aic-brand-sep {
	color: rgba(255,255,255,0.4);
	margin: 0 6px;
	font-size: 9px;
	vertical-align: middle;
}

.d2s-aic-brand-support {
	font-weight: 400 !important;
	letter-spacing: 1px;
	color: rgba(255,255,255,0.85);
}

.d2s-aic-tagline {
	font-size: 11px;
	color: rgba(255,255,255,0.75);
	margin-top: -1px;
	line-height: 1.15;
	font-weight: 400;
}

.d2s-aic-header strong {
	font-size: 16px;
	display: block;
}

.d2s-aic-subtitle {
	font-size: 12px;
	color: rgba(255,255,255,0.85);
	margin-top: -1px;
	line-height: 1.15;
}

.d2s-aic-subtitle:empty {
	display: none;
	margin-top: 0;
}

.d2s-aic-dot {
	color: #F5A623;
	margin: 0 2px;
}

.d2s-aic-close {
	background: none !important;
	background-color: transparent !important;
	border: none !important;
	box-shadow: none !important;
	color: #fff !important;
	font-size: 22px !important;
	cursor: pointer !important;
	line-height: 1 !important;
	opacity: 0.85 !important;
	padding: 0 !important;
	margin: 0 !important;
	width: auto !important;
	height: auto !important;
}

.d2s-aic-close:hover {
	opacity: 1 !important;
}

.d2s-aic-messages {
	flex: 1;
	overflow-y: auto;
	padding: 16px;
	background: #F7F7F5;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.d2s-aic-row {
	display: flex;
	align-items: flex-start;
	gap: 8px;
}

.d2s-aic-avatar {
	flex-shrink: 0;
	width: 32px;
	height: 32px;
	border-radius: 10px;
	background: #08534C;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
}

.d2s-aic-msg {
	max-width: 250px;
	padding: 10px 13px;
	border-radius: 12px;
	font-size: 14px;
	line-height: 1.45;
	white-space: pre-wrap;
	word-wrap: break-word;
}

.d2s-aic-msg-bot {
	background: #fff;
	border: 1px solid #E5E5E0;
	color: #222;
	border-top-left-radius: 4px;
}

.d2s-aic-msg-time {
	font-size: 11px;
	color: #999;
	margin-top: 3px;
	margin-left: 2px;
}

.d2s-aic-msg-user {
	align-self: flex-end;
	max-width: 250px;
	padding: 10px 13px;
	border-radius: 12px;
	border-top-right-radius: 4px;
	background: #0F766E;
	color: #fff;
	font-size: 14px;
	line-height: 1.45;
	white-space: pre-wrap;
	word-wrap: break-word;
}

.d2s-aic-msg-typing,
.d2s-aic-msg-system {
	align-self: center;
	color: #999;
	font-size: 12px;
	font-style: italic;
}

.d2s-aic-contact-btn {
	display: inline-block;
	background: #F5A623;
	color: #08534C;
	font-weight: 700;
	font-size: 13px;
	padding: 9px 16px;
	border-radius: 8px;
	text-decoration: none;
}

/* Quick action buttons */
.d2s-aic-quick {
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: 100%;
	box-sizing: border-box;
}

.d2s-aic-quick-btn {
	display: flex;
	align-items: center;
	gap: 10px;
	background: #fff;
	border: 1px solid #E5E5E0;
	border-radius: 10px;
	padding: 11px 12px;
	font-size: 13px;
	font-weight: 600;
	color: #222;
	cursor: pointer;
	text-align: left;
	width: 100%;
	box-sizing: border-box;
}

.d2s-aic-quick-btn:hover {
	border-color: #0F766E;
	background: #F7FBFA;
}

.d2s-aic-quick-icon {
	color: #0F766E;
	flex-shrink: 0;
	display: flex;
}

.d2s-aic-quick-label {
	flex: 0 1 auto !important;
	text-align: left !important;
}

.d2s-aic-quick-chevron {
	color: #ccc;
	display: flex;
	margin-left: auto !important;
}

.d2s-aic-quick-btn-human {
	border-color: #0F766E;
	background: #F7FBFA;
}

.d2s-aic-online-dot {
	display: inline-block;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #2ECC71;
	margin-left: 4px;
}

.d2s-aic-quick-hint {
	text-align: center;
	font-size: 12px;
	color: #aaa;
	margin-top: 2px;
}

/* Footer: input + trust line */
.d2s-aic-footer {
	border-top: 1px solid #eee;
	background: #fff;
}

.d2s-aic-inputbar {
	display: flex;
	align-items: center;
	padding: 10px 12px;
	gap: 8px;
}

.d2s-aic-inputbar input {
	flex: 1;
	border: 1px solid #ddd;
	border-radius: 22px;
	padding: 10px 16px;
	font-size: 14px;
	outline: none;
}

.d2s-aic-inputbar input:focus {
	border-color: #0F766E;
}

.d2s-aic-attach {
	flex-shrink: 0 !important;
	width: 34px !important;
	height: 34px !important;
	min-width: 34px !important;
	background: none !important;
	background-color: transparent !important;
	border: none !important;
	box-shadow: none !important;
	color: #888 !important;
	cursor: pointer !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	border-radius: 50% !important;
	padding: 0 !important;
	margin: 0 !important;
	line-height: 0 !important;
	visibility: visible !important;
	opacity: 1 !important;
	position: static !important;
}

.d2s-aic-attach:hover:not(:disabled) {
	background: #F0F0EE !important;
	color: #0F766E !important;
}

.d2s-aic-attach:disabled {
	opacity: 0.35 !important;
	cursor: default !important;
}

.d2s-aic-msg-image img {
	max-width: 180px;
	max-height: 180px;
	border-radius: 10px;
	display: block;
}

.d2s-aic-rating {
	align-self: center;
	width: 100%;
	max-width: 270px;
	background: #fff;
	border: 1px solid #E5E5E0;
	border-radius: 14px;
	padding: 16px;
	text-align: center;
	box-shadow: 0 2px 8px rgba(0,0,0,0.06);
	box-sizing: border-box;
	margin: 4px 0;
}

.d2s-aic-rating-title {
	font-size: 13px;
	font-weight: 700;
	color: #08534C;
	margin-bottom: 10px;
}

.d2s-aic-rating-stars {
	display: flex;
	justify-content: center;
	gap: 2px;
}

.d2s-aic-rating-star {
	background: none;
	border: none;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	color: #E0E0DC;
	padding: 2px 3px;
	transition: transform 0.1s ease, color 0.15s ease;
}

.d2s-aic-rating-star:hover {
	transform: scale(1.15);
	color: #F5C776;
}

.d2s-aic-rating-star.d2s-aic-rating-star-filled {
	color: #F5A623;
}

.d2s-aic-rating-thanks {
	font-size: 12px;
	color: #0F766E;
	margin-top: 10px;
	font-weight: 600;
}

.d2s-aic-rating-feedback-box {
	margin-top: 10px;
}

.d2s-aic-rating-feedback-label {
	font-size: 12.5px;
	font-weight: 600;
	color: #333;
	margin-bottom: 6px;
}

.d2s-aic-rating-feedback-input {
	width: 100%;
	box-sizing: border-box;
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 8px 10px;
	font-size: 13px;
	font-family: inherit;
	resize: none;
	min-height: 54px;
}

.d2s-aic-rating-feedback-submit {
	margin-top: 6px;
	background: #0F766E;
	color: #fff;
	border: none;
	border-radius: 8px;
	padding: 7px 16px;
	font-size: 12.5px;
	font-weight: 600;
	cursor: pointer;
}

.d2s-aic-rating-feedback-submit:hover {
	background: #08534C;
}

.d2s-aic-send {
	flex-shrink: 0 !important;
	width: 38px !important;
	height: 38px !important;
	min-width: 38px !important;
	background: #0F766E !important;
	background-color: #0F766E !important;
	color: #fff !important;
	border: none !important;
	box-shadow: none !important;
	border-radius: 50% !important;
	cursor: pointer !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	padding: 0 !important;
	margin: 0 !important;
	line-height: 0 !important;
	visibility: visible !important;
	opacity: 1 !important;
	position: static !important;
}

.d2s-aic-send:hover {
	background: #08534C !important;
}

.d2s-aic-send:disabled {
	opacity: 0.5 !important;
	cursor: default !important;
}

.d2s-aic-send svg {
	width: 16px !important;
	height: 16px !important;
	stroke: #fff !important;
	fill: none !important;
	display: block;
}

.d2s-aic-trust {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	font-size: 11px;
	color: #999;
	padding: 0 12px 10px;
}

@media (max-width: 480px) {
	.d2s-aic-window {
		top: 0 !important;
		left: 0 !important;
		right: 0 !important;
		bottom: 0 !important;
		width: 100% !important;
		max-width: 100% !important;
		height: 100vh !important;
		height: 100dvh !important;
		max-height: 100vh !important;
		max-height: 100dvh !important;
		border-radius: 0 !important;
		z-index: 2147483647 !important;
	}
	.d2s-aic-footer {
		padding-bottom: env(safe-area-inset-bottom, 0);
	}
	.d2s-aic-tab-label {
		display: none;
	}
	.d2s-aic-tab {
		padding: 12px 8px;
	}
}

/* ==========================================================================
   Icon hardening — the site theme has global CSS that resets inline SVG
   fill/stroke/size (this is what made the send button invisible earlier).
   Every icon in this widget gets its color/size locked here so no theme
   rule anywhere on the site can strip it again.
   ========================================================================== */
.d2s-aic-tab-icon svg {
	width: 18px !important;
	height: 18px !important;
	stroke: #fff !important;
	fill: none !important;
	display: block;
}

.d2s-aic-avatar svg {
	width: 15px !important;
	height: 15px !important;
	stroke: #fff !important;
	fill: none !important;
	display: block;
}

.d2s-aic-quick-icon svg {
	width: 17px !important;
	height: 17px !important;
	stroke: #0F766E !important;
	fill: none !important;
	display: block;
}

.d2s-aic-quick-chevron svg {
	width: 15px !important;
	height: 15px !important;
	stroke: #ccc !important;
	fill: none !important;
	display: block;
}

.d2s-aic-attach svg {
	width: 17px !important;
	height: 17px !important;
	stroke: currentColor !important;
	fill: none !important;
	display: block;
}

.d2s-aic-trust svg {
	width: 13px !important;
	height: 13px !important;
	stroke: #999 !important;
	fill: none !important;
	display: block;
	flex-shrink: 0;
}
