/**
 * Rir tools product support form.
 *
 * @version 1.5.15
 */
.rrtsf,
.rrtsf * ,
.rrtsf *::before,
.rrtsf *::after {
	box-sizing: border-box;
}

.rrtsf {
	--rrtsf-navy: #1e3b66;
	--rrtsf-navy-soft: #2d527c;
	--rrtsf-text: #172033;
	--rrtsf-muted: #64748b;
	--rrtsf-border: rgba(30, 59, 102, 0.18);
	--rrtsf-surface: #ffffff;
	--rrtsf-soft: #f4f8fc;
	--rrtsf-shadow: 0 18px 54px rgba(14, 30, 52, 0.24);
	--rrtsf-focus: 0 0 0 3px rgba(30, 59, 102, 0.18);
	color: var(--rrtsf-text);
	font-family: var(--theme-font-family, var(--fontFamily, "Segoe UI", Arial, sans-serif));
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}

.rrtsf-icon {
	display: block;
	width: 1.15em;
	height: 1.15em;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 2;
}

.rrtsf-bubble {
	position: fixed;
	right: max(20px, env(safe-area-inset-right));
	bottom: max(20px, env(safe-area-inset-bottom));
	z-index: 99990;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	min-height: 48px;
	max-width: min(260px, calc(100vw - 40px));
	padding: 0 18px;
	border: 1px solid rgba(255, 255, 255, 0.26);
	border-radius: 999px;
	background: linear-gradient(135deg, var(--rrtsf-navy), var(--rrtsf-navy-soft));
	box-shadow: 0 12px 30px rgba(30, 59, 102, 0.24);
	color: #fff;
	font-size: 15px;
	font-weight: 800;
	line-height: 1;
	cursor: pointer;
	transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.rrtsf-bubble:hover,
.rrtsf-bubble:focus-visible {
	transform: translateY(-1px);
	box-shadow: 0 16px 38px rgba(30, 59, 102, 0.30);
}

.rrtsf-bubble:focus-visible,
.rrtsf-mobile-entry__button:focus-visible,
.rrtsf-modal__close:focus-visible {
	outline: 0;
	box-shadow: var(--rrtsf-focus);
}

.rrtsf-mobile-entry {
	display: none;
	margin: 12px 0 16px;
	padding: 0 2px;
	text-align: center;
}

.rrtsf-mobile-entry__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: auto;
	max-width: min(100%, 340px);
	min-height: 42px;
	padding: 9px 14px;
	border: 1px solid rgba(30, 59, 102, 0.24);
	border-radius: 999px;
	background: linear-gradient(135deg, rgba(30, 59, 102, 0.09), rgba(47, 82, 124, 0.14));
	color: var(--rrtsf-navy);
	font-size: 14px;
	font-weight: 800;
	line-height: 1.2;
	cursor: pointer;
}

.rrtsf-modal[hidden] {
	display: none !important;
}

.rrtsf-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
}

.rrtsf-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(7, 18, 32, 0.50);
	backdrop-filter: blur(2px);
}

.rrtsf-modal__dialog {
	position: absolute;
	right: max(18px, env(safe-area-inset-right));
	bottom: max(18px, env(safe-area-inset-bottom));
	display: flex;
	flex-direction: column;
	width: min(420px, calc(100vw - 36px));
	max-height: min(82vh, 720px);
	overflow: hidden;
	border: 1px solid var(--rrtsf-border);
	border-radius: 22px;
	background: var(--rrtsf-surface);
	box-shadow: var(--rrtsf-shadow);
	transform: translateY(8px) scale(0.98);
	opacity: 0;
	transition: transform 180ms ease, opacity 180ms ease;
}

.rrtsf-modal.is-open .rrtsf-modal__dialog {
	transform: translateY(0) scale(1);
	opacity: 1;
}

.rrtsf-modal__header {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px;
	border-bottom: 1px solid var(--rrtsf-border);
	background: linear-gradient(180deg, #ffffff, #f8fbfe);
}

.rrtsf-product {
	display: grid;
	grid-template-columns: 58px minmax(0, 1fr);
	align-items: center;
	gap: 10px;
	min-width: 0;
	color: inherit;
	text-decoration: none;
}

.rrtsf-product__image,
.rrtsf-product__placeholder {
	display: grid;
	width: 58px;
	height: 58px;
	overflow: hidden;
	border-radius: 14px;
	background: var(--rrtsf-soft);
	place-items: center;
}

.rrtsf-product__img {
	display: block;
	width: 58px;
	height: 58px;
	object-fit: cover;
}

.rrtsf-product__placeholder {
	color: var(--rrtsf-navy);
	font-size: 22px;
	font-weight: 900;
}

.rrtsf-product__text {
	min-width: 0;
}

.rrtsf-product__eyebrow {
	display: block;
	margin-bottom: 2px;
	color: var(--rrtsf-muted);
	font-size: 12px;
	font-weight: 800;
	line-height: 1.25;
}

.rrtsf-product__name {
	display: -webkit-box;
	overflow: hidden;
	color: var(--rrtsf-navy);
	font-size: 15px;
	font-weight: 900;
	line-height: 1.2;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.rrtsf-modal__close {
	flex: 0 0 auto;
	display: grid;
	width: 34px;
	height: 34px;
	margin-left: auto;
	padding: 0;
	border: 1px solid var(--rrtsf-border);
	border-radius: 999px;
	background: #fff;
	color: var(--rrtsf-navy);
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	place-items: center;
}

.rrtsf-modal__body {
	overflow: auto;
	padding: 14px;
	-webkit-overflow-scrolling: touch;
}

.rrtsf-modal__intro {
	margin: 0 0 12px;
	color: var(--rrtsf-muted);
	font-size: 14px;
	line-height: 1.45;
}

.rrtsf-form :where(input, select, textarea) {
	max-width: 100%;
}

.rrtsf-form__notice {
	margin: 0;
	padding: 12px;
	border: 1px solid var(--rrtsf-border);
	border-radius: 14px;
	background: var(--rrtsf-soft);
	color: var(--rrtsf-navy);
	font-weight: 700;
}

body.rrtsf-lock {
	overflow: hidden;
}

@media (max-width: 960px) {
	.rrtsf-bubble {
		display: none;
	}

	.rrtsf-mobile-entry {
		display: block;
	}

	.rrtsf-modal__dialog {
		right: 0;
		bottom: 0;
		left: 0;
		width: 100%;
		max-height: min(86dvh, 720px);
		border-right: 0;
		border-bottom: 0;
		border-left: 0;
		border-radius: 22px 22px 0 0;
	}

	.rrtsf-modal__header {
		padding: 11px 12px;
	}

	.rrtsf-modal__body {
		padding: 13px 12px max(13px, env(safe-area-inset-bottom));
	}
}

@media (min-width: 681px) and (max-width: 960px) {
	.rrtsf-mobile-entry__button {
		max-width: 360px;
	}
}

@media (max-width: 420px) {
	.rrtsf-mobile-entry__button {
		max-width: 100%;
		font-size: 13px;
	}

	.rrtsf-product {
		grid-template-columns: 52px minmax(0, 1fr);
	}

	.rrtsf-product__image,
	.rrtsf-product__placeholder,
	.rrtsf-product__img {
		width: 52px;
		height: 52px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.rrtsf-bubble,
	.rrtsf-modal__dialog {
		transition: none;
	}
}
