/* DevVN AI Room Visualizer — frontend modal
   Design: "Atelier Linen" — flat, premium home-textile boutique.
   Ink navy + warm linen paper + champagne-brass accent, stitched hairline. */

.devvn-arv-modal,
.devvn-arv-open {
	--arv-ink: #20242e;
	--arv-ink-soft: #3a4150;
	--arv-paper: #f4f3ef;
	--arv-surface: #ffffff;
	--arv-line: #e6e3db;
	--arv-muted: #8a8e98;
	--arv-brass: #a9854f;
	--arv-brass-deep: #8a6b3b;
	--arv-linen: #efeadf;
	--arv-danger: #a8443b;
	--arv-ui: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--arv-display: "Lora", Georgia, "Times New Roman", serif;
}

/* ----------------------------------------------------------------- Trigger */

.devvn-arv-open,
.devvn-arv-open.button,
.devvn-arv-open.button.alt {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	margin-top: 12px;
	padding: 11px 18px;
	border: 0;
	border-radius: 12px;
	background: #bf6a38;
	color: #fff;
	font-family: var(--arv-ui);
	line-height: 1.18;
	text-align: left;
	cursor: pointer;
	box-shadow: none;
	text-shadow: none;
	transition: background 0.18s ease, transform 0.18s ease;
}

.devvn-arv-open:hover,
.devvn-arv-open.button:hover {
	background: #a85628;
	color: #fff;
	transform: translateY(-1px);
}

.devvn-arv-open__badge {
	flex: 0 0 auto;
	width: 42px;
	height: 42px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	border: 1.5px solid rgba(255, 255, 255, 0.5);
	color: #fff;
}

.devvn-arv-open__badge svg {
	display: block;
}

.devvn-arv-open__divider {
	flex: 0 0 auto;
	align-self: stretch;
	width: 1px;
	min-height: 36px;
	background: rgba(255, 255, 255, 0.35);
}

.devvn-arv-open__label {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	gap: 1px;
	max-width: 240px;
	color: #fff;
	text-transform: uppercase;
}

.devvn-arv-open__label-main {
	font-size: 18px;
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 1.08;
}

.devvn-arv-open__label-sub {
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: 0.02em;
	line-height: 1.12;
	opacity: 0.9;
}

.devvn-arv-open__arrow {
	flex: 0 0 auto;
	margin-left: 2px;
	color: #fff;
	opacity: 0.85;
}

/* Compact "icon + text" variant — used by the custom CSS-selector button position. */
.devvn-arv-open--small,
.devvn-arv-open--small.button,
.devvn-arv-open--small.button.alt {
	gap: 8px;
	margin-top: 8px;
	padding: 7px 14px;
	border: 1.5px solid var(--arv-line);
	border-radius: 999px;
	background: #fff;
	color: var(--arv-ink);
	box-shadow: 0 1px 2px rgba(32, 36, 46, 0.06);
}

.devvn-arv-open--small:hover,
.devvn-arv-open--small.button:hover {
	background: #fff;
	color: var(--arv-ink);
	border-color: var(--arv-brass);
	transform: translateY(-1px);
}

.devvn-arv-open--small .devvn-arv-open__badge {
	width: 22px;
	height: 22px;
	border: 0;
	color: var(--arv-brass);
}

.devvn-arv-open--small .devvn-arv-open__badge svg {
	width: 18px;
	height: 18px;
}

.devvn-arv-open--small .devvn-arv-open__label {
	flex-direction: row;
	max-width: none;
	color: var(--arv-ink);
	text-transform: none;
}

.devvn-arv-open--small .devvn-arv-open__label-main {
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0;
	line-height: 1.2;
}

button.devvn-arv-open.devvn-arv-open--small {
    margin: 0 0 0 auto;
    order: 3;
}

/* ------------------------------------------------------------------- Modal */

.devvn-arv-noscroll {
	overflow: hidden;
}

.devvn-arv-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: none;
	font-family: var(--arv-ui);
	color: var(--arv-ink);
}

.devvn-arv-modal.is-open {
	display: block;
}

/* Ensure the [hidden] attribute always wins over component display rules
   (steps, choose/preview toggle, the share icon shown only when supported). */
.devvn-arv-modal [hidden] {
	display: none !important;
}

.devvn-arv-modal *,
.devvn-arv-modal *::before,
.devvn-arv-modal *::after {
	box-sizing: border-box;
}

.devvn-arv-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(24, 27, 36, 0.62);
	backdrop-filter: blur(3px);
}

.devvn-arv-modal__dialog {
	position: relative;
	margin: 0 auto;
	background: var(--arv-surface);
	width: 100%;
	max-width: 540px;
	height: 100%;
	max-height: 100%;
	overflow-y: auto;
	padding: 30px 24px 36px;
	animation: devvn-arv-in 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes devvn-arv-in {
	from { opacity: 0; transform: translateY(14px); }
	to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 600px) {
	.devvn-arv-modal__dialog {
		margin-top: 4vh;
		height: auto;
		max-height: 92vh;
		border-radius: 10px;
		box-shadow: 0 24px 70px rgba(24, 27, 36, 0.32);
	}
}
@media (max-width: 549px) {
	.devvn-arv-modal__dialog {
		padding: 40px 15px 36px;
	}
}

.devvn-arv-modal__close {
	position: absolute;
	top: 5px;
	right: 5px;
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--arv-line);
	border-radius: 6px;
	background: var(--arv-surface);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	color: var(--arv-ink-soft);
	transition: border-color 0.18s ease, color 0.18s ease;
	padding: 0 !important;
	margin: 0 !important;
	min-height: auto;
}

.devvn-arv-modal__close:hover {
	border-color: var(--arv-brass);
	color: var(--arv-brass);
}

.devvn-arv-modal__title {
	margin: 0 0 22px 0;
	font-family: var(--arv-display);
	font-size: 21px;
	font-weight: 600;
	line-height: 1.22;
	letter-spacing: -0.01em;
	color: var(--arv-ink);
}

/* ------------------------------------------------------------------ Fields */

form.devvn-arv-form{
	margin: 0 !important;
}

.devvn-arv-field {
	margin-bottom: 18px;
}

.devvn-arv-field label,
.devvn-arv-photo__label {
	display: block;
	font-weight: 600;
	margin-bottom: 7px;
	font-size: 13px;
	letter-spacing: 0.01em;
	color: var(--arv-ink-soft);
}

.devvn-arv-field input[type="text"],
.devvn-arv-field input[type="tel"] {
	width: 100%;
	padding: 5px 15px;
	border: 1px solid var(--arv-line);
	border-radius: 6px;
	background: var(--arv-surface);
	font-family: var(--arv-ui);
	font-size: 16px;
	color: var(--arv-ink);
	transition: border-color 0.16s ease, box-shadow 0.16s ease;
	margin: 0 !important;
}

.devvn-arv-field input::placeholder {
	color: #b7b9c0;
}

.devvn-arv-field input[type="text"]:focus,
.devvn-arv-field input[type="tel"]:focus {
	outline: none;
	border-color: var(--arv-brass);
	box-shadow: 0 0 0 3px rgba(169, 133, 79, 0.16);
}

.req { color: var(--arv-brass); }

/* ----------------------------------------------------------------- Photo */

.devvn-arv-photo__buttons {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	padding: 22px 18px;
	border: 1px dashed #cfc9bb;
	border-radius: 8px;
	background: var(--arv-paper);
	justify-content: center;
}

.devvn-arv-photo__buttons .devvn-arv-btn {
	display: flex;
}

.devvn-arv-btn__icon {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
}

.devvn-arv-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	padding: 5px 20px;
	margin: 0 !important;
	border-radius: 6px;
	border: 1px solid var(--arv-ink);
	background: var(--arv-ink);
	color: #fff;
	font-family: var(--arv-ui);
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.devvn-arv-btn:hover { background: #171a23; transform: translateY(-1px); color: #fff;}

.devvn-arv-btn--primary {
	width: 100%;
	margin-top: 4px;
}

.devvn-arv-btn--ghost {
	background: var(--arv-surface);
	color: var(--arv-ink);
	border-color: var(--arv-line);
}

.devvn-arv-btn--ghost:hover {
	background: var(--arv-surface);
	border-color: var(--arv-brass);
	color: var(--arv-brass-deep);
}

.devvn-arv-btn--small {
	padding: 9px 14px;
	font-size: 13px;
}

.devvn-arv-preview {
	margin-top: 14px;
	text-align: center;
}

.devvn-arv-preview__img {
	width: 100%;
	max-height: 42vh;
	object-fit: contain;
	border-radius: 8px;
	border: 1px solid var(--arv-line);
	background: var(--arv-paper);
	margin-bottom: 10px;
}

/* ------------------------------------------------- Compare columns (form) */

.devvn-arv-compare {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	align-items: stretch;
	margin-bottom: 18px;
}

.devvn-arv-compare__col {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.devvn-arv-compare__label {
	display: block;
	font-weight: 600;
	margin-bottom: 7px;
	font-size: 13px;
	letter-spacing: 0.01em;
	color: var(--arv-ink-soft);
}

.devvn-arv-product-frame {
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 150px;
	padding: 8px;
	border: 1px solid var(--arv-line);
	border-radius: 8px;
	background: var(--arv-paper);
	overflow: hidden;
}

.devvn-arv-product-frame img {
	width: 100%;
	max-height: 220px;
	object-fit: contain;
	border-radius: 4px;
	display: block;
}

/* The room column reuses the photo styles; make the upload area fill height. */
.devvn-arv-compare__col.devvn-arv-photo .devvn-arv-photo__buttons {
	flex: 1 1 auto;
	align-items: center;
	min-height: 150px;
	padding: 16px 12px;
}

.devvn-arv-compare__col.devvn-arv-photo .devvn-arv-preview {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	justify-content: center;
	margin-top: 0;
}

.devvn-arv-compare__col.devvn-arv-photo .devvn-arv-preview__img {
	max-height: 200px;
	margin-bottom: 10px;
}

@media (max-width: 400px) {
	.devvn-arv-compare {
		grid-template-columns: 1fr;
	}
}

/* ---------------------------------------------------------------- Consent */

.devvn-arv-consent {
	padding-top: 4px;
}

.devvn-arv-consent label {
	display: flex;
	gap: 11px;
	align-items: flex-start;
	font-weight: 400;
	font-size: 13px;
	line-height: 1.55;
	color: var(--arv-ink-soft);
}

.devvn-arv-consent input {
	margin-top: 3px;
	width: 17px;
	height: 17px;
	accent-color: var(--arv-brass);
	flex: 0 0 auto;
}

.devvn-arv-consent a {
	color: var(--arv-brass-deep);
	text-underline-offset: 2px;
}

.devvn-arv-error {
	color: var(--arv-danger);
	font-size: 13px;
	margin: 0 0 14px;
}

/* The stitched divider sits above the primary submit. */

.devvn-arv-step--form .devvn-arv-submit {
	margin-top: 22px;
	position: relative;
}

.devvn-arv-step--form .devvn-arv-submit::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: -14px;
	border-top: 1px dashed var(--arv-line);
}

/* ---------------------------------------------------------------- Loading */

.devvn-arv-loader {
	text-align: center;
	padding: 30px 8px 12px;
}

.devvn-arv-spinner {
	width: 52px;
	height: 52px;
	margin: 0 auto 22px;
	border: 3px solid var(--arv-line);
	border-top-color: var(--arv-brass);
	border-radius: 50%;
	animation: devvn-arv-spin 0.9s linear infinite;
}

@keyframes devvn-arv-spin { to { transform: rotate(360deg); } }

.devvn-arv-loader__text {
	font-family: var(--arv-display);
	font-size: 18px;
	font-weight: 600;
	min-height: 26px;
	margin: 0 0 18px;
	color: var(--arv-ink);
}

.devvn-arv-progress {
	height: 6px;
	background: var(--arv-linen);
	border-radius: 999px;
	overflow: hidden;
	margin-bottom: 16px;
}

.devvn-arv-progress__bar {
	height: 100%;
	width: 0;
	background: var(--arv-brass);
	border-radius: 999px;
	transition: width 0.3s ease-out;
}

.devvn-arv-loader__tip {
	font-size: 13px;
	color: var(--arv-muted);
	min-height: 20px;
	margin: 0;
}

/* The "your room + bedding → result" composition shown while waiting. */

.devvn-arv-compose {
	--arv-compose-thumb: 76px;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	gap: 8px;
	margin-top: 22px;
	padding-top: 18px;
	border-top: 1px dashed var(--arv-line);
}

.devvn-arv-compose__cell {
	flex: 0 1 92px;
	min-width: 0;
	margin: 0;
	text-align: center;
}

.devvn-arv-compose__cell img,
.devvn-arv-compose__box {
	width: 100%;
	height: var(--arv-compose-thumb);
	object-fit: cover;
	border-radius: 8px;
	border: 1px solid var(--arv-line);
	background: var(--arv-paper);
	display: block;
}

.devvn-arv-compose__cell figcaption {
	margin-top: 6px;
	font-size: 11px;
	line-height: 1.3;
	color: var(--arv-muted);
}

.devvn-arv-compose__op {
	flex: 0 0 auto;
	/* Match the thumbnail height + center so the operators line up with the
	   images, not with the variable-height captions below them. */
	height: var(--arv-compose-thumb);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	font-weight: 700;
	color: var(--arv-brass);
}

.devvn-arv-compose__box {
	position: relative;
	overflow: hidden;
}

.devvn-arv-compose__box::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient( 100deg, transparent 25%, rgba(169, 133, 79, 0.22) 50%, transparent 75% );
	transform: translateX(-100%);
	animation: devvn-arv-shimmer 1.3s ease-in-out infinite;
}

@keyframes devvn-arv-shimmer {
	to { transform: translateX(100%); }
}

/* ----------------------------------------------------------------- Result */

.devvn-arv-result__head {
	text-align: center;
	margin: 4px 0 16px;
}

.devvn-arv-result__headline {
	font-family: var(--arv-display);
	font-size: 24px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -0.01em;
	color: var(--arv-ink);
	margin: 0 0 10px;
}

.devvn-arv-result__subline {
	display: inline-block;
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--arv-brass-deep);
	margin: 0;
	padding-top: 9px;
	border-top: 1px solid rgba(169, 133, 79, 0.4);
}

.devvn-arv-result__image {
	position: relative;
	padding: 8px;
	border: 1px solid var(--arv-line);
	border-radius: 10px;
	background: var(--arv-paper);
}

.devvn-arv-result__image img {
	width: 100%;
	border-radius: 6px;
	display: block;
}

.devvn-arv-result__note {
	margin: 8px 0 0;
	text-align: center;
	font-size: 12px;
	font-style: italic;
	color: var(--arv-muted, #8a8a93);
}

.devvn-arv-result__actions {
	margin-top: 18px;
}

.devvn-arv-result__tools {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-bottom: 14px;
}

/* "Quay lại" (ghost, no fill) + "Mua ngay" split 50/50. */
.devvn-arv-result__cta {
	display: flex;
	gap: 10px;
	margin-top: 12px;
}
.devvn-arv-result__cta .devvn-arv-btn {
	flex: 1 1 0;
	width: auto;
}
.devvn-arv-result__cta .devvn-arv-btn--ghost,
.devvn-arv-result__cta .devvn-arv-btn--ghost:hover {
	background: transparent;
}

.devvn-arv-iconbtn {
	display: inline-flex;
	flex-direction: row;
	align-items: center;
	gap: 6px;
	min-width: 78px;
	padding: 5px 8px;
	border: 1px solid var(--arv-line);
	border-radius: 10px;
	background: var(--arv-surface);
	color: var(--arv-ink-soft);
	font-family: var(--arv-ui);
	font-size: 11.5px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	text-decoration: none;
	transition: border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
	margin: 0;
}

.devvn-arv-iconbtn:hover {
	border-color: var(--arv-brass);
	color: var(--arv-brass-deep);
	transform: translateY(-1px);
}

.devvn-arv-iconbtn svg {
	width: 15px;
	height: 15px;
}

/* --------------------------------------------------- Similar colours (result) */

.devvn-arv-similar {
	margin-top: 22px;
	padding-top: 18px;
	border-top: 1px dashed var(--arv-line);
}

.devvn-arv-similar__title {
	margin: 0 0 12px;
	text-align: center;
	font-weight: 600;
	font-size: 13px;
	letter-spacing: 0.01em;
	color: var(--arv-ink-soft);
}

.devvn-arv-swatches {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
}

.devvn-arv-swatch {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 5px;
	width: 74px;
	padding: 5px;
	margin: 0;
	border: 1px solid var(--arv-line);
	border-radius: 10px;
	background: var(--arv-surface);
	font-family: var(--arv-ui);
	cursor: pointer;
	transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.devvn-arv-swatch:hover {
	border-color: var(--arv-brass);
	transform: translateY(-1px);
}

.devvn-arv-swatch img {
	width: 100%;
	aspect-ratio: 1 / 1;
	min-height: 56px;
	object-fit: cover;
	border-radius: 6px;
	background: var(--arv-paper);
	display: block;
}

.devvn-arv-swatch__text {
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 11px;
	line-height: 1.25;
	color: var(--arv-ink-soft);
}

.devvn-arv-swatch.is-active {
	border-color: var(--arv-brass);
	box-shadow: 0 0 0 2px rgba(169, 133, 79, 0.25);
}

.devvn-arv-swatch.is-active .devvn-arv-swatch__text {
	color: var(--arv-brass-deep);
	font-weight: 600;
}

/* ------------------------------------------------------------------ Error */

.devvn-arv-error-box {
	text-align: center;
	padding: 30px 8px 12px;
}

.devvn-arv-error-box p {
	font-size: 15px;
	line-height: 1.55;
	margin: 0 0 20px;
	color: var(--arv-ink-soft);
}

/* --------------------------------------------------------------- A11y/motion */

.devvn-arv-modal :focus-visible {
	outline: 2px solid var(--arv-brass);
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	.devvn-arv-modal__dialog,
	.devvn-arv-open,
	.devvn-arv-btn { animation: none; transition: none; }
	.devvn-arv-spinner { animation-duration: 1.6s; }
	.devvn-arv-progress__bar { transition: none; }
	.devvn-arv-compose__box::after { animation: none; }
}

/* Upload gate: show no preview until the server accepts the room upload. */
.devvn-arv-upload-state {
    padding: 22px 14px;
    text-align: center;
    border: 1px dashed #d8dce3;
    border-radius: 8px;
}
.devvn-arv-upload-state p { margin: 10px 0 14px; font-size: 16px; line-height: 1.5; }
.devvn-arv-upload-state[data-status="error"] p { color: #a52828; }
.devvn-arv-upload-spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 2px solid #e3e6eb;
    border-top-color: #2e4571;
    border-radius: 50%;
    animation: devvn-arv-upload-spin .8s linear infinite;
}
.devvn-arv-submit:disabled { opacity: .45; cursor: not-allowed; }
@keyframes devvn-arv-upload-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .devvn-arv-upload-spinner { animation-duration: 2s; } }

/* Bạn Giường — migrated from the supplied child-theme stylesheet. */
.devvn-arv-modal, .devvn-arv-open {
--arv-ink: #2e4571;
--arv-ink-soft: #2e4571;
--arv-brass: #2e4571;
--arv-brass-deep: #2e4571;
--arv-ui: "Noto Sans", sans-serif;
--arv-display:"Signika", sans-serif
}

.devvn-arv-modal__title, .devvn-arv-compare__label, .devvn-arv-open--small .devvn-arv-open__label-main, .devvn-arv-loader__text, .devvn-arv-result__headline, .devvn-arv-result__subline, .devvn-arv-similar__title{
	font-weight: 400;
}

.devvn-arv-open--small, .devvn-arv-open--small.button, .devvn-arv-open--small.button.alt {
    padding: 5px 10px;
min-height: 38px;
    box-shadow: none;
}

.devvn-arv-modal__close{
	    font-size: 54px;
	font-weight: 400;
	border: none;
}

.devvn-arv-swatch.is-active {
    border-color: #2e457100;
    box-shadow: none;
}

.devvn-arv-swatch{
	    border: 1px solid #e6e3db00;
}

.devvn-arv-open--small,
.devvn-arv-open--small.button,
.devvn-arv-open--small.button.alt {
  border: 2px solid transparent !important;
  background: 
    linear-gradient(#fefaf6, #fefaf6) padding-box,
    conic-gradient(from var(--devvn-arv-angle, 0deg), #2e4571 0%, #2e4571 65%, transparent 65%, transparent 100%) border-box,
    linear-gradient(#2e457115, #2e457115) border-box !important;
  animation: devvn-border-spin 5s linear infinite;
}

@property --devvn-arv-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@keyframes devvn-border-spin {
  to { --devvn-arv-angle: 360deg; }
}

.devvn-arv-modal__title {
    margin: 0 0 10px 0;
    font-size: 26px;
}

.devvn-arv-compare__col {
  display: flex;
  flex-direction: column;
	text-align: center;
}

.devvn-arv-compare__col .devvn-arv-compare__label {
  order: 2;
}

.devvn-arv-compare__col .devvn-arv-product-frame {
  order: 1;
}

.devvn-arv-compare__label {
    margin-bottom: 0px;
	margin-top: 5px;
}

#devvn-arv-title[hidden] + .devvn-arv-modal__desc {
  display: none;
}

.devvn-arv-compare__col.devvn-arv-photo .devvn-arv-preview__img{
	    margin-bottom: 0;
	    padding: 8px;
}

button.devvn-arv-btn.devvn-arv-photo-reselect {
    padding: 5px 20px;
    min-height: 44px;
    font-size: 1em;
    font-weight: 400;
    text-decoration: none;
    border-color: var(--arv-line);
}


.devvn-arv-modal__dialog {
        padding: 40px 30px 36px;
    }

.devvn-arv-result__subline {
        font-size: 18px;
    letter-spacing: normal;
    text-transform: none;
    padding-top: 0px;
    border-top: none;
}

.devvn-arv-result__head {
    text-align: left;
    margin: 4px 10px 16px;
}

.devvn-arv-result__headline{
	    font-size: 30px;
}

.devvn-arv-tip-hint{
        gap:6px;
        margin-bottom: 15px;
      
        line-height:1.4;
    font-size: 16px;
       
    }

.devvn-arv-tip-hint svg{
        flex-shrink:0;
        margin-top:2px;
    }

.devvn-arv-step--form[hidden] + .devvn-arv-tip-hint{
        display:none;
    }

button.devvn-arv-btn.devvn-arv-btn--primary.devvn-arv-submit {
    margin-top: 15px !important;
font-size: 1em;
font-weight: 400;
}

label.devvn-arv-btn.devvn-arv-btn--ghost {
    font-size: 1em;
    font-weight: 400;
}

@media (max-width: 549px) {
.devvn-arv-compare {
	grid-template-columns: 1fr;
}
}

@media (max-width: 549px) {
.devvn-arv-product-frame img,
.devvn-arv-compare__col.devvn-arv-photo .devvn-arv-preview__img {
	max-height: 20vh;
}
}

/* Description is rendered in the template, so no footer rewrite is required. */
.devvn-arv-modal__desc {
    margin: 0 0 20px;
    font-family: var(--arv-ui);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--arv-ink-soft);
}
@media (prefers-reduced-motion: reduce) {
    .devvn-arv-open--small,
    .devvn-arv-open--small.button,
    .devvn-arv-open--small.button.alt { animation: none; }
}

/* Bạn Giường: readable, one-action photo intake and result layout. */
.devvn-arv-modal { --arv-ui: "Noto Sans", sans-serif; --arv-display: "Signika", sans-serif; --arv-ink: #2e4571; --arv-ink-soft: #2e4571; font-family: var(--arv-ui); font-size: 16px; }
.devvn-arv-modal *, .devvn-arv-open, .devvn-arv-open * { font-weight: 400 !important; }
.devvn-arv-modal__dialog { padding: 28px 24px; }
.devvn-arv-modal__title, .devvn-arv-result__headline { font-family: var(--arv-display); font-size: 26px; line-height: 1.3; margin: 12px 32px 12px 0; letter-spacing: normal; }
.devvn-arv-modal__desc { margin-bottom: 24px; }
.devvn-arv-modal__close { width: 48px; height: 48px; font-size: 36px; top: 4px; right: 4px; }
.devvn-arv-compare { display: flex; flex-direction: column; gap: 24px; }
.devvn-arv-product-summary { display: flex; flex-direction: row; align-items: center; gap: 14px; background: #f5f6f8; border-radius: 8px; padding: 10px; }
.devvn-arv-product-summary .devvn-arv-product-frame { order: 0; width: 88px; height: 88px; flex: 0 0 88px; padding: 0; border: 0; background: transparent; }
.devvn-arv-product-summary .devvn-arv-product-frame img { width: 88px; height: 88px; max-height: none; object-fit: cover; border-radius: 6px; }
.devvn-arv-product-summary .devvn-arv-compare__label { order: 1; font-size: 16px; line-height: 1.5; text-align: left; margin: 0; }
.devvn-arv-room-heading { display: block; font-family: var(--arv-display); font-size: 20px; text-align: left; margin: 0 0 14px; }
.devvn-arv-photo__buttons { min-height: 220px; padding: 28px 18px; align-content: center; gap: 18px; }
.devvn-arv-photo__buttons label.devvn-arv-btn { background: var(--arv-ink); color: white; width: 100%; border-color: var(--arv-ink); }
.devvn-arv-photo-help { width: 100%; margin: 0; font-size: 16px; line-height: 1.5; text-align: center; }
.devvn-arv-photo-example { display: flex; gap: 12px; align-items: center; width: 100%; font-size: 16px; color: #00704c; }
.devvn-arv-photo-example svg { flex-shrink: 0; }
.devvn-arv-modal .devvn-arv-btn, .devvn-arv-modal .devvn-arv-iconbtn { min-height: 48px; padding: 10px 16px; font-family: var(--arv-ui); font-size: 16px; line-height: 1.5; border-radius: 8px; }
.devvn-arv-modal .devvn-arv-photo-reselect { width: 100%; border-color: var(--arv-line); text-decoration: none; }
.devvn-arv-modal .devvn-arv-preview { margin: 0; }
.devvn-arv-modal .devvn-arv-photo .devvn-arv-preview__img { width: 100%; max-height: 48vh; object-fit: contain; padding: 0; border-radius: 8px; }
.devvn-arv-ready { color: #00704c; margin: 14px 0; font-size: 16px; }
.devvn-arv-modal .devvn-arv-upload-state p { font-size: 16px; line-height: 1.6; }
.devvn-arv-upload-state { min-height: 180px; }
.devvn-arv-form::after { display: none; }
.devvn-arv-form .devvn-arv-submit { width: 100%; margin-top: 14px !important; border-radius: 8px; font-size: 16px; }
.devvn-arv-result__subline:empty { display: none; }
.devvn-arv-result__head { margin: 0 0 16px; }
.devvn-arv-result-product { font-size: 16px; line-height: 1.5; margin: 14px 0; }
.devvn-arv-result__actions { display: flex; flex-direction: column; gap: 12px; }
.devvn-arv-result__cta { display: flex; flex-direction: column; width: 100%; gap: 0; }
.devvn-arv-modal .devvn-arv-result-back { display: none; }
.devvn-arv-result__tools { width: 100%; display: flex; justify-content: center; gap: 12px; }
.devvn-arv-result__tools > * { flex: 1; justify-content: center; }
.devvn-arv-similar__title { font-family: var(--arv-display); font-size: 20px; text-align: left; }
.devvn-arv-swatch__text, .devvn-arv-consent, .devvn-arv-compose figcaption { font-size: 16px; }
.devvn-arv-swatch { min-width: 64px; min-height: 48px; }
.devvn-arv-loader__text { font-size: 20px; }
.devvn-arv-btn:focus-visible, .devvn-arv-iconbtn:focus-visible, .devvn-arv-swatch:focus-visible { outline: 3px solid #2e4571; outline-offset: 3px; }
@media (max-width: 549px) { .devvn-arv-modal__dialog { padding: 24px 20px; } .devvn-arv-modal__title, .devvn-arv-result__headline { font-size: 24px; } }

.devvn-arv-product-summary .devvn-arv-product-frame { min-height: 88px; }
.devvn-arv-photo > .devvn-arv-compare__label { order: -1; margin: 0 0 14px; font-size: 20px; }
.devvn-arv-step--form .devvn-arv-submit::before { display: none; }
.devvn-arv-open { --arv-ui: "Noto Sans", sans-serif; --arv-display: "Signika", sans-serif; }
.devvn-arv-modal [hidden] { display: none !important; }

.devvn-arv-modal p, .devvn-arv-modal label, .devvn-arv-modal input, .devvn-arv-modal button { font-family: var(--arv-ui); }
.devvn-arv-modal .devvn-arv-result__headline, .devvn-arv-modal .devvn-arv-similar__title { font-family: var(--arv-display); }
@media (max-width: 549px) { .devvn-arv-modal .devvn-arv-photo .devvn-arv-preview__img { max-height: 36vh; } }

/* Match the approved mockup geometry; keep the requested regular font weights. */
#devvn-arv-modal .devvn-arv-modal__dialog { padding: 30px 18px 26px; max-width: 500px; }
#devvn-arv-modal .devvn-arv-modal__title { margin: 10px 28px 10px 0; font-size: 24px; }
#devvn-arv-modal .devvn-arv-modal__desc { margin: 0 0 20px; }
#devvn-arv-modal .devvn-arv-product-summary { padding: 6px; min-height: 82px; gap: 14px; }
#devvn-arv-modal .devvn-arv-product-summary .devvn-arv-product-frame { min-height: 72px; height: 72px; width: 88px; flex: 0 0 88px; }
#devvn-arv-modal .devvn-arv-product-summary .devvn-arv-product-frame img { width: 88px; height: 72px; object-fit: cover; }
#devvn-arv-modal .devvn-arv-product-summary .devvn-arv-compare__label { font-size: 16px; }
#devvn-arv-modal .devvn-arv-compare { gap: 24px; margin-bottom: 0; }
#devvn-arv-modal .devvn-arv-room-heading { font-size: 18px; margin: 0 0 14px; }
#devvn-arv-modal .devvn-arv-photo__buttons { min-height: 258px; padding: 34px 20px 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; background: var(--arv-upload-background, #fafbfc); border: 1px dashed var(--arv-upload-border, #c5cedb); }
#devvn-arv-modal .devvn-arv-upload-hero-icon { width: 64px; height: 64px; flex: 0 0 64px; margin: 0 0 2px; }
#devvn-arv-modal .devvn-arv-photo__buttons label { min-height: 48px; }
#devvn-arv-modal .devvn-arv-photo__buttons label .devvn-arv-btn__icon { display: none; }
#devvn-arv-modal .devvn-arv-photo-help { font-size: 16px; }
#devvn-arv-modal .devvn-arv-photo-example { margin: 24px 0 0; gap: 16px; text-align: left; }
#devvn-arv-modal .devvn-arv-photo-example img { width: 144px; height: 144px; object-fit: cover; border-radius: 6px; }
#devvn-arv-modal .devvn-arv-check { display: inline-flex; justify-content: center; align-items: center; width: 30px; height: 30px; background: #00704c; color: white; border-radius: 50%; }
#devvn-arv-modal .devvn-arv-photo .devvn-arv-preview__img { display: block; width: 100%; height: auto; max-height: 47vh; object-fit: contain; background: #f4f3ef; border: 0; }
#devvn-arv-modal .devvn-arv-ready { margin: 14px 0; }
#devvn-arv-modal .devvn-arv-photo-reselect { border-color: #2e4571; }
#devvn-arv-modal .devvn-arv-btn { min-height: 48px; border-radius: 6px; }
#devvn-arv-modal .devvn-arv-consent { margin: 14px 0 0; }
#devvn-arv-modal .devvn-arv-result__image { padding: 0; border: 0; background: transparent; }
#devvn-arv-modal .devvn-arv-result__image img { width: 100%; max-height: 58vh; object-fit: contain; background: #f4f3ef; }
#devvn-arv-modal .devvn-arv-result-product { display: flex; align-items: center; gap: 14px; background: #f5f6f8; padding: 6px; border-radius: 6px; margin: 10px 0; }
#devvn-arv-modal .devvn-arv-result-product img { width: 72px; height: 64px; object-fit: cover; border-radius: 4px; }
#devvn-arv-modal .devvn-arv-result-product p { margin: 0; font-size: 16px; line-height: 1.5; }
#devvn-arv-modal .devvn-arv-result__actions { margin: 0; gap: 10px; }
#devvn-arv-modal .devvn-arv-result__cta { margin: 0; }
#devvn-arv-modal .devvn-arv-iconbtn { border: 1px solid #2e4571; border-radius: 6px; }
#devvn-arv-modal .devvn-arv-similar { margin-top: 16px; padding-top: 16px; }
#devvn-arv-modal .devvn-arv-similar__title { margin: 0 0 12px; }
#devvn-arv-modal .devvn-arv-swatches { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
#devvn-arv-modal .devvn-arv-swatch { width: 100%; min-width: 0; padding: 2px; }
#devvn-arv-modal .devvn-arv-swatch img { width: 100%; height: auto; aspect-ratio: 1.2; object-fit: cover; }
@media (min-width:600px) { #devvn-arv-modal .devvn-arv-modal__dialog { padding: 30px 24px 26px; } }

/* Keep the popup inside narrow mobile viewports and isolate it from theme sizing. */
#devvn-arv-modal { box-sizing: border-box; position: fixed; inset: 0; width: auto; max-width: 100%; margin: 0; padding: 0; overflow: hidden; }
#devvn-arv-modal .devvn-arv-modal__dialog { box-sizing: border-box; width: calc(100% - 24px); max-width: 500px; min-width: 0; margin: 12px auto; height: calc(100% - 24px); max-height: calc(100% - 24px); padding: 28px 16px 24px; overflow-x: hidden; overflow-y: auto; border-radius: 10px; overscroll-behavior: contain; }
#devvn-arv-modal .devvn-arv-modal__title, #devvn-arv-modal .devvn-arv-modal__desc, #devvn-arv-modal .devvn-arv-product-name { overflow-wrap: anywhere; }
#devvn-arv-modal .devvn-arv-product-summary { min-width: 0; width: 100%; }
#devvn-arv-modal .devvn-arv-product-summary .devvn-arv-product-frame { width: 80px; height: 80px; min-height: 80px; flex: 0 0 80px; aspect-ratio: 1; overflow: hidden; }
#devvn-arv-modal .devvn-arv-product-summary .devvn-arv-product-frame img { display: block; width: 100%; height: 100%; max-height: none; aspect-ratio: 1; object-fit: contain; }
#devvn-arv-modal .devvn-arv-product-summary .devvn-arv-compare__label { flex: 1 1 0; min-width: 0; text-align: left; }
#devvn-arv-modal .devvn-arv-product-name, #devvn-arv-modal .devvn-arv-product-colour { display: block; line-height: 1.5; font-size: 16px; }
#devvn-arv-modal .devvn-arv-product-colour { margin-top: 2px; }
#devvn-arv-modal .devvn-arv-result-product { min-width: 0; }
#devvn-arv-modal .devvn-arv-result-product img { width: 64px; height: 64px; flex: 0 0 64px; aspect-ratio: 1; object-fit: contain; }
#devvn-arv-modal .devvn-arv-result-product p { flex: 1 1 0; min-width: 0; }
#devvn-arv-modal .devvn-arv-room-frame { width: 100%; aspect-ratio: 4 / 5; min-width: 0; overflow: hidden; background: #f4f3ef; border-radius: 8px; }
#devvn-arv-modal .devvn-arv-room-frame .devvn-arv-preview__img { display: block; width: 100%; height: 100%; max-width: 100%; max-height: none; margin: 0; padding: 0; object-fit: contain; border-radius: 0; }
#devvn-arv-modal .devvn-arv-photo-reselect { border-radius: 6px !important; }
@media (min-width: 600px) { #devvn-arv-modal .devvn-arv-modal__dialog { height: auto; max-height: calc(100% - 48px); margin: 24px auto; padding: 30px 24px 26px; } }

#devvn-arv-modal .devvn-arv-preview { gap: 12px; }

/* Fullscreen popup with quieter secondary actions. */
#devvn-arv-modal .devvn-arv-modal__dialog { width: 100%; max-width: none; height: 100%; height: 100dvh; max-height: 100%; margin: 0; border-radius: 0; padding: max(28px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(28px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left)); }
#devvn-arv-modal .devvn-arv-product-colour { font-size: 14px; color: #69758a; }
#devvn-arv-modal .devvn-arv-room-frame { aspect-ratio: 1; }
#devvn-arv-modal .devvn-arv-photo__buttons { width: 100%; aspect-ratio: 1; min-height: 0; }
#devvn-arv-modal button.devvn-arv-photo-reselect { align-self: center; width: auto; min-height: 44px; padding: 8px 12px; border: 0; border-radius: 0 !important; background: transparent; color: #2e4571; font-size: 15px; text-decoration: underline; text-underline-offset: 4px; box-shadow: none; }
#devvn-arv-modal button.devvn-arv-photo-reselect svg { display: none; }
#devvn-arv-modal[data-step="loading"] .devvn-arv-modal__desc { display: none; }
#devvn-arv-modal .devvn-arv-modal__close { width: 52px; height: 52px; min-height: 52px; font-size: 44px; line-height: 1; }
#devvn-arv-modal[data-step="result"] .devvn-arv-modal__close { position: fixed; z-index: 2; top: max(4px, env(safe-area-inset-top)); right: max(4px, env(safe-area-inset-right)); width: 56px; height: 56px; min-height: 56px; font-size: 50px; background: #fff; border: 0; }
#devvn-arv-modal .devvn-arv-result__tools { gap: 24px; margin: 0; }
#devvn-arv-modal .devvn-arv-result__tools .devvn-arv-iconbtn { flex: 0 1 auto; border: 0; border-radius: 0; min-height: 44px; padding: 8px 4px; font-size: 14px; background: transparent; box-shadow: none; text-decoration: underline; text-underline-offset: 4px; }
#devvn-arv-modal .devvn-arv-result__tools svg { display: none; }
#devvn-arv-modal .devvn-arv-swatch img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
@media (min-width: 760px) {
 #devvn-arv-modal .devvn-arv-step, #devvn-arv-modal .devvn-arv-modal__title, #devvn-arv-modal .devvn-arv-modal__desc { max-width: 640px; margin-left: auto; margin-right: auto; }
 #devvn-arv-modal .devvn-arv-modal__title { padding-right: 40px; }
}

/* Compact result tools retain their icons; room photo fills its square frame. */
#devvn-arv-modal .devvn-arv-room-frame .devvn-arv-preview__img { object-fit: cover; object-position: center; }
#devvn-arv-modal .devvn-arv-result__tools svg { display: block; width: 18px; height: 18px; flex: 0 0 18px; }
#devvn-arv-modal .devvn-arv-loader__tip { display: none !important; }
/* Mobile fullscreen; desktop remains a centered, bounded lightbox. */
@media (min-width: 760px) {
 #devvn-arv-modal .devvn-arv-modal__dialog { width: calc(100% - 48px); max-width: 680px; height: auto; max-height: 90vh; max-height: 90dvh; margin: 5vh auto; margin: 5dvh auto; padding: 30px 24px 26px; border-radius: 12px; }
 #devvn-arv-modal[data-step="result"] .devvn-arv-modal__close { position: absolute; top: 4px; right: 4px; }
}

/* Square upload frame, independent of text height; center the content as a group. */
#devvn-arv-modal .devvn-arv-photo__buttons { position: relative; display: block; width: 100%; height: auto; min-height: 0; aspect-ratio: 1 / 1; padding: 0; flex: 0 0 auto; }
#devvn-arv-modal .devvn-arv-upload-content { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 16px; text-align: center; }
#devvn-arv-modal .devvn-arv-upload-content .devvn-arv-upload-hero-icon { margin: 0; }
#devvn-arv-modal .devvn-arv-upload-content .devvn-arv-photo-help { margin: 0; }
/* On photo failure, replacement is the primary recovery action. */
#devvn-arv-modal .devvn-arv-upload-state[data-status="error"] button.devvn-arv-photo-reselect { display: inline-flex; width: 100%; min-height: 48px; padding: 10px 16px; border: 1px solid #2e4571; border-radius: 6px !important; background: #2e4571; color: #fff; font-size: 16px; text-decoration: none; }
#devvn-arv-modal .devvn-arv-upload-state[data-status="error"] button.devvn-arv-photo-reselect:hover { background: #24385d; border-color: #24385d; color: #fff; }
#devvn-arv-modal .devvn-arv-upload-state[data-status="error"] button.devvn-arv-photo-reselect svg { display: block; width: 18px; height: 18px; }

/* Pending, consent and error use the same square as initial intake and preview. */
#devvn-arv-modal .devvn-arv-upload-state { position: relative; width: 100%; height: auto; min-height: 0; padding: 0; aspect-ratio: 1 / 1; flex: 0 0 auto; }
#devvn-arv-modal .devvn-arv-upload-state__content { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 20px; padding: 20px 16px; text-align: center; }
#devvn-arv-modal .devvn-arv-upload-state p { width: 100%; margin: 0; }

/* Match the empty upload frame in every status, including photo errors. */
#devvn-arv-modal .devvn-arv-upload-state { background: var(--arv-upload-background, #fafbfc); border: 1px dashed var(--arv-upload-border, #c5cedb); border-radius: 8px; }

/* A rejected photo stays visible beneath a strong readable white overlay. */
#devvn-arv-modal .devvn-arv-upload-state { overflow: hidden; }
#devvn-arv-modal .devvn-arv-error-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
#devvn-arv-modal .devvn-arv-upload-state[data-status="error"][data-error-photo="true"]::before,
#devvn-arv-modal .devvn-arv-upload-state[data-status="pending"][data-error-photo="true"]::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(255,255,255,.84); pointer-events: none; }
#devvn-arv-modal .devvn-arv-upload-state__content { z-index: 2; }

/* Shared photo geometry and headings from the approved desktop design. */
.devvn-arv-form-left, .devvn-arv-loading-work { min-width: 0; }
.devvn-arv-loading-product, .devvn-arv-loading-room, .devvn-arv-desktop-loading-text,
.devvn-arv-column-heading { display: none; }
#devvn-arv-modal .devvn-arv-status-panel { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; width: 100%; max-width: 400px; padding: 24px 18px; background: #fff; border-radius: 8px; box-shadow: 0 2px 16px rgba(46,69,113,.08); }
#devvn-arv-modal .devvn-arv-product-name,
#devvn-arv-modal .devvn-arv-photo-heading .devvn-arv-room-heading,
#devvn-arv-modal .devvn-arv-column-heading {
 font-family: var(--arv-display); font-size: 18px; line-height: 1.4;
 font-weight: 400; color: #2e4571; letter-spacing: normal; text-align: left;
}
#devvn-arv-modal .devvn-arv-result__image > img { display: block; width: 100%; height: auto; max-height: none; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 8px; }
#devvn-arv-modal .devvn-arv-result__image .devvn-arv-result__tools { margin-top: 6px; justify-content: flex-end; gap: 18px; }
#devvn-arv-modal .devvn-arv-compose__cell img,
#devvn-arv-modal .devvn-arv-compose__box { aspect-ratio: 1 / 1; object-fit: cover; }

@media (min-width: 900px) {
 #devvn-arv-modal .devvn-arv-modal__dialog {
  width: calc(100% - 48px); max-width: 940px; height: auto;
  min-height: min(780px, calc(100dvh - 32px)); max-height: calc(100dvh - 32px); margin: 16px auto; padding: 32px 28px;
 }
 #devvn-arv-modal .devvn-arv-step,
 #devvn-arv-modal .devvn-arv-modal__title,
 #devvn-arv-modal .devvn-arv-modal__desc { max-width: none; }
 #devvn-arv-modal .devvn-arv-modal__title { margin: 0 44px 6px 0; padding: 0; font-size: 26px; }
 #devvn-arv-modal .devvn-arv-modal__desc { margin: 0 0 28px; color: #69758a; font-size: 15px; }
 #devvn-arv-modal .devvn-arv-compare,
 #devvn-arv-modal .devvn-arv-loader,
 #devvn-arv-modal .devvn-arv-step--result {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 40px; align-items: start; position: relative;
 }
 #devvn-arv-modal .devvn-arv-compare::before,
 #devvn-arv-modal .devvn-arv-loader::before,
 #devvn-arv-modal .devvn-arv-step--result::before {
  content: ''; position: absolute; top: 0; bottom: 0; left: 50%;
  width: 1px; background: #e8edf3; pointer-events: none;
 }
 #devvn-arv-modal .devvn-arv-product-colour { display: none; }
 #devvn-arv-modal .devvn-arv-column-heading { display: block; margin: 0 0 12px; }
 #devvn-arv-modal .devvn-arv-photo-heading .devvn-arv-room-heading { margin: 0 0 12px; }
 #devvn-arv-modal .devvn-arv-form-left .devvn-arv-product-summary,
 #devvn-arv-modal .devvn-arv-loading-product,
 #devvn-arv-modal .devvn-arv-result-product {
  display: flex; flex-direction: column; align-items: stretch; gap: 0;
  min-height: 0; min-width: 0; padding: 0; margin: 0; background: transparent; border: 0;
 }
 #devvn-arv-modal .devvn-arv-form-left .devvn-arv-compare__label,
 #devvn-arv-modal .devvn-arv-loading-product p,
 #devvn-arv-modal .devvn-arv-result-product p {
  order: -1; flex: none; margin: 0 0 12px; min-width: 0;
 }
 #devvn-arv-modal .devvn-arv-form-left .devvn-arv-product-frame {
  order: 0; width: 100%; height: auto; min-height: 0; flex: none; aspect-ratio: 1 / 1; border-radius: 8px;
 }
 #devvn-arv-modal .devvn-arv-form-left .devvn-arv-product-frame img,
 #devvn-arv-modal .devvn-arv-loading-product img,
 #devvn-arv-modal .devvn-arv-result-product img {
  display: block; width: 100%; height: auto; min-height: 0; max-height: none;
  flex: none; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 8px;
 }
 #devvn-arv-modal .devvn-arv-photo-example { margin: 16px 0 0; padding: 0; gap: 12px; border: 0; }
 #devvn-arv-modal .devvn-arv-photo-example img { width: 64px; height: 64px; aspect-ratio: 1 / 1; }
 #devvn-arv-modal .devvn-arv-photo-example > span { font-size: 14px; }
 #devvn-arv-modal .devvn-arv-photo-example .devvn-arv-check { width: 24px; height: 24px; }
 #devvn-arv-modal .devvn-arv-photo-help { font-size: 14px; }
 #devvn-arv-modal .devvn-arv-form .devvn-arv-submit,
 #devvn-arv-modal .devvn-arv-consent,
 #devvn-arv-modal [data-arv-form-error] { width: 100%; margin-left: 0 !important; }
 #devvn-arv-modal .devvn-arv-consent { margin-top: 10px; }
 #devvn-arv-modal .devvn-arv-form .devvn-arv-submit { margin-top: 8px !important; }
 #devvn-arv-modal .devvn-arv-photo .devvn-arv-preview { flex: none; }
 #devvn-arv-modal .devvn-arv-room-frame { width: 100%; max-width: none; margin: 0; }
 #devvn-arv-modal .devvn-arv-loader { padding: 16px 0 0; text-align: left; row-gap: 16px; }
 #devvn-arv-modal .devvn-arv-loading-product { grid-column: 1; grid-row: 1; }
 #devvn-arv-modal .devvn-arv-loading-work { grid-column: 2; grid-row: 1 / 3; }
 #devvn-arv-modal .devvn-arv-loading-main { position: relative; width: 100%; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 8px; }
 #devvn-arv-modal .devvn-arv-loading-room { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
 #devvn-arv-modal .devvn-arv-loading-main::before { content: ''; position: absolute; inset: 0; z-index: 1; background: rgba(255,255,255,.45); }
 #devvn-arv-modal .devvn-arv-loading-status { position: absolute; z-index: 2; top: 50%; left: 50%; transform: translate(-50%,-50%); display: flex; flex-direction: column; align-items: center; gap: 18px; width: calc(100% - 40px); padding: 24px 16px; border-radius: 8px; background: #fff; text-align: center; box-shadow: 0 2px 16px rgba(46,69,113,.08); }
 #devvn-arv-modal .devvn-arv-loading-status .devvn-arv-spinner { margin: 0; width: 40px; height: 40px; }
 #devvn-arv-modal .devvn-arv-loading-status .devvn-arv-loader__text,
 #devvn-arv-modal .devvn-arv-loading-status .devvn-arv-progress { display: none; }
 #devvn-arv-modal .devvn-arv-desktop-loading-text { display: block; margin: 0; font-size: 15px; }
 #devvn-arv-modal .devvn-arv-compose { grid-column: 1; grid-row: 2; width: 100%; margin: 0; padding: 0; border: 0; --arv-compose-thumb: 68px; gap: 8px; justify-content: space-between; }
 #devvn-arv-modal .devvn-arv-compose__cell { min-width: 0; }
 #devvn-arv-modal .devvn-arv-compose figcaption { font-size: 12px; }
 #devvn-arv-modal .devvn-arv-step--result { grid-template-rows: auto auto 1fr; row-gap: 0; }
 #devvn-arv-modal .devvn-arv-step--result::before { top: 54px; }
 #devvn-arv-modal .devvn-arv-result__head { grid-column: 1 / 3; grid-row: 1; margin: 0 0 24px; }
 #devvn-arv-modal .devvn-arv-result__headline { margin: 0 48px 0 0; font-size: 28px; }
 #devvn-arv-modal .devvn-arv-result-product { grid-column: 1; grid-row: 2; }
 #devvn-arv-modal .devvn-arv-result__image { grid-column: 2; grid-row: 2; overflow: visible; }
 #devvn-arv-modal .devvn-arv-similar { grid-column: 1; grid-row: 3; width: 100%; margin-top: -34px; padding-top: 14px; border-top: 1px solid #e8edf3; }
 #devvn-arv-modal .devvn-arv-similar__title { font-size: 18px; margin-bottom: 10px; }
 #devvn-arv-modal .devvn-arv-swatches { gap: 10px; }
 #devvn-arv-modal .devvn-arv-swatch { padding: 2px; }
 #devvn-arv-modal .devvn-arv-swatch.is-active { border-color: #2e4571; border-radius: 8px; }
 #devvn-arv-modal .devvn-arv-swatch__text { font-size: 13px; }
 #devvn-arv-modal .devvn-arv-result__actions { grid-column: 2; grid-row: 3; margin-top: 10px; }
}
/* Keep the same composition on shorter laptop screens, with readable type. */
@media (min-width: 900px) and (max-height: 720px) {
 #devvn-arv-modal .devvn-arv-modal__dialog { max-width: 784px; min-height: calc(100dvh - 16px); max-height: calc(100dvh - 16px); margin: 8px auto; padding: 18px 24px; }
 #devvn-arv-modal .devvn-arv-modal__desc { margin-bottom: 20px; }
 #devvn-arv-modal:has(.devvn-arv-photo[data-room-status="ready"]) .devvn-arv-modal__desc { display: none; }
 #devvn-arv-modal .devvn-arv-modal__title { font-size: 24px; }
 #devvn-arv-modal .devvn-arv-preview { gap: 4px; }
 #devvn-arv-modal .devvn-arv-consent { margin-top: 6px; padding-top: 0; }
 #devvn-arv-modal .devvn-arv-consent label { margin-bottom: 0; }
 #devvn-arv-modal .devvn-arv-photo-example { margin-top: 12px; }
 #devvn-arv-modal .devvn-arv-photo-example img { width: 40px; height: 40px; }
 #devvn-arv-modal .devvn-arv-compose { --arv-compose-thumb: 54px; }
}
@media (min-width: 900px) and (max-height: 720px) {
 #devvn-arv-modal[data-step="result"] .devvn-arv-modal__dialog { max-width: min(940px, calc(200dvh - 520px)); }
}

/* Room heading owns the accepted-photo action at every screen size. */
#devvn-arv-modal .devvn-arv-photo-heading { order: -1; min-width: 0; margin: 0 0 12px; }
#devvn-arv-modal .devvn-arv-photo-heading .devvn-arv-room-heading { order: 0; margin: 0; }
#devvn-arv-modal .devvn-arv-photo-heading { display: flex; position: relative; align-items: center; justify-content: space-between; gap: 10px; }
 #devvn-arv-modal .devvn-arv-photo-heading .devvn-arv-room-heading { padding-right: 76px; min-width: 0; flex: 1 1 auto; font-size: 18px; line-height: 1.4; }
 #devvn-arv-modal .devvn-arv-photo-heading button.devvn-arv-photo-reselect { position: absolute; right: 0; top: 50%; transform: translateY(-50%); order: 1; flex: 0 0 auto; align-self: center; min-height: 44px; margin: 0; padding: 8px 0 8px 6px; white-space: nowrap; font-size: 14px; line-height: 1.4; }

/* Quiet icon-only result tools; preserve accessible names and touch targets. */
#devvn-arv-modal .devvn-arv-result__tools .devvn-arv-iconbtn__text { display: none; }
#devvn-arv-modal .devvn-arv-result__image .devvn-arv-result__tools { gap: 4px; }
#devvn-arv-modal .devvn-arv-result__tools .devvn-arv-iconbtn { width: 44px; height: 44px; min-width: 44px; min-height: 44px; padding: 11px; text-decoration: none; }
#devvn-arv-modal .devvn-arv-result__tools svg { width: 22px; height: 22px; flex-basis: 22px; }

/* Desktop product photo needs no separate suitable-photo example. */
@media (min-width: 900px) {
 #devvn-arv-modal .devvn-arv-photo-example { display: none; }
}

/* Desktop: reserve the left result column for product context and colour choices. */
@media (min-width: 900px) {
 #devvn-arv-modal .devvn-arv-compose { display: none; }
 #devvn-arv-modal .devvn-arv-loading-work { grid-row: 1; }
 #devvn-arv-modal .devvn-arv-step--result { grid-template-rows: auto auto 1fr auto; }
 #devvn-arv-modal .devvn-arv-result-product { grid-column: 1; grid-row: 2; }
 #devvn-arv-modal .devvn-arv-result-product img { width: 50%; height: auto; margin-inline: 0 auto; }
 #devvn-arv-modal .devvn-arv-result__image { grid-column: 2; grid-row: 2 / 4; }
 #devvn-arv-modal .devvn-arv-similar { grid-column: 1; grid-row: 3 / 5; margin-top: 24px; padding-top: 20px; }
 #devvn-arv-modal .devvn-arv-result__actions { grid-column: 2; grid-row: 4; }
 #devvn-arv-modal .devvn-arv-swatch,
 #devvn-arv-modal .devvn-arv-swatch:hover,
 #devvn-arv-modal .devvn-arv-swatch:active,
 #devvn-arv-modal .devvn-arv-swatch.is-active {
  border-color: transparent; background: transparent; box-shadow: none;
  transform: none; transition: none;
 }
 #devvn-arv-modal .devvn-arv-swatch img { box-shadow: none; }
}

/* Accepted-photo spacing: separate the heading, photo and primary action. */
@media (min-width: 900px) {
 #devvn-arv-modal .devvn-arv-photo[data-room-status="ready"] .devvn-arv-submit { margin-top: 20px !important; }
 #devvn-arv-modal:has(.devvn-arv-photo[data-room-status="ready"]) .devvn-arv-form-left .devvn-arv-compare__label,
 #devvn-arv-modal .devvn-arv-photo[data-room-status="ready"] .devvn-arv-photo-heading { margin-bottom: 18px; }
}
@media (min-width: 900px) and (max-height: 720px) {
 #devvn-arv-modal:has(.devvn-arv-photo[data-room-status="ready"]) .devvn-arv-compare { margin-top: 24px; }
}

/* Result confirmation uses the requested headline and supporting sentence. */
#devvn-arv-modal .devvn-arv-result__subline { margin: 8px 0 0; font-family: var(--arv-ui); font-size: 16px; line-height: 1.5; color: #69758a; }
@media (min-width: 900px) {
 #devvn-arv-modal .devvn-arv-step--result::before { top: 92px; }
}
