/* Shopper Try-On: mobile first, theme-neutral. */
.wpbot-tryon {
	margin: 0.75em 0;
}

.wpbot-tryon-open .dashicons {
	vertical-align: middle;
}

.wpbot-tryon__dialog {
	--wpt-accent: #5b3fd6;
	--wpt-text: #1e1e1e;
	--wpt-muted: #5f5f5f;
	--wpt-line: #e2e2e2;
	--wpt-soft: #f6f5fb;
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	height: 100%;
	max-height: 100%;
	margin: 0;
	padding: 16px;
	border: 0;
	background: #fff;
	color: var(--wpt-text);
	font-size: 15px;
	line-height: 1.45;
	overflow-y: auto;
}

.wpbot-tryon__dialog *,
.wpbot-tryon__dialog *::before,
.wpbot-tryon__dialog *::after {
	box-sizing: border-box;
}

.wpbot-tryon__dialog::backdrop {
	background: rgba(0, 0, 0, 0.55);
}

.wpbot-tryon__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}

.wpbot-tryon__title {
	margin: 0;
	font-size: 1.6em;
	line-height: 1.2;
}

.wpbot-tryon__subtitle {
	margin: 2px 0 0;
	color: var(--wpt-muted);
}

.wpbot-tryon__dialog .button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 8px 18px;
	border: 1px solid var(--wpt-accent);
	border-radius: 10px;
	background: #fff;
	color: var(--wpt-accent);
	font: inherit;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
}

.wpbot-tryon__dialog .button.alt {
	background: var(--wpt-accent);
	color: #fff;
}

.wpbot-tryon__dialog .button:focus-visible,
.wpbot-tryon__dialog button:focus-visible,
.wpbot-tryon__dialog a:focus-visible {
	outline: 2px solid var(--wpt-accent);
	outline-offset: 2px;
}

.wpbot-tryon__photo h3 + *,
.wpbot-tryon__own,
.wpbot-tryon__models {
	margin-bottom: 14px;
}

.wpbot-tryon__close {
	flex: none;
	padding: 0;
	width: 44px;
	height: 44px;
	border: 1px solid var(--wpt-line);
	border-radius: 50%;
	background: #fff;
	color: var(--wpt-text);
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}

.wpbot-tryon__status {
	min-height: 1.45em;
	margin: 8px 0;
	color: var(--wpt-muted);
}

.wpbot-tryon__status.is-error,
.wpbot-tryon__error {
	color: #b32d2e;
}

.wpbot-tryon__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
}

.wpbot-tryon__photo {
	order: 2;
}

.wpbot-tryon__stage {
	order: 3;
}

.wpbot-tryon__product,
.wpbot-tryon__photo,
.wpbot-tryon__stage {
	min-width: 0;
	padding: 14px;
	border: 1px solid var(--wpt-line);
	border-radius: 12px;
	background: #fff;
}

.wpbot-tryon__product h3,
.wpbot-tryon__photo h3 {
	margin: 0 0 8px;
	font-size: 1.05em;
}

.wpbot-tryon__product-image {
	display: block;
	width: 100%;
	max-height: 260px;
	object-fit: contain;
	border-radius: 8px;
	background: var(--wpt-soft);
}

.wpbot-tryon__product-head {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	margin-top: 10px;
}

.wpbot-tryon__price {
	font-weight: 600;
	white-space: nowrap;
}

.wpbot-tryon__attr {
	margin-top: 10px;
}

.wpbot-tryon__attr-label {
	margin: 0 0 6px;
}

.wpbot-tryon__options {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.wpbot-tryon__option {
	min-width: 44px;
	min-height: 44px;
	padding: 6px 14px;
	border: 1px solid var(--wpt-line);
	border-radius: 22px;
	background: #fff;
	color: var(--wpt-text);
	cursor: pointer;
}

.wpbot-tryon__option.is-on {
	border-color: var(--wpt-accent);
	box-shadow: inset 0 0 0 1px var(--wpt-accent);
	font-weight: 600;
}

.wpbot-tryon__option.is-out {
	color: #8a8a8a;
	text-decoration: line-through;
}

.wpbot-tryon__stage {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	min-height: 280px;
	background: var(--wpt-soft);
}

.wpbot-tryon__toggle {
	display: inline-flex;
	padding: 3px;
	border-radius: 22px;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.wpbot-tryon__toggle button {
	min-height: 36px;
	padding: 4px 18px;
	border: 0;
	border-radius: 18px;
	background: transparent;
	color: var(--wpt-text);
	cursor: pointer;
}

.wpbot-tryon__toggle button.is-on {
	background: var(--wpt-accent);
	color: #fff;
}

.wpbot-tryon__frame {
	position: relative;
	display: flex;
	gap: 8px;
	width: 100%;
	justify-content: center;
}

.wpbot-tryon__frame img {
	display: block;
	max-width: 100%;
	max-height: 70vh;
	border-radius: 10px;
	object-fit: contain;
}

.wpbot-tryon__stage.is-compare .wpbot-tryon__frame figure {
	flex: 1 1 0;
	min-width: 0;
	margin: 0;
	text-align: center;
}

.wpbot-tryon__stage.is-compare .wpbot-tryon__frame img {
	width: 100%;
}

.wpbot-tryon__badge {
	position: absolute;
	top: 8px;
	left: 8px;
	padding: 2px 10px;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.92);
	color: var(--wpt-accent);
	font-size: 0.85em;
	font-weight: 600;
}

.wpbot-tryon__stage-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
}

.wpbot-tryon__empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	flex: 1;
	color: var(--wpt-muted);
	text-align: center;
}

.wpbot-tryon__empty img {
	max-width: 160px;
	max-height: 200px;
	border-radius: 10px;
	opacity: 0.7;
}

.wpbot-tryon__working {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 24px 8px;
	text-align: center;
}

.wpbot-tryon__spinner {
	width: 36px;
	height: 36px;
	border: 3px solid #d9d3f5;
	border-top-color: var(--wpt-accent);
	border-radius: 50%;
	animation: wpbot-tryon-spin 0.9s linear infinite;
}

@keyframes wpbot-tryon-spin {
	to {
		transform: rotate(360deg);
	}
}

@media (prefers-reduced-motion: reduce) {
	.wpbot-tryon__spinner {
		animation: none;
	}
}

.wpbot-tryon__guidance p {
	margin: 0 0 4px;
	font-weight: 600;
}

.wpbot-tryon__guidance ul {
	margin: 0 0 10px 1.2em;
	padding: 0;
}

.wpbot-tryon__consent {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	margin: 8px 0;
	font-size: 0.92em;
}

.wpbot-tryon__consent input {
	flex: none;
	width: 20px;
	height: 20px;
	margin-top: 2px;
}

.wpbot-tryon__upload {
	position: relative;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	cursor: pointer;
}

.wpbot-tryon__upload.is-disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.wpbot-tryon__file {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	cursor: inherit;
}

.wpbot-tryon__own {
	display: flex;
	gap: 12px;
	align-items: center;
}

.wpbot-tryon__own-actions {
	display: flex;
	flex-direction: column;
	gap: 8px;
	align-items: flex-start;
}

.wpbot-tryon__thumb {
	flex: none;
	width: 84px;
	height: 84px;
	padding: 0;
	overflow: hidden;
	border: 2px solid transparent;
	border-radius: 10px;
	background: var(--wpt-soft);
	cursor: pointer;
}

.wpbot-tryon__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.wpbot-tryon__thumb.is-on {
	border-color: var(--wpt-accent);
}

.wpbot-tryon__models,
.wpbot-tryon__strip {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.wpbot-tryon__checks {
	margin: 8px 0;
	padding: 0;
	list-style: none;
	font-size: 0.92em;
}

.wpbot-tryon__checks li {
	padding: 4px 8px;
	border-left: 3px solid #dba617;
	background: #fcf9e8;
}

.wpbot-tryon__checks li + li {
	margin-top: 4px;
}

.wpbot-tryon__checks li.is-error {
	border-color: #b32d2e;
	background: #fcf0f1;
}

.wpbot-tryon__generate,
.wpbot-tryon__add {
	width: 100%;
	min-height: 48px;
	margin-top: 12px;
}

.wpbot-tryon__generate[disabled],
.wpbot-tryon__add[disabled] {
	opacity: 0.55;
	cursor: not-allowed;
}

.wpbot-tryon__small,
.wpbot-tryon__hint {
	margin: 6px 0 0;
	color: var(--wpt-muted);
	font-size: 0.88em;
}

.wpbot-tryon__link {
	padding: 0;
	border: 0;
	background: none;
	color: var(--wpt-accent);
	text-decoration: underline;
	cursor: pointer;
	font: inherit;
}

.wpbot-tryon__stage-actions .wpbot-tryon__link {
	min-height: 36px;
	padding: 0 6px;
}

.wpbot-tryon__foot {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
	margin-top: 16px;
	padding: 14px;
	border: 1px solid var(--wpt-line);
	border-radius: 12px;
}

.wpbot-tryon__previews p {
	margin: 0 0 6px;
}

.wpbot-tryon__added {
	margin: 8px 0 0;
	color: #00733a;
	font-weight: 600;
}

.wpbot-tryon__signin {
	padding: 24px 0;
	text-align: center;
}

@media (min-width: 720px) {
	.wpbot-tryon__dialog {
		width: min(1180px, calc(100% - 32px));
		height: auto;
		max-height: calc(100% - 32px);
		margin: auto;
		padding: 24px;
		border-radius: 16px;
	}

	.wpbot-tryon__grid {
		grid-template-columns: 1fr 1fr;
	}

	.wpbot-tryon__stage {
		grid-column: 1 / -1;
		grid-row: 1;
	}

	.wpbot-tryon__foot {
		grid-template-columns: 1fr 320px;
		align-items: end;
	}
}

@media (min-width: 1040px) {
	.wpbot-tryon__grid {
		grid-template-columns: 280px minmax(0, 1fr) 300px;
	}

	.wpbot-tryon__stage {
		grid-column: auto;
		grid-row: auto;
		order: 0;
	}

	.wpbot-tryon__photo {
		order: 0;
	}

	.wpbot-tryon__product,
	.wpbot-tryon__photo {
		align-self: start;
	}
}
