/* SM Wishlist. Theme with CSS variables on body (see Settings › Styling). */
body {
	--smwl-accent: #D7263D;
	--smwl-ink: #111111;
	--smwl-muted: #5C5C5C;
	--smwl-line: #DDDDDD;
	--smwl-tint: #F3F4F6;
	--smwl-radius: 4px;
	--smwl-btn-bg: #111111;
	--smwl-btn-fg: #FFFFFF;
	--smwl-font-heading: inherit;
}

.smwl-heart { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; transition: fill .15s ease, transform .15s ease; }
.is-active > .smwl-heart, .smwl-btn.is-active .smwl-heart { fill: var(--smwl-accent); stroke: var(--smwl-accent); }

/* Buttons */
.smwl-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-width: 44px; min-height: 44px; padding: 0;
	background: transparent; border: 0; color: var(--smwl-ink); cursor: pointer; font: inherit; line-height: 1;
	-webkit-tap-highlight-color: transparent;
}
.smwl-btn:hover .smwl-heart { transform: scale(1.08); }
.smwl-btn.is-pulse .smwl-heart { transform: scale(1.25); }
.smwl-btn:focus-visible { outline: 3px solid var(--smwl-accent); outline-offset: 2px; }

.smwl-btn--single { padding: 0 16px; margin: 0 0 0 8px; border: 1.5px solid var(--smwl-line); border-radius: var(--smwl-radius); background: #fff; vertical-align: top; }
.smwl-btn--single .smwl-btn__label { font-size: 14px; font-weight: 600; }
form.cart .smwl-btn--single { height: auto; }
@media (max-width: 600px) { .smwl-btn--single { margin: 10px 0 0; width: 100%; } }

.smwl-has-btn { position: relative; }
.smwl-btn--loop {
	position: absolute; top: 6px; right: 6px; z-index: 5;
	width: 44px; height: 44px; border-radius: 50%;
	background: rgba(255, 255, 255, .92); box-shadow: 0 1px 4px rgba(0, 0, 0, .12);
}

.smwl-save-later {
	display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 0;
	min-height: 32px; background: transparent !important; border: 0 !important; box-shadow: none !important;
	color: var(--smwl-muted) !important; font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: underline;
}
.smwl-save-later .smwl-heart { width: 16px; height: 16px; }
.smwl-save-later:hover { color: var(--smwl-ink) !important; }
.smwl-save-later[disabled] { opacity: .5; cursor: wait; }
td.product-name .smwl-save-later { display: flex; }

/* Header icon */
.smwl-header { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: inherit; text-decoration: none; }
.smwl-header .smwl-heart { width: 24px; height: 24px; }
.smwl-header__count {
	position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 4px; box-sizing: border-box;
	border-radius: 9px; background: var(--smwl-accent); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
}
.smwl-header__count[hidden] { display: none; }

/* List */
.smwl-list__loading, .smwl-list__error { color: var(--smwl-muted); }
.smwl-items { list-style: none; margin: 0; padding: 0; border-top: 3px solid var(--smwl-ink); }
.smwl-items__item { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; margin: 0; padding: 20px 0; border-bottom: 1px solid var(--smwl-line); transition: opacity .2s; }
.smwl-items__item.is-removing { opacity: .4; }
.smwl-items__thumb { flex: 0 0 96px; width: 96px; height: 96px; display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--smwl-tint); border-radius: var(--smwl-radius); }
.smwl-items__thumb img { width: 96px !important; height: 96px !important; object-fit: contain; margin: 0 !important; }
.smwl-items__info { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.smwl-items__name { font-family: var(--smwl-font-heading); font-weight: 600; font-size: 16px; color: var(--smwl-ink) !important; text-decoration: none; }
.smwl-items__attrs { font-size: 14px; color: var(--smwl-muted); }
.smwl-items__price { font-weight: 600; color: var(--smwl-ink); }
.smwl-items__stock { align-self: flex-start; font-size: 13px; font-weight: 600; padding: 2px 10px; border-radius: 999px; }
.smwl-items__stock.is-in { background: #E4EBDD; color: #3B4A2F; }
.smwl-items__stock.is-out { background: #ECEEF0; color: #454A50; }
.smwl-items__actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.smwl-items__remove { background: transparent !important; border: 0 !important; color: var(--smwl-muted) !important; text-decoration: underline; min-height: 44px; padding: 0 4px !important; cursor: pointer; font-size: 14px; box-shadow: none !important; }
.smwl-items__remove:hover { color: var(--smwl-ink) !important; }
@media (max-width: 600px) {
	.smwl-items__thumb { flex-basis: 72px; width: 72px; height: 72px; }
	.smwl-items__thumb img { width: 72px !important; height: 72px !important; }
	.smwl-items__actions { width: 100%; }
	.smwl-items__cta { flex: 1 1 auto; }
}

.smwl-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 48px 24px; border: 1px solid var(--smwl-line); border-top: 3px solid var(--smwl-ink); }
.smwl-empty .smwl-heart { width: 40px; height: 40px; color: var(--smwl-accent); }
.smwl-empty p { margin: 0; }
.smwl-empty__title { font-family: var(--smwl-font-heading); font-weight: 700; font-size: 20px; color: var(--smwl-ink); }

/* Toast */
.smwl-toast {
	position: fixed; left: 50%; bottom: 24px; z-index: 99999; transform: translate(-50%, 20px);
	padding: 12px 20px; border-radius: var(--smwl-radius); background: var(--smwl-ink); color: #fff;
	font-size: 14px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: calc(100% - 32px);
}
.smwl-toast.is-shown { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { .smwl-heart, .smwl-toast, .smwl-items__item { transition: none; } }
