/**
 * Regency Shop — floating Questions? help widget
 */

.rs-help-widget {
	--rs-help-bottom: 24px;
	--rs-help-right: 24px;
	--rs-help-fab: 48px;
	position: fixed;
	right: var(--rs-help-right);
	bottom: var(--rs-help-bottom);
	z-index: 99990;
	font-family: inherit;
	line-height: 1.4;
	pointer-events: none;
}

.rs-help-widget > * {
	pointer-events: auto;
}

/* Sit above WoodMart sticky mobile toolbar (55px) + 16px gap */
body.sticky-toolbar-on .rs-help-widget {
	--rs-help-bottom: calc(55px + 16px);
}

@media (max-width: 768px) {
	.rs-help-widget {
		--rs-help-fab: 54px;
	}
}

.rs-help-widget__fab {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--rs-help-fab);
	height: var(--rs-help-fab);
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #111111;
	color: #ffffff;
	cursor: pointer;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	-webkit-tap-highlight-color: transparent;
}

.rs-help-widget__fab:hover,
.rs-help-widget__fab:focus-visible {
	transform: scale(1.05);
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
	outline: none;
}

.rs-help-widget__fab:focus-visible {
	box-shadow: 0 0 0 3px #ffffff, 0 0 0 5px #111111, 0 10px 28px rgba(0, 0, 0, 0.28);
}

.rs-help-widget__fab-mark {
	font-size: 1.35rem;
	font-weight: 700;
	line-height: 1;
}

.rs-help-widget__panel {
	position: absolute;
	right: 0;
	bottom: calc(var(--rs-help-fab) + 12px);
	width: 300px;
	max-width: calc(100vw - 32px);
	opacity: 0;
	transform: scale(0.97);
	transform-origin: bottom right;
	transition: opacity 150ms ease, transform 150ms ease;
	pointer-events: none;
}

.rs-help-widget.is-open .rs-help-widget__panel {
	opacity: 1;
	transform: scale(1);
	pointer-events: auto;
}

.rs-help-widget__panel[hidden] {
	display: block !important;
	visibility: hidden;
}

.rs-help-widget.is-open .rs-help-widget__panel[hidden] {
	visibility: visible;
}

@media (max-width: 768px) {
	.rs-help-widget__panel {
		width: 92vw;
	}
}

.rs-help-widget__card {
	position: relative;
	padding: 1.15rem 1.15rem 1rem;
	border-radius: 14px;
	background: #ffffff;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
	color: #1a1a1a;
}

.rs-help-widget__close {
	position: absolute;
	top: 0.45rem;
	right: 0.45rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: #666;
	font-size: 1.35rem;
	line-height: 1;
	cursor: pointer;
}

.rs-help-widget__close:hover,
.rs-help-widget__close:focus-visible {
	color: #111;
	background: #f3f3f3;
	outline: none;
}

.rs-help-widget__title {
	margin: 0 1.5rem 0.25rem 0;
	font-size: 1.05rem;
	font-weight: 700;
	color: #111;
}

.rs-help-widget__subtitle {
	margin: 0 0 0.9rem;
	font-size: 0.9rem;
	color: #5c5c5c;
}

.rs-help-widget__actions {
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
}

.rs-help-widget__action {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	padding: 0.7rem 0.9rem;
	border-radius: 10px;
	background: #111111;
	color: #ffffff !important;
	text-decoration: none !important;
	font-size: 0.95rem;
	font-weight: 600;
	transition: transform 0.2s ease, background 0.2s ease;
}

.rs-help-widget__action:hover,
.rs-help-widget__action:focus-visible {
	background: #2a2a2a;
	transform: translateY(-1px);
	outline: none;
}

.rs-help-widget__email-label-desktop {
	display: none;
}

/* Desktop / tablet landscape-wide: email only */
@media (min-width: 769px) {
	.rs-help-widget__action--sms {
		display: none !important;
	}

	.rs-help-widget__email-label-mobile {
		display: none;
	}

	.rs-help-widget__email-label-desktop {
		display: inline;
	}
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
	.rs-help-widget__fab,
	.rs-help-widget__panel,
	.rs-help-widget__action {
		transition: none;
	}
}
