.arwc-gallery {
	margin: 1.25rem 0;
}

.arwc-viewer-shell {
	width: 100%;
}

.arwc-viewer {
	display: block;
	width: 100%;
	min-height: 420px;
	aspect-ratio: 4 / 3;
	border: 1px solid #d9dadd;
	border-radius: 8px;
	background: #f6f7f8;
	overflow: hidden;
}

.arwc-ar-button,
.arwc-ios-ar-link,
.arwc-qr-toggle,
.arwc-zoom-controls button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0.75rem 1rem;
	border: 0;
	border-radius: 6px;
	background: #111827;
	color: #fff;
	font: inherit;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.arwc-ar-button {
	position: absolute;
	right: 1rem;
	bottom: 1rem;
}

.arwc-thumbs {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
	gap: 0.75rem;
	margin-top: 0.75rem;
}

.arwc-viewer-controls {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0.75rem;
	margin-top: 0.75rem;
}

.arwc-zoom-controls {
	display: inline-flex;
	gap: 0.4rem;
}

.arwc-zoom-controls button,
.arwc-qr-toggle {
	min-width: 44px;
	box-shadow: none;
}

.arwc-zoom-reset {
	min-width: 72px;
}

.arwc-qr-handoff {
	position: relative;
}

.arwc-qr-panel {
	position: absolute;
	z-index: 3;
	right: 0;
	top: calc(100% + 0.5rem);
	width: 240px;
	padding: 0.75rem;
	border: 1px solid #d9dadd;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.arwc-qr-panel img {
	display: block;
	width: 100%;
	height: auto;
}

.arwc-qr-panel span {
	display: block;
	margin-top: 0.5rem;
	font-size: 0.9rem;
	line-height: 1.35;
	color: #3f444b;
}

.arwc-thumb {
	display: grid;
	gap: 0.35rem;
	align-content: start;
	min-height: 72px;
	padding: 0.55rem;
	border: 1px solid #d9dadd;
	border-radius: 8px;
	background: #fff;
	color: inherit;
	text-align: left;
	cursor: pointer;
}

.arwc-thumb.is-active {
	border-color: #111827;
	box-shadow: inset 0 0 0 1px #111827;
}

.arwc-thumb img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 6px;
	background: #f6f7f8;
}

.arwc-thumb span {
	font-size: 0.9rem;
	font-weight: 600;
}

.arwc-user-upload {
	margin-top: 1rem;
	padding: 1rem;
	border: 1px dashed #8c8f94;
	border-radius: 8px;
	background: #fff;
}

.arwc-user-upload label {
	display: grid;
	gap: 0.5rem;
}

.arwc-user-upload span {
	font-weight: 700;
}

.arwc-user-upload-result {
	margin-top: 1rem;
}

.arwc-uploaded-image {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
}

@media (max-width: 640px) {
	.arwc-viewer {
		min-height: 300px;
	}

	.arwc-viewer-controls {
		align-items: stretch;
	}

	.arwc-zoom-controls,
	.arwc-qr-handoff,
	.arwc-qr-toggle {
		width: 100%;
	}

	.arwc-zoom-controls button {
		flex: 1;
	}

	.arwc-qr-panel {
		position: static;
		width: auto;
		margin-top: 0.5rem;
	}
}
