/*
 * Retrivo front end
 * Retrivo front end. Colours and corner radius come from Settings > Appearance.
 *
 * Table of contents
 *  1. Base and variables
 *  2. Buttons
 *  3. Headings
 *  4. Cards and lists
 *  5. Status badges
 *  6. Progress tracker
 *  7. Banners
 *  8. Request page layout
 *  9. Conversation
 *  10. Form
 *  11. Item picker
 *  12. Photo drop zone
 *  13. Settings preview
 *  14. Guest page, serial numbers, header actions
 *  15. Media queries
 */

/* ==========================================================================
   1. Base and variables
   ========================================================================== */

.rdrma-wrap {
	--rdrma-primary: #2563eb;
	--rdrma-on-primary: #ffffff;
	--rdrma-primary-soft: rgba(37, 99, 235, 0.12);
	--rdrma-radius: 12px;
	--rdrma-line: rgba(127, 127, 127, 0.3);
	--rdrma-soft: rgba(127, 127, 127, 0.08);
	--rdrma-danger: #dc2626;
}

.rdrma-wrap {
	margin: 0 0 2em;
}

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

.rdrma-wrap [hidden] {
	display: none !important; /* Needed: themes set display on form elements and would show hidden blocks. */
}

.rdrma-icon {
	flex: none;
	vertical-align: middle;
}

/* End 1. Base and variables */

/* ==========================================================================
   2. Buttons
   ========================================================================== */

.rdrma-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.45em;
	margin: 0;
	padding: 0.7em 1.25em;
	border: 1px solid var(--rdrma-primary);
	border-radius: var(--rdrma-radius);
	background: var(--rdrma-primary);
	color: var(--rdrma-on-primary);
	font: inherit;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: filter 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.rdrma-btn:hover,
.rdrma-btn:focus {
	background: var(--rdrma-primary);
	color: var(--rdrma-on-primary);
	filter: brightness(1.08);
	text-decoration: none;
}

.rdrma-btn:focus-visible {
	outline: 3px solid var(--rdrma-primary-soft);
	outline-offset: 2px;
	box-shadow: 0 0 0 2px var(--rdrma-primary);
}

.rdrma-btn--ghost {
	border-color: var(--rdrma-line);
	background: transparent;
	color: inherit;
}

.rdrma-btn--ghost:hover,
.rdrma-btn--ghost:focus {
	background: var(--rdrma-soft);
	color: inherit;
	filter: none;
}

.rdrma-btn--sm {
	padding: 0.45em 0.9em;
	font-size: 0.9em;
}

.rdrma-btn--lg {
	padding: 0.85em 1.7em;
}

.rdrma-btn[disabled] {
	opacity: 0.6;
	cursor: progress;
}

.rdrma-wrap .rdrma-link-btn {
	display: inline;
	width: auto;
	height: auto;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	color: var(--rdrma-primary);
	font: inherit;
	font-weight: 600;
	line-height: inherit;
	letter-spacing: normal;
	text-transform: none;
	text-decoration: underline;
	cursor: pointer;
}

.rdrma-wrap .rdrma-link-btn:hover,
.rdrma-wrap .rdrma-link-btn:active {
	border: 0;
	background: none;
	box-shadow: none;
	color: var(--rdrma-primary);
	text-decoration: none;
}

.rdrma-wrap .rdrma-link-btn:focus-visible {
	outline: 2px solid var(--rdrma-primary);
	outline-offset: 3px;
	background: none;
}

/* End 2. Buttons */

/* ==========================================================================
   3. Headings
   ========================================================================== */

.rdrma-back {
	margin: 1.5em 0 1.25em;
}

.rdrma-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1em;
	margin: 0 0 1.5em;
}

.rdrma-title {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5em;
	margin: 0;
	font-size: 1.5em;
	line-height: 1.25;
}

.rdrma-sub {
	margin: 0.3em 0 0;
	opacity: 0.7;
}

.rdrma-form > .rdrma-sub:last-child {
	margin: 16px 0 6px;
}

.rdrma-section {
	margin: 0 0 2em;
}

.rdrma-section__title {
	display: flex;
	align-items: center;
	gap: 0.6em;
	margin: 0 0 0.9em;
	font-size: 1.1em;
}

.rdrma-num {
	display: inline-grid;
	place-items: center;
	flex: none;
	width: 1.8em;
	height: 1.8em;
	border-radius: 50%;
	background: var(--rdrma-primary);
	color: var(--rdrma-on-primary);
	font-size: 0.85em;
	font-weight: 700;
}

.rdrma-mini {
	margin: 1.2em 0 0.4em;
	font-size: 0.8em;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	opacity: 0.65;
}

/* End 3. Headings */

/* ==========================================================================
   4. Cards and lists
   ========================================================================== */

.rdrma-cards {
	display: grid;
	gap: 0.75em;
	margin: 0;
	padding: 0;
	list-style: none;
}

.rdrma-card {
	display: block;
	margin: 0 0 1.25em;
	padding: 1.2em 1.3em;
	border: 1px solid var(--rdrma-line);
	border-radius: var(--rdrma-radius);
}

.rdrma-cards .rdrma-card {
	margin: 0;
}

.rdrma-card--request {
	display: flex;
	align-items: center;
	gap: 1em;
	color: inherit;
	text-decoration: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.rdrma-card--request:hover,
.rdrma-card--request:focus-visible {
	border-color: var(--rdrma-primary);
	box-shadow: 0 6px 22px rgba(0, 0, 0, 0.08);
	color: inherit;
	text-decoration: none;
	transform: translateY(-1px);
}

.rdrma-card__icon {
	display: grid;
	flex: none;
	place-items: center;
	width: 46px;
	height: 46px;
	border-radius: calc(var(--rdrma-radius) - 2px);
	background: var(--rdrma-primary-soft);
	color: var(--rdrma-primary);
}

.rdrma-card__main {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 0.2em;
	min-width: 0;
}

.rdrma-card__top {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.6em;
}

.rdrma-card__meta {
	font-size: 0.9em;
	opacity: 0.7;
}

.rdrma-card__items {
	overflow: hidden;
	font-size: 0.9em;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.rdrma-card__arrow {
	flex: none;
	font-size: 1.8em;
	line-height: 1;
	opacity: 0.4;
}

.rdrma-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.3em;
	padding: 2.5em 1.5em;
	border: 2px dashed var(--rdrma-line);
	border-radius: var(--rdrma-radius);
	text-align: center;
}

.rdrma-empty p {
	max-width: 28em;
	margin: 0;
	opacity: 0.7;
}

.rdrma-empty__icon {
	display: grid;
	place-items: center;
	width: 66px;
	height: 66px;
	margin-bottom: 0.4em;
	border-radius: 50%;
	background: var(--rdrma-primary-soft);
	color: var(--rdrma-primary);
}

.rdrma-pagination {
	display: flex;
	gap: 0.6em;
	margin-top: 1.2em;
}

/* End 4. Cards and lists */

/* ==========================================================================
   5. Status badges
   ========================================================================== */

.rdrma-status {
	display: inline-flex;
	align-items: center;
	padding: 0.15em 0.75em;
	border-radius: 999px;
	background: rgba(127, 127, 127, 0.18);
	font-size: 0.78rem;
	font-weight: 600;
	line-height: 1.6;
	vertical-align: middle;
	white-space: nowrap;
}

.rdrma-status--requested { background: rgba(245, 158, 11, 0.18); color: #b45309; }

.rdrma-status--approved { background: rgba(37, 99, 235, 0.15); color: #2563eb; }

.rdrma-status--shipped { background: rgba(79, 70, 229, 0.15); color: #4f46e5; }

.rdrma-status--received { background: rgba(8, 145, 178, 0.15); color: #0e7490; }

.rdrma-status--resolved { background: rgba(5, 150, 105, 0.16); color: #047857; }

.rdrma-status--rejected { background: rgba(220, 38, 38, 0.14); color: #dc2626; }

.rdrma-status--cancelled { color: inherit; opacity: 0.8; }

/* End 5. Status badges */

/* ==========================================================================
   6. Progress tracker
   ========================================================================== */

.rdrma-steps {
	display: flex;
	margin: 0 0 1.5em;
	padding: 1.2em 0.5em 1em;
	border: 1px solid var(--rdrma-line);
	border-radius: var(--rdrma-radius);
	list-style: none;
}

.rdrma-step {
	position: relative;
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: center;
	gap: 0.45em;
	margin: 0;
	font-size: 0.85em;
	text-align: center;
	opacity: 0.55;
}

.rdrma-step::before {
	content: "";
	position: absolute;
	top: 17px;
	right: calc(50% + 21px);
	left: calc(-50% + 21px);
	height: 2px;
	background: var(--rdrma-line);
}

.rdrma-step:first-child::before {
	display: none;
}

.rdrma-step__dot {
	position: relative;
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border: 2px solid var(--rdrma-line);
	border-radius: 50%;
}

.rdrma-step.is-done,
.rdrma-step.is-current {
	opacity: 1;
}

.rdrma-step.is-done::before,
.rdrma-step.is-current::before {
	background: var(--rdrma-primary);
}

.rdrma-step.is-done .rdrma-step__dot {
	border-color: var(--rdrma-primary);
	background: var(--rdrma-primary);
	color: var(--rdrma-on-primary);
}

.rdrma-step.is-current .rdrma-step__dot {
	border-color: var(--rdrma-primary);
	background: var(--rdrma-primary-soft);
	box-shadow: 0 0 0 4px var(--rdrma-primary-soft);
	color: var(--rdrma-primary);
}

.rdrma-step.is-current .rdrma-step__label {
	font-weight: 700;
}

/* End 6. Progress tracker */

/* ==========================================================================
   7. Banners
   ========================================================================== */

.rdrma-banner {
	display: flex;
	flex-direction: column;
	gap: 0.5em;
	margin: 0 0 1.25em;
	padding: 1em 1.25em;
	border: 1px solid var(--rdrma-line);
	border-radius: var(--rdrma-radius);
	background: var(--rdrma-soft);
}

.rdrma-banner p {
	margin: 0;
}

.rdrma-banner--info {
	border-color: var(--rdrma-primary);
	background: var(--rdrma-primary-soft);
}

.rdrma-banner--rejected {
	border-color: var(--rdrma-danger);
	background: rgba(220, 38, 38, 0.08);
}

.rdrma-address {
	padding: 0.6em 0.9em;
	border-radius: calc(var(--rdrma-radius) - 4px);
	background: rgba(127, 127, 127, 0.12);
	font-weight: 600;
}

.rdrma-coupon-card {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1em;
	margin: 0 0 1.25em;
	padding: 1em 1.25em;
	border: 2px dashed var(--rdrma-primary);
	border-radius: var(--rdrma-radius);
	background: var(--rdrma-primary-soft);
}

.rdrma-coupon-card > span:nth-child(2) {
	display: flex;
	flex: 1;
	flex-direction: column;
}

.rdrma-coupon-card strong {
	font-size: 1.3em;
	letter-spacing: 0.06em;
}

.rdrma-coupon-card__icon {
	color: var(--rdrma-primary);
}

/* End 7. Banners */

/* ==========================================================================
   8. Request page layout
   ========================================================================== */

.rdrma-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
	gap: 1.25em;
	align-items: start;
}

.rdrma-dl {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 0.4em 1em;
	margin: 0;
}

.rdrma-dl dt {
	opacity: 0.65;
}

.rdrma-dl dd {
	margin: 0;
	font-weight: 600;
}

.rdrma-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.rdrma-list li {
	margin: 0 0 0.4em;
	padding: 0;
	list-style: none;
}

.rdrma-qtybadge {
	opacity: 0.7;
}

.rdrma-text p:last-child {
	margin-bottom: 0;
}

.rdrma-files {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5em;
	margin: 0;
	padding: 0;
	list-style: none;
}

.rdrma-files img {
	display: block;
	width: 72px;
	height: 72px;
	border: 1px solid var(--rdrma-line);
	border-radius: calc(var(--rdrma-radius) - 4px);
	object-fit: cover;
}

.rdrma-files__doc {
	display: grid;
	place-items: center;
	width: 72px;
	height: 72px;
	border: 1px solid var(--rdrma-line);
	border-radius: calc(var(--rdrma-radius) - 4px);
	background: var(--rdrma-soft);
	font-size: 0.8em;
	font-weight: 700;
}

/* End 8. Request page layout */

/* ==========================================================================
   9. Conversation
   ========================================================================== */

.rdrma-chat {
	display: flex;
	flex-direction: column;
	gap: 0.75em;
	max-height: 480px;
	margin: 0 0 1em;
	padding: 0.25em;
	overflow-y: auto;
}

.rdrma-bubble {
	max-width: 88%;
	line-height: 1.5;
	padding: 0.7em 1em;
	border-radius: var(--rdrma-radius);
	background: var(--rdrma-soft);
}

.rdrma-bubble--customer {
	align-self: flex-end;
	background: var(--rdrma-primary);
	color: var(--rdrma-on-primary);
}

.rdrma-bubble--admin {
	align-self: flex-start;
}

.rdrma-bubble__meta {
	margin-bottom: 0.25em;
	font-size: 0.78em;
	opacity: 0.75;
}

.rdrma-bubble__body p {
	margin: 0 0 0.5em;
	line-height: inherit;
}

.rdrma-bubble__body p:last-child {
	margin-bottom: 0;
}

.rdrma-system {
	display: flex;
	flex-direction: column;
	align-items: center;
	font-size: 0.82em;
	opacity: 0.65;
	text-align: center;
}

.rdrma-reply {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 0.6em;
}

.rdrma-cancel {
	margin: 0.75em 0 0;
	text-align: right;
}

/* End 9. Conversation */

/* ==========================================================================
   10. Form
   ========================================================================== */

.rdrma-field {
	margin: 0 0 1.2em;
}

.rdrma-label {
	display: block;
	margin-bottom: 0.4em;
	font-weight: 600;
}

.rdrma-opt {
	font-weight: 400;
	opacity: 0.6;
}

.rdrma-two {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 0 1em;
}

.rdrma-wrap select,
.rdrma-wrap textarea,
.rdrma-wrap input[type="email"],
.rdrma-wrap input[type="text"] {
	display: block;
	width: 100%;
	max-width: none;
	padding: 0.7em 0.9em;
	border: 1px solid var(--rdrma-line);
	border-radius: var(--rdrma-radius);
	background-color: transparent;
	color: inherit;
	font: inherit;
}

.rdrma-wrap .rdrma-form .rdrma-field {
	display: block;
	display: flow-root;
	clear: both;
	width: 100%;
}

.rdrma-wrap .rdrma-form .rdrma-field select,
.rdrma-wrap .rdrma-form .rdrma-field textarea {
	display: block;
	float: none;
	box-sizing: border-box;
	width: 100%;
	min-width: 100%;
	max-width: 100%;
	height: auto;
	margin: 0;
}

.rdrma-wrap .rdrma-form .rdrma-field > label,
.rdrma-wrap .rdrma-form .rdrma-field > .rdrma-label {
	display: block;
	float: none;
	width: auto;
	margin: 0 0 0.4em;
}

.rdrma-wrap select:focus,
.rdrma-wrap textarea:focus,
.rdrma-wrap input[type="email"]:focus,
.rdrma-wrap input[type="text"]:focus {
	border-color: var(--rdrma-primary);
	outline: 3px solid var(--rdrma-primary-soft);
}

.rdrma-counter {
	display: block;
	margin-top: 0.3em;
	font-size: 0.8em;
	text-align: right;
	opacity: 0.6;
}

.rdrma-error {
	margin: 0.6em 0 0;
	color: var(--rdrma-danger);
	font-size: 0.9em;
	font-weight: 600;
}

.rdrma-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75em;
	padding-top: 1.25em;
	border-top: 1px solid var(--rdrma-line);
}

/* Visually hidden but still focusable inputs behind the pretty controls. */

.rdrma-seg__opt input,
.rdrma-choice input,
.rdrma-item__box,
.rdrma-drop__input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

.rdrma-seg {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: 0.75em;
}

.rdrma-seg__opt,
.rdrma-choice {
	position: relative;
	display: block;
	margin: 0;
	cursor: pointer;
}

.rdrma-seg__face,
.rdrma-choice__face,
.rdrma-choice--demo {
	display: flex;
	align-items: center;
	gap: 0.9em;
	height: 100%;
	padding: 0.95em 1.1em;
	border: 1px solid var(--rdrma-line);
	border-radius: var(--rdrma-radius);
	transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.rdrma-seg__face small,
.rdrma-choice__face small,
.rdrma-choice--demo small {
	display: block;
	font-size: 0.85em;
	font-weight: 400;
	opacity: 0.7;
}

.rdrma-seg__face:hover,
.rdrma-choice__face:hover {
	border-color: var(--rdrma-primary);
}

.rdrma-seg__opt input:checked + .rdrma-seg__face,
.rdrma-choice input:checked + .rdrma-choice__face,
.rdrma-choice--demo.is-selected {
	border-color: var(--rdrma-primary);
	background: var(--rdrma-primary-soft);
	box-shadow: 0 0 0 1px var(--rdrma-primary);
}

.rdrma-seg__opt input:checked + .rdrma-seg__face .rdrma-icon,
.rdrma-choice input:checked + .rdrma-choice__face .rdrma-icon,
.rdrma-choice--demo .rdrma-icon {
	color: var(--rdrma-primary);
}

.rdrma-seg__opt input:focus-visible + .rdrma-seg__face,
.rdrma-choice input:focus-visible + .rdrma-choice__face,
.rdrma-item__box:focus-visible + .rdrma-item__card {
	outline: 3px solid var(--rdrma-primary-soft);
	outline-offset: 2px;
}

.rdrma-choices {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 0.75em;
}

/* End 10. Form */

/* ==========================================================================
   11. Item picker
   ========================================================================== */

.rdrma-items {
	display: grid;
	gap: 0.6em;
	margin: 0;
	padding: 0;
	list-style: none;
}

.rdrma-item {
	position: relative;
	display: flex;
	align-items: center;
	gap: 0.75em;
	margin: 0;
}

.rdrma-item__card {
	display: flex;
	flex: 1;
	align-items: center;
	gap: 0.9em;
	min-width: 0;
	margin: 0;
	padding: 0.75em 1em;
	border: 1px solid var(--rdrma-line);
	border-radius: var(--rdrma-radius);
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.rdrma-item__card:hover {
	border-color: var(--rdrma-primary);
}

.rdrma-item__box:checked + .rdrma-item__card {
	border-color: var(--rdrma-primary);
	background: var(--rdrma-primary-soft);
	box-shadow: 0 0 0 1px var(--rdrma-primary);
}

.rdrma-item__check {
	display: grid;
	flex: none;
	place-items: center;
	width: 22px;
	height: 22px;
	border: 2px solid var(--rdrma-line);
	border-radius: 50%;
	color: transparent;
}

.rdrma-item__box:checked + .rdrma-item__card .rdrma-item__check {
	border-color: var(--rdrma-primary);
	background: var(--rdrma-primary);
	color: var(--rdrma-on-primary);
}

.rdrma-item__thumb {
	display: block;
	flex: none;
	width: 56px;
	height: 56px;
	overflow: hidden;
	border-radius: calc(var(--rdrma-radius) - 4px);
	background: var(--rdrma-soft);
}

.rdrma-item__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: cover;
}

.rdrma-item__body {
	display: flex;
	flex-direction: column;
	gap: 0.1em;
	min-width: 0;
}

.rdrma-note {
	display: block;
	font-size: 0.85em;
	opacity: 0.7;
}

.rdrma-item.is-disabled .rdrma-item__card {
	background: var(--rdrma-soft);
	cursor: not-allowed;
	opacity: 0.55;
}

.rdrma-item.is-disabled .rdrma-item__card:hover {
	border-color: var(--rdrma-line);
}

.rdrma-qty {
	display: inline-flex;
	flex: none;
	align-items: center;
	overflow: hidden;
	border: 1px solid var(--rdrma-line);
	border-radius: var(--rdrma-radius);
}

.rdrma-qty__btn {
	width: 34px;
	height: 38px;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: 1.2em;
	line-height: 1;
	cursor: pointer;
}

.rdrma-qty__btn:hover {
	background: var(--rdrma-soft);
}

.rdrma-qty input[type="number"] {
	width: 42px;
	height: 38px;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	text-align: center;
	-moz-appearance: textfield;
	appearance: textfield;
}

.rdrma-qty input[type="number"]::-webkit-outer-spin-button,
.rdrma-qty input[type="number"]::-webkit-inner-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

/* End 11. Item picker */

/* ==========================================================================
   12. Photo drop zone
   ========================================================================== */

.rdrma-drop {
	position: relative;
}

.rdrma-drop__label {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.2em;
	margin: 0;
	padding: 1.6em 1em;
	border: 2px dashed var(--rdrma-line);
	border-radius: var(--rdrma-radius);
	text-align: center;
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.rdrma-drop__label .rdrma-icon {
	color: var(--rdrma-primary);
}

.rdrma-drop__label small {
	opacity: 0.65;
}

.rdrma-drop:hover .rdrma-drop__label,
.rdrma-drop.is-over .rdrma-drop__label,
.rdrma-drop__input:focus-visible + .rdrma-drop__label {
	border-color: var(--rdrma-primary);
	background: var(--rdrma-primary-soft);
}

.rdrma-previews {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6em;
	margin: 0.8em 0 0;
	padding: 0;
	list-style: none;
}

.rdrma-preview-item {
	position: relative;
	width: 84px;
	height: 84px;
	margin: 0;
	overflow: hidden;
	border: 1px solid var(--rdrma-line);
	border-radius: calc(var(--rdrma-radius) - 4px);
	background: var(--rdrma-soft);
}

.rdrma-preview-item img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.rdrma-preview-item__doc {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	padding: 4px;
	font-size: 0.7em;
	font-weight: 700;
	text-align: center;
	word-break: break-all;
}

.rdrma-preview-item button {
	position: absolute;
	top: 3px;
	right: 3px;
	display: grid;
	place-items: center;
	width: 22px;
	height: 22px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(17, 24, 39, 0.8);
	color: #fff;
	line-height: 1;
	cursor: pointer;
}

/* End 12. Photo drop zone */

/* ==========================================================================
   13. Settings preview
   ========================================================================== */

.rdrma-preview .rdrma-card {
	max-width: 420px;
}

.rdrma-preview__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 0 0 1em;
}

.rdrma-choice--demo {
	margin: 0 0 1em;
}

/* End 13. Settings preview */

/* ==========================================================================
   14. Guest page, serial numbers, header actions
   ========================================================================== */

.rdrma-wrap--narrow {
	max-width: 520px;
	margin-left: auto;
	margin-right: auto;
}

.rdrma-head__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}


.rdrma-back a {
	color: inherit;
}

.rdrma-back-form {
	margin: 1.5em 0 1.25em;
}

.rdrma-item {
	flex-wrap: wrap;
}

.rdrma-serial {
	flex: 1 1 100%;
	display: block;
	padding: 0 4px 4px;
}

.rdrma-serial[hidden] {
	display: none;
}

.rdrma-serial input {
	width: 100%;
	max-width: 360px;
}

.rdrma-serial-line {
	display: block;
	opacity: .75;
}

/* End 14. Guest page, serial numbers, header actions */

/* ==========================================================================
   15. Media queries
   ========================================================================== */

@media (max-width: 800px) {
	.rdrma-layout {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 560px) {
	.rdrma-step__label {
		display: none;
	}

	.rdrma-steps {
		position: relative;
		justify-content: space-between;
		padding-bottom: 2.4em;
	}

	.rdrma-step {
		position: static;
		flex: 0 0 auto;
	}

	.rdrma-step::before {
		display: none;
	}

	.rdrma-step.is-current .rdrma-step__label {
		display: block;
		position: absolute;
		right: 0;
		bottom: 0.8em;
		left: 0;
		text-align: center;
	}

	.rdrma-item {
		flex-wrap: wrap;
	}

	.rdrma-item__card {
		flex: 1 1 100%;
	}

	.rdrma-qty {
		margin-left: auto;
	}

	.rdrma-card__items {
		white-space: normal;
	}

	.rdrma-actions {
		flex-direction: column;
	}

	.rdrma-actions .rdrma-btn {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.rdrma-wrap * {
		transition: none !important; /* Needed: respects the visitor's reduced-motion setting over any theme transition. */
	}
}

/* End 15. Media queries */
