/**
 * Department Wise Social Chat — front end.
 *
 * Theme tokens are CSS custom properties so themes can override them, e.g.
 * #dwsc-widget { --dwsc-accent: #c026d3; }
 */

.dwsc-widget,
.dwsc-inline,
.dwsc-button-wrap,
.wp-block-dwsc-department-chat {
	--dwsc-accent: #0e7c66;
	--dwsc-accent-contrast: #fff;
	--dwsc-bg: #fff;
	--dwsc-surface: #f4f6f8;
	--dwsc-surface-hover: #eaeef2;
	--dwsc-text: #111827;
	--dwsc-muted: #5b6472;
	--dwsc-border: rgba(17, 24, 39, 0.08);
	--dwsc-online: #16a34a;
	--dwsc-offline: #9ca3af;
	--dwsc-radius: 16px;
	--dwsc-shadow: 0 18px 48px rgba(17, 24, 39, 0.18), 0 2px 8px rgba(17, 24, 39, 0.08);
	--dwsc-font: inherit;
}

.dwsc-widget {
	--dwsc-offset-x: 20px;
	--dwsc-offset-y: 20px;
	--dwsc-z: 99990;
	--dwsc-launcher-size: 56px;
	--dwsc-launcher-icon: 26px;
	--dwsc-launcher-font: 15px;
	--dwsc-launcher-weight: 600;
	--dwsc-launcher-border-width: 0px;
	--dwsc-launcher-radius: 999px;
	--dwsc-launcher-shadow: 0 8px 24px rgba(17, 24, 39, 0.22);
	--dwsc-launcher-shadow-hover: 0 12px 28px rgba(17, 24, 39, 0.26);
	--dwsc-dot-size: 9px;
	--dwsc-dot-color: #22c55e;
	--dwsc-greet-font: 14px;
	--dwsc-greet-width: 260px;
	--dwsc-greet-pad: 14px;
	--dwsc-greet-radius: 14px;
	position: fixed;
	bottom: calc(var(--dwsc-offset-y) + env(safe-area-inset-bottom, 0px));
	z-index: var(--dwsc-z);
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 12px;
	font-family: var(--dwsc-font);
	font-size: 15px;
	line-height: 1.4;
	color: var(--dwsc-text);
}

.dwsc-widget *,
.dwsc-inline *,
.dwsc-button-wrap * {
	box-sizing: border-box;
}

.dwsc-pos-right {
	right: var(--dwsc-offset-x);
}

.dwsc-pos-left {
	left: var(--dwsc-offset-x);
	align-items: flex-start;
}

/* Dark theme tokens */
.dwsc-theme-dark {
	--dwsc-bg: #111827;
	--dwsc-surface: #1f2937;
	--dwsc-surface-hover: #273445;
	--dwsc-text: #f3f4f6;
	--dwsc-muted: #a3acb9;
	--dwsc-border: rgba(255, 255, 255, 0.08);
}

@media (prefers-color-scheme: dark) {
	.dwsc-theme-auto {
		--dwsc-bg: #111827;
		--dwsc-surface: #1f2937;
		--dwsc-surface-hover: #273445;
		--dwsc-text: #f3f4f6;
		--dwsc-muted: #a3acb9;
		--dwsc-border: rgba(255, 255, 255, 0.08);
	}
}

/* Device rules */
@media (max-width: 767px) {
	.dwsc-only-desktop {
		display: none !important;
	}
}

@media (min-width: 768px) {
	.dwsc-only-mobile {
		display: none !important;
	}
}

.dwsc-icon {
	width: 1.25em;
	height: 1.25em;
	flex: none;
	display: block;
}

/* ------------------------------------------------------------------ */
/* Launcher                                                            */
/*                                                                     */
/* Every rule is scoped to #dwsc-widget so global theme and page-      */
/* builder button styles (e.g. "button:hover", ".elementor-kit-5       */
/* button:hover") cannot change the button's colors in any state.      */
/* ------------------------------------------------------------------ */
#dwsc-widget .dwsc-launcher {
	position: relative;
	display: inline-flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	gap: calc(var(--dwsc-launcher-size) * 0.18);
	box-sizing: border-box;
	width: auto;
	height: var(--dwsc-launcher-size);
	min-width: var(--dwsc-launcher-size);
	min-height: 0;
	max-width: none;
	margin: 0;
	padding: 0 calc(var(--dwsc-launcher-size) * 0.4) 0 calc(var(--dwsc-launcher-size) * 0.32);
	border: var(--dwsc-launcher-border-width) solid var(--dwsc-launcher-border, transparent);
	border-radius: var(--dwsc-launcher-radius);
	background: var(--dwsc-launcher-bg, var(--dwsc-accent));
	color: var(--dwsc-launcher-fg, var(--dwsc-accent-contrast));
	font-family: inherit;
	font-size: var(--dwsc-launcher-font);
	font-style: normal;
	font-weight: var(--dwsc-launcher-weight);
	line-height: 1.2;
	letter-spacing: 0.01em;
	text-align: center;
	text-decoration: none;
	text-shadow: none;
	text-transform: none;
	white-space: nowrap;
	overflow: visible;
	opacity: 1;
	visibility: visible;
	filter: none;
	cursor: pointer;
	box-shadow: var(--dwsc-launcher-shadow);
	-webkit-appearance: none;
	appearance: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* Some themes decorate buttons and links with pseudo-elements. */
#dwsc-widget button::before,
#dwsc-widget button::after,
.dwsc-list .dwsc-dept::before,
.dwsc-list .dwsc-dept::after,
.dwsc-button-wrap .dwsc-button::before,
.dwsc-button-wrap .dwsc-button::after {
	content: none;
}

/* Baseline for the widget's other buttons (close, greeting), all states. */
#dwsc-widget button {
	min-width: 0;
	min-height: 0;
	font-family: inherit;
	line-height: 1.4;
	letter-spacing: normal;
	text-transform: none;
	text-shadow: none;
	box-shadow: none;
	opacity: 1;
	visibility: visible;
	-webkit-appearance: none;
	appearance: none;
}

#dwsc-widget .dwsc-launcher .dwsc-icon {
	display: block;
	flex: none;
	width: var(--dwsc-launcher-icon);
	height: var(--dwsc-launcher-icon);
	max-width: none;
	margin: 0;
	color: inherit;
	fill: none;
	stroke: currentColor;
	transition: transform 0.3s ease;
}

#dwsc-widget .dwsc-launcher-label {
	display: inline;
	color: inherit;
	font: inherit;
	white-space: nowrap;
}

/* Content: icon only / label only */
#dwsc-widget.dwsc-style-icon .dwsc-launcher {
	width: var(--dwsc-launcher-size);
	padding: 0;
}

#dwsc-widget.dwsc-style-icon .dwsc-launcher-label,
#dwsc-widget.dwsc-style-label .dwsc-launcher .dwsc-launcher-icon {
	display: none;
}

#dwsc-widget.dwsc-style-label .dwsc-launcher {
	padding: 0 calc(var(--dwsc-launcher-size) * 0.4);
}

/* Shape */
#dwsc-widget.dwsc-shape-rounded {
	--dwsc-launcher-radius: calc(var(--dwsc-launcher-size) * 0.28);
}

#dwsc-widget.dwsc-shape-square {
	--dwsc-launcher-radius: 6px;
}

/* Shadow */
#dwsc-widget.dwsc-shadow-none {
	--dwsc-launcher-shadow: none;
	--dwsc-launcher-shadow-hover: none;
}

#dwsc-widget.dwsc-shadow-soft {
	--dwsc-launcher-shadow: 0 4px 12px rgba(17, 24, 39, 0.14);
	--dwsc-launcher-shadow-hover: 0 6px 16px rgba(17, 24, 39, 0.18);
}

#dwsc-widget.dwsc-shadow-strong {
	--dwsc-launcher-shadow: 0 14px 36px rgba(17, 24, 39, 0.34);
	--dwsc-launcher-shadow-hover: 0 18px 44px rgba(17, 24, 39, 0.4);
}

/* Hover colors (also applied to keyboard focus) */
#dwsc-widget .dwsc-launcher:hover,
#dwsc-widget .dwsc-launcher:focus-visible {
	background: var(--dwsc-launcher-hover-bg, var(--dwsc-launcher-bg, var(--dwsc-accent)));
	color: var(--dwsc-launcher-hover-fg, var(--dwsc-launcher-fg, var(--dwsc-accent-contrast)));
	border-color: var(--dwsc-launcher-hover-border, var(--dwsc-launcher-border, transparent));
	box-shadow: var(--dwsc-launcher-shadow-hover);
	text-decoration: none;
	opacity: 1;
	visibility: visible;
}

@supports (background: color-mix(in srgb, red 50%, blue)) {
	#dwsc-widget .dwsc-launcher:hover,
	#dwsc-widget .dwsc-launcher:focus-visible {
		background: var(--dwsc-launcher-hover-bg, color-mix(in srgb, var(--dwsc-launcher-bg, var(--dwsc-accent)) 86%, #000));
	}
}

#dwsc-widget .dwsc-launcher:focus-visible {
	outline: 3px solid var(--dwsc-launcher-bg, var(--dwsc-accent));
	outline-offset: 3px;
}

/* Hover effects */
#dwsc-widget.dwsc-hover-lift .dwsc-launcher:hover {
	transform: translateY(-3px);
}

#dwsc-widget.dwsc-hover-grow .dwsc-launcher:hover {
	transform: scale(1.07);
}

#dwsc-widget.dwsc-hover-glow .dwsc-launcher:hover {
	box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.85), 0 0 0 9px var(--dwsc-launcher-bg, var(--dwsc-accent)), var(--dwsc-launcher-shadow-hover);
}

#dwsc-widget.dwsc-hover-wiggle .dwsc-launcher:hover .dwsc-launcher-icon {
	animation: dwsc-wiggle 0.5s ease;
}

#dwsc-widget.dwsc-hover-spin .dwsc-launcher:hover .dwsc-launcher-icon {
	transform: rotate(360deg);
	transition-duration: 0.6s;
}

@keyframes dwsc-wiggle {
	0%,
	100% {
		transform: rotate(0);
	}
	25% {
		transform: rotate(-14deg);
	}
	50% {
		transform: rotate(12deg);
	}
	75% {
		transform: rotate(-6deg);
	}
}

.dwsc-widget button:focus-visible,
.dwsc-dept:focus-visible,
.dwsc-button:focus-visible {
	outline: 3px solid var(--dwsc-accent);
	outline-offset: 3px;
}

/* Open state: the launcher becomes a round close button. */
#dwsc-widget .dwsc-launcher .dwsc-launcher-close {
	display: none;
}

#dwsc-widget.is-open .dwsc-launcher .dwsc-launcher-close {
	display: block;
}

#dwsc-widget.is-open .dwsc-launcher .dwsc-launcher-icon,
#dwsc-widget.is-open .dwsc-launcher-label {
	display: none;
}

#dwsc-widget.is-open .dwsc-launcher {
	width: var(--dwsc-launcher-size);
	padding: 0;
}

/*
 * Online dot. Its center sits exactly on the button's outline at the top-right
 * (45°): for a round end that point is 14.6% of the height in from each edge.
 */
#dwsc-widget {
	--dwsc-dot-edge: calc(var(--dwsc-launcher-size) * 0.146);
}

#dwsc-widget.dwsc-shape-rounded {
	--dwsc-dot-edge: calc(var(--dwsc-launcher-size) * 0.082);
}

#dwsc-widget.dwsc-shape-square {
	--dwsc-dot-edge: 2px;
}

#dwsc-widget .dwsc-launcher-dot {
	position: absolute;
	top: calc(var(--dwsc-dot-edge) - var(--dwsc-dot-size) / 2 - var(--dwsc-launcher-border-width));
	right: calc(var(--dwsc-dot-edge) - var(--dwsc-dot-size) / 2 - var(--dwsc-launcher-border-width));
	box-sizing: border-box;
	width: var(--dwsc-dot-size);
	height: var(--dwsc-dot-size);
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--dwsc-dot-color);
	box-shadow: 0 0 0 2px var(--dwsc-launcher-bg, var(--dwsc-accent));
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s;
}

#dwsc-widget.is-team-online .dwsc-launcher-dot {
	opacity: 1;
}

#dwsc-widget.dwsc-dot-blink.is-team-online .dwsc-launcher-dot {
	animation: dwsc-blink 1.6s ease-in-out infinite;
}

#dwsc-widget.dwsc-no-dot .dwsc-launcher-dot,
#dwsc-widget.is-open .dwsc-launcher-dot {
	display: none;
}

@keyframes dwsc-blink {
	0%,
	100% {
		opacity: 1;
		transform: scale(1);
	}
	50% {
		opacity: 0.3;
		transform: scale(0.75);
	}
}

/* Attention animations (until the visitor interacts) */
#dwsc-widget.dwsc-has-pulse.dwsc-attn-pulse .dwsc-launcher::after {
	content: "";
	position: absolute;
	inset: calc(-1 * var(--dwsc-launcher-border-width));
	border-radius: inherit;
	box-shadow: 0 0 0 0 var(--dwsc-launcher-bg, var(--dwsc-accent));
	animation: dwsc-pulse 2.4s ease-out infinite;
	pointer-events: none;
}

#dwsc-widget.dwsc-has-pulse.dwsc-attn-bounce .dwsc-launcher {
	animation: dwsc-bounce 3s ease infinite;
}

#dwsc-widget.dwsc-has-pulse.dwsc-attn-shake .dwsc-launcher {
	animation: dwsc-shake 3.5s ease infinite;
}

/* Let the hover effect take over from the attention animation. */
#dwsc-widget.dwsc-has-pulse .dwsc-launcher:hover {
	animation: none;
}

@keyframes dwsc-pulse {
	0% {
		box-shadow: 0 0 0 0 var(--dwsc-launcher-bg, var(--dwsc-accent));
		opacity: 0.55;
	}
	70%,
	100% {
		box-shadow: 0 0 0 16px var(--dwsc-launcher-bg, var(--dwsc-accent));
		opacity: 0;
	}
}

@keyframes dwsc-bounce {
	0%,
	30%,
	100% {
		transform: translateY(0);
	}
	10% {
		transform: translateY(-10px);
	}
	20% {
		transform: translateY(-4px);
	}
}

@keyframes dwsc-shake {
	0%,
	24%,
	100% {
		transform: rotate(0);
	}
	4%,
	12% {
		transform: rotate(-7deg);
	}
	8%,
	16% {
		transform: rotate(7deg);
	}
	20% {
		transform: rotate(-3deg);
	}
}

/* ------------------------------------------------------------------ */
/* Greeting bubble                                                     */
/* ------------------------------------------------------------------ */
#dwsc-widget .dwsc-greeting {
	position: relative;
	display: flex;
	align-items: flex-start;
	box-sizing: border-box;
	width: max-content;
	max-width: min(var(--dwsc-greet-width), calc(100vw - 2 * var(--dwsc-offset-x)));
	margin: 0;
	padding: var(--dwsc-greet-pad) calc(var(--dwsc-greet-pad) + 22px) var(--dwsc-greet-pad) var(--dwsc-greet-pad);
	border-radius: var(--dwsc-greet-radius);
	background: var(--dwsc-greet-bg, var(--dwsc-bg));
	color: var(--dwsc-greet-fg, var(--dwsc-text));
	box-shadow: var(--dwsc-shadow);
	animation: dwsc-rise 0.3s ease both;
}

#dwsc-widget.dwsc-greet-no-close .dwsc-greeting {
	padding-right: var(--dwsc-greet-pad);
}

#dwsc-widget .dwsc-greeting[hidden],
#dwsc-widget.dwsc-greet-no-close .dwsc-greeting-close {
	display: none;
}

/* The message is a button for keyboard users; undo every theme button style. */
#dwsc-widget .dwsc-greeting-text {
	position: static;
	display: block;
	flex: 1 1 auto;
	float: none;
	box-sizing: border-box;
	width: auto;
	max-width: 100%;
	height: auto;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	color: inherit;
	font-family: inherit;
	font-size: var(--dwsc-greet-font);
	font-style: normal;
	font-weight: 400;
	line-height: 1.45;
	text-align: left;
	text-indent: 0;
	text-decoration: none;
	white-space: normal;
	word-spacing: normal;
	overflow: visible;
	overflow-wrap: break-word;
	transform: none;
	cursor: pointer;
}

#dwsc-widget.dwsc-greet-align-center .dwsc-greeting-text {
	text-align: center;
}

#dwsc-widget.dwsc-greet-align-right .dwsc-greeting-text {
	text-align: right;
}

#dwsc-widget .dwsc-greeting-close {
	position: absolute;
	top: calc(var(--dwsc-greet-pad) / 2);
	right: calc(var(--dwsc-greet-pad) / 2);
	display: grid;
	place-items: center;
	box-sizing: border-box;
	width: 24px;
	height: 24px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: inherit;
	opacity: 0.6;
	cursor: pointer;
}

#dwsc-widget .dwsc-greeting-close .dwsc-icon {
	width: 14px;
	height: 14px;
}

#dwsc-widget .dwsc-greeting-close:hover,
#dwsc-widget .dwsc-greeting-close:focus-visible {
	background: rgba(127, 127, 127, 0.18);
	opacity: 1;
}

/* Speech-bubble tail pointing at the button. */
#dwsc-widget.dwsc-greet-tail .dwsc-greeting::after {
	content: "";
	position: absolute;
	bottom: -5px;
	right: calc(var(--dwsc-launcher-size) / 2 - 6px);
	width: 12px;
	height: 12px;
	background: inherit;
	border-radius: 0 0 3px 0;
	transform: rotate(45deg);
}

#dwsc-widget.dwsc-pos-left.dwsc-greet-tail .dwsc-greeting::after {
	right: auto;
	left: calc(var(--dwsc-launcher-size) / 2 - 6px);
}

@media (max-width: 767px) {
	#dwsc-widget.dwsc-greet-no-mobile .dwsc-greeting {
		display: none;
	}
}

/* ------------------------------------------------------------------ */
/* Panel                                                               */
/* ------------------------------------------------------------------ */
.dwsc-panel {
	width: min(370px, calc(100vw - 2 * var(--dwsc-offset-x)));
	max-height: min(600px, calc(100vh - var(--dwsc-launcher-size) - var(--dwsc-offset-y) - 40px));
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: var(--dwsc-radius);
	background: var(--dwsc-bg);
	box-shadow: var(--dwsc-shadow);
	transform-origin: bottom right;
	animation: dwsc-rise 0.22s ease both;
}

.dwsc-pos-left .dwsc-panel {
	transform-origin: bottom left;
}

.dwsc-panel[hidden] {
	display: none;
}

@keyframes dwsc-rise {
	from {
		opacity: 0;
		transform: translateY(10px) scale(0.98);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

.dwsc-panel-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	padding: 20px 20px 18px;
	background: var(--dwsc-accent);
	background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(0, 0, 0, 0.08));
	color: var(--dwsc-accent-contrast);
}

.dwsc-panel-title {
	margin: 0 0 4px;
	font-size: 1.15em;
	font-weight: 700;
	line-height: 1.25;
	color: inherit;
}

.dwsc-panel-sub {
	margin: 0;
	font-size: 0.9em;
	opacity: 0.9;
	color: inherit;
}

#dwsc-widget .dwsc-panel-close {
	display: grid;
	place-items: center;
	flex: none;
	width: 32px;
	height: 32px;
	margin: -4px -6px 0 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.16);
	color: inherit;
	cursor: pointer;
}

#dwsc-widget .dwsc-panel-close:hover {
	background: rgba(255, 255, 255, 0.28);
}

#dwsc-widget .dwsc-panel-close .dwsc-icon {
	width: 18px;
	height: 18px;
}

.dwsc-panel-body {
	flex: 1 1 auto;
	overflow-y: auto;
	padding: 12px;
	overscroll-behavior: contain;
}

.dwsc-panel-foot {
	margin: 0;
	padding: 10px 16px 14px;
	border-top: 1px solid var(--dwsc-border);
	color: var(--dwsc-muted);
	font-size: 12.5px;
	text-align: center;
}

/* ------------------------------------------------------------------ */
/* Department cards (shared by panel, shortcode and block)             */
/* ------------------------------------------------------------------ */
.dwsc-list {
	display: grid;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.dwsc-layout-grid {
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 12px;
}

.dwsc-item {
	margin: 0;
	padding: 0;
}

.dwsc-item[hidden] {
	display: none;
}

.dwsc-list .dwsc-dept {
	position: relative;
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px 14px;
	border: 1px solid var(--dwsc-border);
	border-radius: 14px;
	background: var(--dwsc-surface);
	color: var(--dwsc-text);
	text-decoration: none !important;
	text-transform: none;
	letter-spacing: normal;
	box-shadow: none;
	transition: background-color 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

.dwsc-list .dwsc-dept:hover,
.dwsc-list .dwsc-dept:focus {
	background: var(--dwsc-surface-hover);
	border-color: color-mix(in srgb, var(--dwsc-dept-color, var(--dwsc-accent)) 35%, transparent);
	color: var(--dwsc-text);
	transform: translateY(-1px);
}

.dwsc-dept-avatar {
	position: relative;
	display: grid;
	place-items: center;
	flex: none;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: var(--dwsc-dept-color, var(--dwsc-accent));
	color: #fff;
}

.dwsc-dept-avatar .dwsc-icon {
	width: 22px;
	height: 22px;
}

.dwsc-avatar-img {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	object-fit: cover;
}

.dwsc-dot {
	position: absolute;
	right: 0;
	bottom: 0;
	width: 13px;
	height: 13px;
	border: 2px solid var(--dwsc-surface);
	border-radius: 50%;
	background: var(--dwsc-online);
}

.dwsc-dept.is-offline .dwsc-dot {
	background: var(--dwsc-offline);
}

.dwsc-dept-body {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	flex: 1 1 auto;
}

.dwsc-dept-name {
	font-weight: 650;
	font-size: 1em;
	line-height: 1.3;
}

.dwsc-dept-desc,
.dwsc-dept-meta {
	color: var(--dwsc-muted);
	font-size: 0.85em;
	line-height: 1.35;
}

.dwsc-status {
	font-size: 0.78em;
	font-weight: 600;
	color: var(--dwsc-online);
}

.dwsc-status:empty {
	display: none;
}

.is-offline .dwsc-status {
	color: var(--dwsc-muted);
}

.dwsc-dept-go {
	display: grid;
	place-items: center;
	flex: none;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	color: var(--dwsc-dept-color, var(--dwsc-accent));
	transition: transform 0.15s ease;
}

.dwsc-dept-go .dwsc-icon {
	width: 18px;
	height: 18px;
}

.dwsc-dept:hover .dwsc-dept-go {
	transform: translateX(3px);
}

.dwsc-list .dwsc-dept[aria-disabled="true"],
.dwsc-button-wrap .dwsc-button[aria-disabled="true"] {
	cursor: not-allowed;
	opacity: 0.55;
	transform: none;
}

.dwsc-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.dwsc-empty {
	margin: 8px 4px;
	padding: 16px;
	border-radius: 12px;
	background: var(--dwsc-surface);
	color: var(--dwsc-muted);
	font-size: 0.9em;
	text-align: center;
}

.dwsc-empty[hidden] {
	display: none;
}

/* Inline list (shortcode / block) uses a white card look */
.dwsc-inline .dwsc-list .dwsc-dept {
	background: var(--dwsc-bg);
	box-shadow: 0 1px 2px rgba(17, 24, 39, 0.06);
}

.dwsc-inline .dwsc-list .dwsc-dept:hover {
	box-shadow: 0 6px 18px rgba(17, 24, 39, 0.1);
}

/* ------------------------------------------------------------------ */
/* Single department button                                            */
/* ------------------------------------------------------------------ */
.dwsc-button-wrap .dwsc-button {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 12px 20px;
	border: 2px solid var(--dwsc-dept-color, var(--dwsc-accent));
	border-radius: 999px;
	background: var(--dwsc-dept-color, var(--dwsc-accent));
	color: #fff;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none !important;
	text-transform: none;
	letter-spacing: normal;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.dwsc-button-wrap .dwsc-button[hidden] {
	display: none;
}

.dwsc-button-wrap .dwsc-button:hover,
.dwsc-button-wrap .dwsc-button:focus {
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 8px 20px rgba(17, 24, 39, 0.16);
}

.dwsc-button-wrap .dwsc-button-outline {
	background: transparent;
	color: var(--dwsc-dept-color, var(--dwsc-accent));
}

.dwsc-button-wrap .dwsc-button-outline:hover,
.dwsc-button-wrap .dwsc-button-outline:focus {
	background: var(--dwsc-dept-color, var(--dwsc-accent));
}

.dwsc-button .dwsc-status {
	padding: 2px 8px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.22);
	color: inherit;
	font-size: 0.72em;
}

/* ------------------------------------------------------------------ */
/* Mobile                                                              */
/* ------------------------------------------------------------------ */
@media (max-width: 480px) {
	.dwsc-widget.is-open .dwsc-panel {
		width: calc(100vw - 2 * var(--dwsc-offset-x));
	}

	#dwsc-widget .dwsc-launcher-label {
		max-width: 40vw;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	#dwsc-widget.dwsc-mobile-compact .dwsc-launcher {
		width: var(--dwsc-launcher-size);
		padding: 0;
	}

	#dwsc-widget.dwsc-mobile-compact .dwsc-launcher-label {
		display: none;
	}

	#dwsc-widget.dwsc-mobile-compact .dwsc-launcher .dwsc-launcher-icon {
		display: block;
	}

	#dwsc-widget.dwsc-mobile-compact.is-open .dwsc-launcher .dwsc-launcher-icon {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.dwsc-widget *,
	.dwsc-inline *,
	.dwsc-button-wrap * {
		animation: none !important;
		transition: none !important;
	}

	#dwsc-widget.dwsc-has-pulse .dwsc-launcher::after {
		display: none;
	}
}

@media print {
	.dwsc-widget {
		display: none !important;
	}
}
