/* ═══════════════════════════════════════════════════════════════════
   Alty Sticker Widget — homepage hero quick-start
   ═══════════════════════════════════════════════════════════════════ */

/* ── Layout shell ─────────────────────────────────────────────────── */
.asw {
	width: 100%;
	display: flex;
	flex-direction: row;
	align-items: stretch;
	padding: 24px 28px;
	gap: 0;
	position: relative;
	z-index: 1;
	box-sizing: border-box;
	font-family: 'Satoshi', 'DM Sans', system-ui, sans-serif;
	min-height: 280px;
}

.asw-panel {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 0 22px;
	min-width: 0;
}

.asw-panel:first-child { padding-left: 0; }
.asw-panel:last-child  { padding-right: 0; }

.asw-divider {
	width: 1px;
	background: #e8e5ee;
	flex-shrink: 0;
	align-self: stretch;
}

/* ── Step header ──────────────────────────────────────────────────── */
.asw-step-label {
	display: flex;
	align-items: center;
	gap: 7px;
	color: #6b6580;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	flex-shrink: 0;
	font-family: 'Satoshi', 'DM Sans', sans-serif;
	width: 100%;
}

.asw-step-label .asw-tax-toggle {
	margin-left: auto;
	letter-spacing: 0;
	text-transform: none;
}

.asw-step-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 19px;
	height: 19px;
	border-radius: 50%;
	background: var(--violet-600);
	color: #fff;
	font-size: 10px;
	font-weight: 800;
	flex-shrink: 0;
	letter-spacing: 0;
}

/* ── Material selector ────────────────────────────────────────────── */
.asw-materials {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.asw-material-item {
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 7px 9px;
	border-radius: 10px;
	cursor: pointer;
	transition:
		background   0.15s ease,
		border-color 0.15s ease,
		transform    0.18s cubic-bezier(0.34, 1.56, 0.64, 1),
		box-shadow   0.15s ease;
	border: 1.5px solid transparent;
	position: relative;
	user-select: none;
}

.asw-material-item:hover {
	background: var(--violet-50);
	transform: translateX(2px);
}

.asw-material-item.is-selected {
	background: var(--violet-50);
	border-color: var(--violet-200);
	box-shadow: 0 1px 4px color-mix(in srgb, var(--violet-600) 8%, transparent);
}

/* Material swatch circles */
.asw-swatch {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	flex-shrink: 0;
	border: 1.5px solid rgba(0, 0, 0, 0.1);
	position: relative;
	overflow: hidden;
	box-shadow: inset 0 1px 2px rgba(255,255,255,0.6), 0 1px 3px rgba(0,0,0,0.1);
}

.asw-swatch--premium {
	background: radial-gradient(circle at 38% 32%, #ffffff 0%, #f0ecfe 55%, #c4b5fd 100%);
}

.asw-swatch--matte {
	background: linear-gradient(145deg, #e8e4e0 0%, #ccc8c4 100%);
}

.asw-swatch--transparent {
	background-image:
		linear-gradient(45deg, #d4cfc9 25%, transparent 25%),
		linear-gradient(-45deg, #d4cfc9 25%, transparent 25%),
		linear-gradient(45deg, transparent 75%, #d4cfc9 75%),
		linear-gradient(-45deg, transparent 75%, #d4cfc9 75%);
	background-size: 6px 6px;
	background-position: 0 0, 0 3px, 3px -3px, -3px 0px;
	background-color: #f8f7f6;
}

.asw-swatch--chrome_silver {
	background: linear-gradient(145deg, #d0d0d0 0%, #f0f0f0 28%, #a8a8a8 55%, #e0e0e0 100%);
}

.asw-swatch--rainbow_holographic {
	background: conic-gradient(
		from 0deg,
		#ff6b9d 0deg,
		#c77dff 72deg,
		#72b7ff 144deg,
		#67f9a2 216deg,
		#f9f97c 288deg,
		#ff6b9d 360deg
	);
}

/* Material label */
.asw-material-label {
	font-size: 12px;
	font-weight: 600;
	color: #2d2640;
	transition: color 0.15s;
	font-family: 'Satoshi', 'DM Sans', sans-serif;
	flex: 1;
}

.asw-material-item.is-selected .asw-material-label {
	color: var(--violet-600);
}

/* Radio indicator */
.asw-material-radio {
	margin-left: auto;
	width: 13px;
	height: 13px;
	border-radius: 50%;
	border: 2px solid #e8e5ee;
	flex-shrink: 0;
	transition:
		border-color 0.18s cubic-bezier(0.34, 1.56, 0.64, 1),
		background   0.18s cubic-bezier(0.34, 1.56, 0.64, 1),
		box-shadow   0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
	position: relative;
}

.asw-material-radio::after {
	content: '';
	position: absolute;
	inset: 2px;
	border-radius: 50%;
	background: #fff;
	transform: scale(0);
	transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.asw-material-item.is-selected .asw-material-radio {
	border-color: var(--violet-600);
	background: var(--violet-600);
	box-shadow: 0 0 0 2.5px var(--violet-100);
}

.asw-material-item.is-selected .asw-material-radio::after {
	transform: scale(1);
}

/* ── Size selector ────────────────────────────────────────────────── */
.asw-sizes {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.asw-size-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 5px;
}

.asw-size-pill {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 7px 6px;
	border-radius: 10px;
	border: 1.5px solid #e8e5ee;
	cursor: pointer;
	font-family: 'Satoshi', 'DM Sans', sans-serif;
	font-size: 11.5px;
	font-weight: 600;
	color: #2d2640;
	transition:
		border-color 0.18s cubic-bezier(0.34, 1.56, 0.64, 1),
		background   0.18s cubic-bezier(0.34, 1.56, 0.64, 1),
		color        0.18s ease,
		transform    0.22s cubic-bezier(0.34, 1.56, 0.64, 1),
		box-shadow   0.18s ease;
	background: #faf9fb;
	white-space: nowrap;
	text-align: center;
}

.asw-size-pill:hover {
	border-color: var(--violet-600);
	background: var(--violet-50);
	color: var(--violet-600);
	transform: scale(1.04);
}

.asw-size-pill.is-selected {
	background: var(--violet-600);
	border-color: var(--violet-600);
	color: #fff;
	box-shadow: 0 3px 10px color-mix(in srgb, var(--violet-600) 28%, transparent);
}

.asw-size-pill.is-selected:hover {
	background: var(--violet-700);
	border-color: var(--violet-700);
}

/* Custom size inputs */
.asw-size-custom-row {
	display: flex;
	align-items: center;
	gap: 6px;
}

.asw-dim-group {
	display: flex;
	align-items: center;
	gap: 4px;
}

.asw-dim-input {
	width: 58px;
	padding: 6px 7px;
	border: 1.5px solid #e8e5ee;
	border-radius: 8px;
	font-family: 'Satoshi', 'DM Sans', sans-serif;
	font-size: 12px;
	font-weight: 600;
	color: #2d2640;
	background: #faf9fb;
	outline: none;
	transition: border-color 0.15s, box-shadow 0.15s;
	text-align: center;
	box-sizing: border-box;
}

.asw-dim-input:focus {
	border-color: var(--violet-600);
	background: #fff;
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--violet-600) 10%, transparent);
}

.asw-dim-sep {
	font-size: 13px;
	color: #6b6580;
	font-weight: 600;
}

.asw-dim-unit {
	font-size: 10.5px;
	color: #6b6580;
	font-weight: 600;
	letter-spacing: 0.04em;
	font-family: 'Satoshi', 'DM Sans', sans-serif;
}

/* ── Price panel ──────────────────────────────────────────────────── */
.asw-price-panel {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.asw-price-tools {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}

.asw-qty-field {
	display: flex;
	flex-direction: column;
	gap: 5px;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #6b6580;
}

.asw-qty-input {
	width: 110px;
	padding: 8px 10px;
	border: 1.5px solid #e8e5ee;
	border-radius: 10px;
	font-family: 'Satoshi', 'DM Sans', sans-serif;
	font-size: 13px;
	font-weight: 700;
	color: #2d2640;
	background: #faf9fb;
}

.asw-tax-toggle {
	display: inline-flex;
	padding: 4px;
	border-radius: 999px;
	background: var(--violet-50);
	border: 1px solid #e8e5ee;
}

.asw-tax-pill {
	border: 0;
	background: transparent;
	padding: 6px 12px;
	border-radius: 999px;
	font-family: 'Satoshi', 'DM Sans', sans-serif;
	font-size: 11px;
	font-weight: 800;
	color: #6b6580;
	cursor: pointer;
}

.asw-tax-pill.is-selected {
	background: var(--violet-600);
	color: #fff;
}

.asw-price-summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 12px;
	border-radius: 12px;
	background: #f8f7fb;
	border: 1px solid #ece8f4;
	font-family: 'Satoshi', 'DM Sans', sans-serif;
	font-size: 12px;
	color: #6b6580;
}

.asw-price-summary strong {
	font-size: 16px;
	color: #2d2640;
	flex-shrink: 0;
}

.asw-qty-summary {
	display: flex;
	align-items: center;
	gap: 5px;
	min-width: 0;
}

.asw-qty-input-inline {
	width: 52px;
	padding: 3px 6px;
	border: 1.5px solid var(--violet-200);
	border-radius: 7px;
	font-family: 'Satoshi', 'DM Sans', sans-serif;
	font-size: 13px;
	font-weight: 700;
	color: #2d2640;
	background: #fff;
	outline: none;
	text-align: center;
	box-sizing: border-box;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.asw-qty-input-inline:focus {
	border-color: var(--violet-600);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--violet-600) 10%, transparent);
}

.asw-price-table {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 1px;
	overflow-y: auto;
	min-height: 0;
	max-height: 210px;
}

.asw-price-header {
	display: grid;
	grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1fr) 52px;
	gap: 4px;
	padding: 0 8px 5px;
	font-size: 9.5px;
	font-weight: 700;
	color: #9ca3af;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	font-family: 'Satoshi', 'DM Sans', sans-serif;
	border-bottom: 1px solid #f0edf7;
}

.asw-price-header span {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.asw-price-row {
	display: grid;
	grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1fr) 52px;
	align-items: center;
	gap: 4px;
	padding: 6px 8px;
	border-radius: 8px;
	cursor: pointer;
	border: 1.5px solid transparent;
	transition:
		background   0.13s ease,
		border-color 0.13s ease;
	user-select: none;
}

.asw-price-row:hover {
	background: var(--violet-50);
}

.asw-price-row.is-selected {
	background: var(--violet-50);
	border-color: var(--violet-200);
}

.asw-price-qty {
	font-size: 12px;
	font-weight: 700;
	color: #2d2640;
	font-family: 'Satoshi', 'DM Sans', sans-serif;
}

.asw-price-row.is-selected .asw-price-qty {
	color: var(--violet-600);
}

.asw-price-unit {
	font-size: 11px;
	color: #6b6580;
	font-weight: 500;
	font-family: 'Satoshi', 'DM Sans', sans-serif;
}

.asw-price-total {
	font-size: 12px;
	font-weight: 700;
	color: #2d2640;
	font-family: 'Satoshi', 'DM Sans', sans-serif;
}

.asw-price-row.is-selected .asw-price-total {
	color: var(--violet-600);
}

.asw-price-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 9px;
	font-weight: 700;
	background: #a3e635;
	color: #120f1f;
	padding: 2px 5px;
	border-radius: 20px;
	letter-spacing: 0.02em;
	font-family: 'Satoshi', 'DM Sans', sans-serif;
	white-space: nowrap;
}

.asw-price-unavail {
	font-size: 11px;
	color: #6b6580;
	padding: 12px 8px;
	text-align: center;
	font-family: 'Satoshi', 'DM Sans', sans-serif;
}

/* ── CTA button ───────────────────────────────────────────────────── */
.asw-cta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 12px 18px;
	background: linear-gradient(135deg, var(--violet-600) 0%, var(--violet-700) 100%);
	color: #ffffff;
	font-family: 'Satoshi', 'DM Sans', sans-serif;
	font-size: 13.5px;
	font-weight: 800;
	letter-spacing: 0.01em;
	border: 2px solid var(--violet-600);
	border-radius: 12px;
	cursor: pointer;
	transition:
		background  0.22s cubic-bezier(0.34, 1.56, 0.64, 1),
		border-color 0.22s cubic-bezier(0.34, 1.56, 0.64, 1),
		transform   0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
		box-shadow  0.22s ease;
	flex-shrink: 0;
	position: relative;
	overflow: hidden;
}

.asw-cta::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 60%);
	pointer-events: none;
}

.asw-cta:hover {
	background: linear-gradient(135deg, var(--violet-700) 0%, var(--violet-600) 100%);
	border-color: var(--violet-700);
	transform: translateY(-2px);
	box-shadow: 0 8px 24px color-mix(in srgb, var(--violet-600) 34%, transparent);
}

.asw-cta:active {
	transform: translateY(0);
	box-shadow: 0 2px 8px color-mix(in srgb, var(--violet-700) 24%, transparent);
}

.asw-cta-arrow {
	flex-shrink: 0;
	transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.asw-cta:hover .asw-cta-arrow {
	transform: translateX(5px);
}

/* ── Animations ───────────────────────────────────────────────────── */
@keyframes asw-spin {
	to { transform: rotate(360deg); }
}

/* ── Responsive — tablet ──────────────────────────────────────────── */
@media (max-width: 680px) {
	.asw {
		flex-direction: column;
		padding: 20px 20px 24px;
		gap: 18px;
		min-height: auto;
	}

	.asw-panel {
		padding: 0;
		gap: 8px;
	}

	.asw-divider {
		width: 100%;
		height: 1px;
	}

	.asw-size-grid {
		grid-template-columns: 1fr 1fr 1fr;
	}

	.asw-price-tools {
		align-items: center;
		gap: 8px;
	}

	.asw-qty-input {
		padding: 6px 10px;
	}

	.asw-price-summary {
		padding: 8px 12px;
	}

	.asw-price-table {
		max-height: 180px;
	}

	.asw-price-header,
	.asw-price-row {
		grid-template-columns: 52px minmax(0, 1fr) minmax(0, 1fr) 40px;
	}
}

/* ── Responsive — mobile small ────────────────────────────────────── */
@media (max-width: 420px) {
	.asw {
		padding: 16px;
		gap: 16px;
	}

	.asw-size-grid {
		grid-template-columns: 1fr 1fr;
	}
}
