/* Little Miss Try-On. Uses the Little Miss Store theme colours when present, works with any theme. */
.lmt, .lmt-product-btn {
	--lmt-pink: var(--lms-pink, #ee6a82);
	--lmt-pink-d: var(--lms-pink-d, #d9506b);
	--lmt-pink-50: var(--lms-pink-50, #fff3f5);
	--lmt-navy: var(--lms-navy, #2d3e50);
	--lmt-line: var(--lms-line, #ece5e8);
	--lmt-muted: var(--lms-muted, #6b7280);
}
.lmt {
	display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 32px; align-items: start;
	max-width: 1240px; margin: 0 auto 40px; color: inherit;
}
.lmt *, .lmt *::before, .lmt *::after { box-sizing: border-box; }
.lmt > * { min-width: 0; }
.lmt h2, .lmt h3 { color: var(--lmt-navy); }
.lmt-intro { grid-column: 1 / -1; }
.lmt-intro p { margin: 0 0 8px; color: var(--lmt-muted); font-size: 16.5px; }
.lmt-private { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: #e8f7ee; color: #1f7a45 !important; font-size: 14px !important; font-weight: 700; }

/* Picture */
.lmt-stage { position: sticky; top: 24px; }
.admin-bar .lmt-stage { top: 56px; }
body:has(.lms-header) .lmt-stage { top: 110px; }
.lmt-frame { position: relative; display: grid; place-items: center; min-height: 380px; overflow: hidden; border-radius: 22px; background: var(--lmt-pink-50); }
.lmt-drop {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
	width: calc(100% - 28px); min-height: 352px; margin: 14px; padding: 24px; text-align: center; cursor: pointer;
	border: 2px dashed #f4b6c3; border-radius: 18px; color: var(--lmt-navy);
}
.lmt-drop:hover, .lmt-drop:focus-within { border-color: var(--lmt-pink); background: #fff; }
.lmt-drop__ico { width: 68px; height: 68px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--lmt-pink); box-shadow: 0 8px 20px rgba(238, 106, 130, .2); }
.lmt-drop strong { font-size: 18px; }
.lmt-drop__tip { color: var(--lmt-muted); font-size: 14px; }
.lmt-drop .lmt-btn { margin-top: 8px; }
.lmt-file { position: absolute; width: 1px; height: 1px; opacity: 0; }
.lmt-canvas { display: none; max-width: 100%; }
.lmt.has-photo .lmt-drop { display: none; }
.lmt.has-photo .lmt-canvas { display: block; }
.lmt.has-photo .lmt-frame { min-height: 0; background: #f3eef0; }
.lmt.has-garment.has-photo .lmt-canvas { cursor: grab; touch-action: none; }
.lmt-busy { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(255, 255, 255, .55); }
.lmt-busy[hidden] { display: none; }
.lmt-busy span { width: 42px; height: 42px; border: 4px solid var(--lmt-pink-50); border-top-color: var(--lmt-pink); border-radius: 50%; animation: lmt-spin .8s linear infinite; }
@keyframes lmt-spin { to { transform: rotate(360deg); } }
.lmt-note { position: absolute; left: 12px; right: 12px; bottom: 12px; margin: 0; padding: 10px 14px; border-radius: 12px; background: rgba(45, 62, 80, .9); color: #fff; font-size: 14px; font-weight: 600; text-align: center; }
.lmt.has-photo .lmt-note { position: static; margin: 10px 0 0; }
.lmt-note[hidden] { display: none; }

.lmt-tools { display: none; margin-top: 14px; }
.lmt.has-photo .lmt-tools { display: block; }
.lmt-help { margin: 0 0 10px; color: var(--lmt-muted); font-size: 14px; }
.lmt-range { display: flex; align-items: center; gap: 12px; margin: 0 0 8px; color: var(--lmt-navy); font-weight: 700; font-size: 14px; }
.lmt-range span { flex: 0 0 44px; }
.lmt-range input { flex: 1; accent-color: var(--lmt-pink); }
.lmt-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* Buttons */
.lmt-btn, .lmt-product-btn.button {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 11px 22px; border: 2px solid var(--lmt-pink); border-radius: 999px;
	background: var(--lmt-pink); color: #fff; font: inherit; font-weight: 800; font-size: 15px; line-height: 1.2; text-decoration: none; cursor: pointer;
	transition: background .2s, color .2s, border-color .2s;
}
.lmt-btn:hover { background: var(--lmt-pink-d); border-color: var(--lmt-pink-d); color: #fff; }
.lmt-btn:disabled { opacity: .6; cursor: default; }
.lmt-btn--ghost { background: #fff; border-color: var(--lmt-line); color: var(--lmt-navy); }
.lmt-btn--ghost:hover { background: #fff; border-color: var(--lmt-pink); color: var(--lmt-pink-d); }
.lmt-btn--small { padding: 8px 14px; font-size: 13.5px; }
.lmt-link { color: var(--lmt-navy); font-weight: 700; font-size: 14px; }

/* Current dress */
.lmt-current { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 12px; border: 1px solid var(--lmt-line); border-radius: 18px; background: #fff; }
.lmt-current[hidden] { display: none; }
.lmt-current__img { flex: none; width: 64px; height: 64px; object-fit: cover; border-radius: 12px; background: var(--lmt-pink-50); }
.lmt-current__info { flex: 1; min-width: 0; }
.lmt-current__name { display: block; color: var(--lmt-navy); font-size: 15px; line-height: 1.3; }
.lmt-current__price { color: var(--lmt-pink-d); font-weight: 800; }
.lmt-current__price del { color: var(--lmt-muted); font-weight: 600; font-size: 13px; }
.lmt-current__price ins { text-decoration: none; }
.lmt-current__btns { display: flex; flex-direction: column; align-items: center; gap: 6px; }

/* Ages & products */
.lmt-pick h3 { margin: 0 0 12px; font-size: 18px; }
.lmt-pick h3 + .lmt-status { margin-top: -6px; }
.lmt-ages { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.lmt-chip { padding: 8px 15px; border: 1.5px solid var(--lmt-line); border-radius: 999px; background: #fff; color: var(--lmt-navy); font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; }
.lmt-chip:hover { border-color: var(--lmt-pink); color: var(--lmt-pink-d); }
.lmt-chip[aria-pressed="true"] { background: var(--lmt-navy); border-color: var(--lmt-navy); color: #fff; }
.lmt-status { margin: 0 0 10px; color: var(--lmt-muted); font-size: 14px; }
.lmt-status:empty { display: none; }
.lmt-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.lmt-grid[aria-busy="true"]:empty { min-height: 200px; border-radius: 18px; background: linear-gradient(90deg, #faf6f7 25%, #fff 50%, #faf6f7 75%) 0 0 / 200% 100%; animation: lmt-shine 1.2s infinite; }
@keyframes lmt-shine { to { background-position: -200% 0; } }
.lmt-card { display: flex; flex-direction: column; overflow: hidden; border: 1.5px solid var(--lmt-line); border-radius: 16px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.lmt-card:hover { box-shadow: 0 10px 26px rgba(45, 62, 80, .1); }
.lmt-card.is-active { border-color: var(--lmt-pink); box-shadow: 0 0 0 3px var(--lmt-pink-50); }
.lmt-card__img { position: relative; display: block; aspect-ratio: 1; padding: 0; border: 0; background: var(--lmt-pink-50); cursor: pointer; }
.lmt-card__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lmt-card__sale { position: absolute; top: 8px; left: 8px; padding: 4px 8px; border-radius: 999px; background: var(--lmt-pink); color: #fff; font-size: 11.5px; font-weight: 800; line-height: 1; }
.lmt-card__body { display: flex; flex: 1; flex-direction: column; gap: 4px; padding: 10px 10px 12px; }
.lmt-card__name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--lmt-navy); font-weight: 700; font-size: 14px; line-height: 1.3; text-decoration: none; }
.lmt-card__price { color: var(--lmt-pink-d); font-weight: 800; font-size: 14.5px; }
.lmt-card__price del { color: var(--lmt-muted); font-weight: 600; font-size: 12px; }
.lmt-card__price ins { text-decoration: none; }
.lmt-card__try { margin-top: auto; }
.lmt-card.is-active .lmt-card__try { background: var(--lmt-navy); border-color: var(--lmt-navy); }
.lmt-more { display: flex; margin: 18px auto 0; }
.lmt-more[hidden] { display: none; }

/* Button on product pages (the extra selector beats WooCommerce's ".woocommerce a.button") */
.woocommerce a.lmt-product-btn.button, .lmt-product-btn.button { display: flex; width: 100%; max-width: 440px; margin: 0 0 12px; padding: 12px 22px; border: 2px solid var(--lmt-pink); border-radius: 999px; background: #fff; color: var(--lmt-pink-d); }
.woocommerce a.lmt-product-btn.button:hover, .lmt-product-btn.button:hover { background: var(--lmt-pink-50); color: var(--lmt-pink-d); }

@media (max-width: 860px) {
	.lmt { grid-template-columns: minmax(0, 1fr); gap: 24px; }
	.lmt-stage, body:has(.lms-header) .lmt-stage { position: static; }
	.lmt-frame { min-height: 300px; }
	.lmt-drop { min-height: 272px; }
	.lmt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.lmt-ages { flex-wrap: nowrap; margin-right: -16px; padding-right: 16px; overflow-x: auto; scrollbar-width: none; }
	.lmt-ages::-webkit-scrollbar { display: none; }
	.lmt-chip { flex: none; }
	.lmt-current { flex-wrap: wrap; }
	.lmt-current__btns { flex-direction: row; width: 100%; justify-content: space-between; }
}
