.rrq {
	--rrq-ink: #111111;
	--rrq-ink-dark: #000000;
	--rrq-red: #d71920;
	--rrq-red-dark: #a90f15;
	--rrq-soft: #5f6368;
	--rrq-line: #d7d7d7;
	--rrq-wash: #f6f6f6;
	--rrq-tag: #fff1f1;
	--rrq-tag-edge: #d71920;
	--rrq-bad: #b3261e;

	direction: rtl;
	text-align: right;
	max-width: 720px;
	margin: 0 auto;
	color: var(--rrq-ink);
	font-family: inherit;
	font-size: 16px;
	line-height: 1.75;
}

.rrq *,
.rrq *::before,
.rrq *::after {
	box-sizing: border-box;
}

.rrq [hidden] {
	display: none !important;
}

.rrq-form {
	display: grid;
	gap: 30px;
}

.rrq fieldset {
	border: 0;
	margin: 0;
	padding: 0;
	min-width: 0;
}

.rrq legend {
	padding: 0;
	margin: 0 0 14px;
	font-size: 1.15em;
	font-weight: 700;
	color: var(--rrq-ink);
}

/* Fields */

.rrq-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
}

@media (min-width: 640px) {
	.rrq-grid {
		grid-template-columns: 1fr 1fr;
	}
	.rrq-full {
		grid-column: 1 / -1;
	}
}

.rrq-after-choices {
	margin-top: 16px;
}

.rrq-field label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
	font-size: .95em;
}

.rrq-help {
	display: block;
	margin-top: 7px;
	color: var(--rrq-soft);
	font-size: .82em;
}

.rrq-device-field input {
	border-width: 2px;
	border-color: #222;
}

.rrq-device-field input:focus {
	border-color: var(--rrq-red);
}

.rrq-opt {
	margin-inline-start: 6px;
	font-weight: 400;
	font-size: .85em;
	color: var(--rrq-soft);
}

.rrq input[type="text"],
.rrq input[type="tel"],
.rrq select,
.rrq textarea {
	width: 100%;
	margin: 0;
	padding: 11px 12px;
	border: 1.5px solid var(--rrq-line);
	border-radius: 6px;
	background: #fff;
	color: var(--rrq-ink);
	font: inherit;
	line-height: 1.5;
}

.rrq textarea {
	resize: vertical;
}

.rrq input[type="file"] {
	width: 100%;
	padding: 10px;
	border: 1.5px dashed var(--rrq-line);
	border-radius: 6px;
	background: var(--rrq-wash);
	font: inherit;
	font-size: .9em;
}

.rrq input:focus,
.rrq select:focus,
.rrq textarea:focus {
	outline: 3px solid rgba(215, 25, 32, .18);
	outline-offset: 1px;
	border-color: var(--rrq-red);
}

.rrq .rrq-invalid {
	border-color: var(--rrq-bad);
	background: #fffafa;
}

.rrq-hp {
	position: absolute;
	inset-inline-start: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Delivery choices */

.rrq-choices {
	display: grid;
	gap: 10px;
}

@media (min-width: 640px) {
	.rrq-choices {
		grid-template-columns: repeat(3, 1fr);
	}
}

.rrq-choice {
	position: relative;
	display: block;
	padding: 12px 14px;
	border: 1.5px solid var(--rrq-line);
	border-radius: 6px;
	background: #fff;
	cursor: pointer;
}

.rrq-choice input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

.rrq-choice-t {
	display: block;
	font-weight: 700;
	line-height: 1.5;
}

.rrq-choice-d {
	display: block;
	margin-top: 2px;
	font-size: .85em;
	line-height: 1.6;
	color: var(--rrq-soft);
}

.rrq-choice.is-checked {
	border-color: var(--rrq-red);
	box-shadow: inset 0 0 0 1.5px var(--rrq-red);
	background: var(--rrq-wash);
}

.rrq-choice.is-focus {
	outline: 3px solid rgba(215, 25, 32, .25);
	outline-offset: 2px;
}

/* Buttons and messages */

.rrq-btn {
	display: inline-block;
	padding: 13px 28px;
	border: 1.5px solid var(--rrq-ink);
	border-radius: 6px;
	background: var(--rrq-red);
	color: #fff;
	font: inherit;
	font-weight: 700;
	line-height: 1.4;
	text-decoration: none;
	cursor: pointer;
}

.rrq-btn:hover,
.rrq-btn:focus {
	background: var(--rrq-red-dark);
	color: #fff;
}

.rrq-btn:focus-visible {
	outline: 3px solid rgba(215, 25, 32, .25);
	outline-offset: 2px;
}

.rrq-btn[disabled] {
	opacity: .65;
	cursor: wait;
}

.rrq-btn-ghost {
	background: transparent;
	color: var(--rrq-ink);
}

.rrq-btn-ghost:hover,
.rrq-btn-ghost:focus {
	background: var(--rrq-wash);
	color: var(--rrq-ink);
}

.rrq-msg {
	margin: 0;
	padding: 12px 14px;
	border: 1px solid #f1bdb9;
	border-radius: 6px;
	background: #fdeceb;
	color: var(--rrq-bad);
	font-weight: 600;
}

/* Repair tag (confirmation and tracking result) */

.rrq-tag {
	position: relative;
	max-width: 440px;
	margin: 30px auto 18px;
	padding: 70px 28px 28px;
	border: 2px solid var(--rrq-tag-edge);
	border-radius: 10px;
	background: var(--rrq-tag);
	box-shadow: 0 3px 0 var(--rrq-tag-edge);
	text-align: center;
}

.rrq-tag::before {
	content: "";
	position: absolute;
	top: 20px;
	left: 50%;
	width: 24px;
	height: 24px;
	margin-left: -12px;
	border: 2px solid var(--rrq-tag-edge);
	border-radius: 50%;
	background: #fff;
	box-shadow: inset 0 2px 0 rgba(0, 0, 0, .14);
}

.rrq-tag p {
	margin: 0;
}

.rrq-tag-title {
	font-size: 1.2em;
	font-weight: 800;
}

.rrq-tag-cut {
	margin: 18px -28px;
	border-top: 2px dashed var(--rrq-tag-edge);
}

.rrq-tag-label {
	font-size: .9em;
	color: #5b4712;
}

.rrq-code {
	direction: ltr;
	margin: 2px 0 8px !important;
	font-size: 2.7rem;
	font-weight: 800;
	line-height: 1.3;
	letter-spacing: .14em;
	font-variant-numeric: tabular-nums;
	user-select: all;
}

.rrq-copy {
	padding: 4px 14px;
	border: 1.5px solid var(--rrq-ink);
	border-radius: 999px;
	background: transparent;
	color: var(--rrq-ink);
	font: inherit;
	font-size: .85em;
	cursor: pointer;
}

.rrq-copy:hover {
	background: rgba(255, 255, 255, .5);
}

.rrq-tag-note {
	margin-top: 18px !important;
}

.rrq-tag-phone {
	margin-top: 8px !important;
	font-weight: 700;
}

.rrq-tag-phone a {
	color: inherit;
}

.rrq-done {
	outline: none;
}

.rrq-done-help {
	max-width: 440px;
	margin: 0 auto 16px;
	text-align: center;
	color: var(--rrq-soft);
}

.rrq-done-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin: 0;
}

/* Tracking result */

.rrq-result {
	outline: none;
}

.rrq-result .rrq-tag {
	padding-top: 66px;
}

.rrq-device {
	font-size: 1.15em;
	font-weight: 800;
}

.rrq-device-code {
	direction: ltr;
	font-size: .9em;
	color: #5b4712;
}

.rrq-status-now {
	margin-top: 12px !important;
	font-size: 1.5em;
	font-weight: 800;
	line-height: 1.4;
}

.rrq-status-now.is-cancelled {
	color: var(--rrq-bad);
}

.rrq-steps {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	margin: 22px -10px 0;
	padding: 0;
	list-style: none;
}

.rrq-steps li {
	position: relative;
	padding: 26px 2px 0;
	font-size: .78em;
	line-height: 1.5;
	color: #6b5620;
	text-align: center;
}

.rrq-steps li::before {
	content: "";
	position: absolute;
	top: 0;
	left: 50%;
	z-index: 1;
	width: 16px;
	height: 16px;
	margin-left: -8px;
	border: 2px solid var(--rrq-tag-edge);
	border-radius: 50%;
	background: #fff;
}

.rrq-steps li::after {
	content: "";
	position: absolute;
	top: 7px;
	left: -50%;
	width: 100%;
	height: 2px;
	background: var(--rrq-tag-edge);
	opacity: .5;
}

.rrq-steps li:last-child::after {
	display: none;
}

.rrq-steps li.is-done::before {
	border-color: var(--rrq-red);
	background: var(--rrq-red);
}

.rrq-steps li.is-done::after {
	background: var(--rrq-red);
	opacity: 1;
}

.rrq-steps li.is-current {
	color: var(--rrq-ink);
	font-weight: 800;
}

.rrq-steps li.is-current::before {
	border-color: var(--rrq-red);
	background: #fff;
	box-shadow: inset 0 0 0 3px var(--rrq-ink);
}

.rrq-facts {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 6px 16px;
	margin: 22px 0 0;
	text-align: right;
}

.rrq-facts dt {
	font-weight: 700;
}

.rrq-facts dd {
	margin: 0;
}

@media (max-width: 480px) {
	.rrq-tag {
		padding-inline: 18px;
	}
	.rrq-tag-cut {
		margin-inline: -18px;
	}
	.rrq-code {
		font-size: 2.2rem;
	}
}
