.scd-widget {
	--scd-primary: #1f2937;
	--scd-icon: #fff;
	--scd-panel: #fff;
	--scd-text: #111827;
	--scd-right: 24px;
	--scd-bottom-desktop: 200px;
	--scd-bottom-mobile: 100px;
	--scd-size: 54px;
	bottom: var(--scd-bottom-desktop);
	box-sizing: border-box;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	position: fixed;
	right: var(--scd-right);
	z-index: 999990;
}

.scd-widget[hidden] {
	display: none !important;
}

.scd-trigger {
	align-items: center;
	background: var(--scd-primary);
	border: 0;
	border-radius: 50%;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .22);
	color: var(--scd-icon);
	cursor: pointer;
	display: flex;
	height: var(--scd-size);
	justify-content: center;
	margin: 0;
	padding: 0;
	position: relative;
	transition: transform .2s ease, box-shadow .2s ease;
	width: var(--scd-size);
	z-index: 2;
}

.scd-trigger:hover,
.scd-trigger:focus-visible {
	box-shadow: 0 10px 28px rgba(0, 0, 0, .28);
	outline: none;
	transform: translateY(-2px);
}

.scd-icon {
	display: block;
	height: 24px;
	width: 24px;
}

.scd-trigger-close {
	display: none;
}

.scd-widget.is-open .scd-trigger-open {
	display: none;
}

.scd-widget.is-open .scd-trigger-close {
	display: block;
}

.scd-panel {
	background: var(--scd-panel);
	border: 1px solid rgba(17, 24, 39, .09);
	border-radius: 14px;
	bottom: 0;
	box-shadow: 0 16px 45px rgba(0, 0, 0, .18);
	color: var(--scd-text);
	min-width: 270px;
	opacity: 0;
	padding: 10px;
	pointer-events: none;
	position: absolute;
	right: calc(var(--scd-size) + 12px);
	transform: translateX(16px) scale(.98);
	transform-origin: right bottom;
	transition: opacity .2s ease, transform .2s ease, visibility .2s;
	visibility: hidden;
}

.scd-widget.is-open .scd-panel {
	opacity: 1;
	pointer-events: auto;
	transform: translateX(0) scale(1);
	visibility: visible;
}

.scd-panel-title {
	border-bottom: 1px solid rgba(17, 24, 39, .08);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.35;
	margin: 0 4px 5px;
	padding: 8px 8px 11px;
}

.scd-channel-list {
	display: grid;
	gap: 3px;
}

.scd-channel,
button.scd-channel {
	align-items: center;
	background: transparent;
	border: 0;
	border-radius: 9px;
	box-sizing: border-box;
	color: var(--scd-text);
	cursor: pointer;
	display: flex;
	font: inherit;
	gap: 11px;
	margin: 0;
	min-height: 54px;
	padding: 8px;
	text-align: left;
	text-decoration: none;
	transition: background-color .18s ease;
	width: 100%;
}

.scd-channel:hover,
.scd-channel:focus-visible {
	background: rgba(17, 24, 39, .055);
	color: var(--scd-text);
	outline: none;
	text-decoration: none;
}

.scd-channel-icon {
	align-items: center;
	background: var(--scd-primary);
	border-radius: 50%;
	color: var(--scd-icon);
	display: flex;
	flex: 0 0 38px;
	height: 38px;
	justify-content: center;
	width: 38px;
}

.scd-channel-icon .scd-icon {
	height: 19px;
	width: 19px;
}

.scd-channel-whatsapp .scd-channel-icon {
	background: #25d366;
	color: #fff;
}

.scd-channel-wechat .scd-channel-icon {
	background: #07c160;
	color: #fff;
}

.scd-channel-copy {
	display: block;
	line-height: 1.3;
	min-width: 0;
}

.scd-channel-copy strong,
.scd-channel-copy small {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.scd-channel-copy strong {
	font-size: 13px;
	font-weight: 650;
}

.scd-channel-copy small {
	color: color-mix(in srgb, var(--scd-text) 66%, transparent);
	font-size: 12px;
	margin-top: 2px;
	max-width: 190px;
}

.scd-icons-only .scd-panel {
	min-width: auto;
}

.scd-icons-only .scd-panel-title,
.scd-icons-only .scd-channel-copy {
	display: none;
}

.scd-icons-only .scd-channel {
	min-height: auto;
	padding: 5px;
}

.scd-modal {
	align-items: center;
	display: flex;
	inset: 0;
	justify-content: center;
	position: fixed;
	z-index: 1000000;
}

.scd-modal[hidden] {
	display: none;
}

.scd-modal-backdrop {
	background: rgba(15, 23, 42, .58);
	inset: 0;
	position: absolute;
}

.scd-modal-card {
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 24px 70px rgba(0, 0, 0, .3);
	color: #111827;
	max-width: calc(100vw - 40px);
	padding: 28px;
	position: relative;
	text-align: center;
	width: 300px;
	z-index: 1;
}

.scd-modal-close {
	background: transparent;
	border: 0;
	color: #6b7280;
	cursor: pointer;
	font-size: 26px;
	line-height: 1;
	padding: 5px;
	position: absolute;
	right: 8px;
	top: 7px;
}

.scd-modal-content h3 {
	font-size: 18px;
	margin: 0 0 14px;
}

.scd-modal-content img {
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	display: block;
	height: auto;
	margin: 0 auto 14px;
	max-width: 220px;
	width: 100%;
}

.scd-wechat-id {
	background: #f3f4f6;
	border-radius: 7px;
	font-size: 14px;
	margin: 10px 0;
	padding: 10px;
	word-break: break-all;
}

.scd-copy-wechat {
	background: #07c160;
	border: 0;
	border-radius: 7px;
	color: #fff;
	cursor: pointer;
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	padding: 9px 15px;
}

@media (min-width: 783px) {
	.scd-hide-desktop {
		display: none !important;
	}
}

@media (max-width: 782px) {
	.scd-widget {
		bottom: var(--scd-bottom-mobile);
		right: max(12px, var(--scd-right));
	}

	.scd-hide-mobile {
		display: none !important;
	}

	.scd-panel {
		bottom: calc(var(--scd-size) + 12px);
		max-width: calc(100vw - 28px);
		right: 0;
		transform: translateY(12px) scale(.98);
	}

	.scd-widget.is-open .scd-panel {
		transform: translateY(0) scale(1);
	}
}

@media (prefers-reduced-motion: reduce) {
	.scd-trigger,
	.scd-panel {
		transition: none;
	}
}
