/* ==========================================================================
   TIT Wishlist
   Colours are tokens, so a theme can repaint everything in one place
   (Trade In Track Marketplace maps them to its own palette).
   ========================================================================== */

:root {
	--titwl-accent: #0c7c4b;
	--titwl-accent-ink: #0a6a40;
	--titwl-on-accent: #fff;
	/* Main buttons and links can differ from the accent (a yellow button
	   with dark text, say). */
	--titwl-btn: var(--titwl-accent);
	--titwl-btn-hover: var(--titwl-accent-ink);
	--titwl-on-btn: var(--titwl-on-accent);
	--titwl-link: var(--titwl-accent);
	--titwl-heart: #e0245e;
	--titwl-heart-soft: #fde8ef;
	--titwl-ink: #141a14;
	--titwl-ink-2: #3a433a;
	--titwl-muted: #66706a;
	--titwl-line: #e2e6e1;
	--titwl-card: #fff;
	--titwl-soft: #f4f6f3;
	--titwl-ok: #0a7d3b;
	--titwl-warn: #a65a00;
	--titwl-bad: #c0392b;
	--titwl-radius: 12px;
	--titwl-radius-s: 8px;
	--titwl-btn-radius: 8px;
	--titwl-shadow: 0 1px 2px rgba(16, 24, 16, .06), 0 6px 20px rgba(16, 24, 16, .06);
	--titwl-shadow-lg: 0 12px 40px rgba(16, 24, 16, .2);
	--titwl-ease: cubic-bezier(.2, .7, .2, 1);
}

.titwl-svg,
.titwl-icon {
	display: inline-block;
	flex: 0 0 auto;
	vertical-align: middle;
}

/* ---------------------------------------------------------------- heart */

li.product:has(> .titwl-heart),
.wc-block-components-product-image:has(> .titwl-heart) {
	position: relative;
}

.titwl-heart {
	align-items: center;
	appearance: none;
	background: rgba(255, 255, 255, .94);
	border: 0;
	border-radius: 999px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .14), 0 2px 10px rgba(0, 0, 0, .08);
	color: var(--titwl-ink-2);
	cursor: pointer;
	display: inline-flex;
	height: 38px;
	justify-content: center;
	margin: 0;
	padding: 0;
	position: absolute;
	right: 10px;
	top: 10px;
	transition: transform .15s var(--titwl-ease), color .15s, background-color .15s;
	width: 38px;
	z-index: 4;
	-webkit-tap-highlight-color: transparent;
}

.titwl-heart .titwl-icon path,
.titwl-add .titwl-icon path {
	fill: transparent;
	stroke: currentColor;
	stroke-linejoin: round;
	stroke-width: 1.9;
	transition: fill .15s;
}

.titwl-heart:hover,
.titwl-heart:focus-visible {
	color: var(--titwl-heart);
	transform: scale(1.06);
}

.titwl-heart:focus-visible,
.titwl-add:focus-visible {
	outline: 2px solid var(--titwl-heart);
	outline-offset: 2px;
}

.titwl-heart.is-saved,
.titwl-add.is-saved {
	color: var(--titwl-heart);
}

.titwl-heart.is-saved .titwl-icon path,
.titwl-add.is-saved .titwl-icon path {
	fill: currentColor;
}

.titwl-heart.is-pop .titwl-icon,
.titwl-add.is-pop .titwl-icon {
	animation: titwl-pop .42s var(--titwl-ease);
}

.titwl-heart[aria-busy="true"],
.titwl-add[aria-busy="true"] {
	cursor: progress;
}

@keyframes titwl-pop {
	0% { transform: scale(1); }
	35% { transform: scale(1.32); }
	70% { transform: scale(.92); }
	100% { transform: scale(1); }
}

/* A heart in a row of buttons (seller tiles, shared lists). */
.titwl-heart--inline {
	border: 1px solid var(--titwl-line);
	box-shadow: none;
	flex: 0 0 auto;
	height: 36px;
	position: static;
	width: 36px;
}

.titwl-heart--block {
	right: 8px;
	top: 8px;
}

/* ------------------------------------------------- product page button */

.titwl-single {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 6px 14px;
	margin: 12px 0 4px;
}

.titwl-add {
	align-items: center;
	appearance: none;
	background: var(--titwl-card);
	border: 1.5px solid var(--titwl-line);
	border-radius: var(--titwl-btn-radius);
	color: var(--titwl-ink);
	cursor: pointer;
	display: inline-flex;
	flex: 1 1 100%;
	font: inherit;
	font-size: 15px;
	font-weight: 700;
	gap: 10px;
	justify-content: center;
	line-height: 1.2;
	margin: 0;
	min-height: 48px;
	padding: 10px 18px;
	transition: border-color .15s, background-color .15s, color .15s;
}

.titwl-add:hover {
	border-color: var(--titwl-heart);
	color: var(--titwl-heart);
}

.titwl-add.is-saved {
	background: var(--titwl-heart-soft);
	border-color: color-mix(in srgb, var(--titwl-heart) 35%, transparent);
	color: var(--titwl-ink);
}

.titwl-add.is-saved .titwl-add__icon {
	color: var(--titwl-heart);
}

.titwl-add__icon {
	display: inline-flex;
}

.titwl-single__view {
	color: var(--titwl-link);
	font-size: 14px;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.titwl-single__view[hidden] {
	display: none;
}

.titwl-single__saves {
	align-items: center;
	color: var(--titwl-muted);
	display: inline-flex;
	font-size: 13px;
	gap: 6px;
	margin: 0;
}

.titwl-single__saves .titwl-icon path {
	fill: var(--titwl-heart);
	stroke: var(--titwl-heart);
}

/* ---------------------------------------------------------------- toast */

.titwl-toast {
	align-items: center;
	background: #141a15;
	border-radius: 14px;
	bottom: max(18px, env(safe-area-inset-bottom));
	box-shadow: var(--titwl-shadow-lg);
	color: #fff;
	display: flex;
	gap: 12px;
	left: 50%;
	max-width: min(94vw, 540px);
	opacity: 0;
	padding: 10px 8px 10px 12px;
	pointer-events: none;
	position: fixed;
	transform: translate(-50%, 24px);
	transition: opacity .2s, transform .25s var(--titwl-ease);
	width: max-content;
	z-index: 100050;
}

.titwl-toast.is-on {
	opacity: 1;
	pointer-events: auto;
	transform: translate(-50%, 0);
}

.titwl-toast__thumb {
	background: #fff;
	border-radius: 8px;
	flex: 0 0 auto;
	height: 42px;
	object-fit: contain;
	width: 42px;
}

.titwl-toast__msg {
	flex: 1 1 auto;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
	min-width: 0;
}

.titwl-toast__act {
	background: transparent;
	border: 0;
	border-radius: 8px;
	color: #8fe0b4;
	cursor: pointer;
	flex: 0 0 auto;
	font: inherit;
	font-size: 14px;
	font-weight: 800;
	padding: 8px 10px;
	text-decoration: none;
	white-space: nowrap;
}

.titwl-toast__act:hover,
.titwl-toast__act:focus-visible {
	background: rgba(255, 255, 255, .1);
	color: #fff;
}

.titwl-toast__close {
	background: transparent;
	border: 0;
	color: rgba(255, 255, 255, .6);
	cursor: pointer;
	flex: 0 0 auto;
	font-size: 22px;
	line-height: 1;
	padding: 4px 8px;
}

.titwl-toast__close:hover {
	color: #fff;
}

/* --------------------------------------------------------------- dialog */

.titwl-dialog {
	background: var(--titwl-card);
	border: 0;
	border-radius: 18px;
	box-shadow: var(--titwl-shadow-lg);
	color: var(--titwl-ink);
	max-height: min(86vh, 640px);
	padding: 0;
	width: min(94vw, 440px);
}

.titwl-dialog::backdrop {
	background: rgba(10, 14, 10, .5);
}

.titwl-dialog.is-fallback {
	left: 50%;
	position: fixed;
	top: 12vh;
	transform: translateX(-50%);
	z-index: 100060;
}

.titwl-dialog__inner {
	display: flex;
	flex-direction: column;
	margin: 0;
	max-height: inherit;
}

.titwl-dialog__head {
	align-items: center;
	border-bottom: 1px solid var(--titwl-line);
	display: flex;
	justify-content: space-between;
	padding: 16px 16px 14px 20px;
}

.titwl-dialog__head h2 {
	font-size: 17px;
	font-weight: 800;
	line-height: 1.3;
	margin: 0;
}

.titwl-dialog__x {
	background: transparent;
	border: 0;
	border-radius: 8px;
	color: var(--titwl-muted);
	cursor: pointer;
	font-size: 26px;
	line-height: 1;
	padding: 2px 8px;
}

.titwl-dialog__x:hover {
	background: var(--titwl-soft);
	color: var(--titwl-ink);
}

.titwl-dialog__body {
	overflow: auto;
	padding: 14px 20px 6px;
}

.titwl-dialog__lists {
	display: grid;
	gap: 8px;
	margin: 0 0 16px;
}

.titwl-dialog__list {
	align-items: center;
	border: 1.5px solid var(--titwl-line);
	border-radius: 12px;
	cursor: pointer;
	display: grid;
	gap: 2px 12px;
	grid-template-columns: auto minmax(0, 1fr);
	padding: 11px 14px;
	transition: border-color .15s, background-color .15s;
}

.titwl-dialog__list:hover {
	border-color: color-mix(in srgb, var(--titwl-accent) 45%, var(--titwl-line));
}

.titwl-dialog__list.is-on {
	background: color-mix(in srgb, var(--titwl-accent) 7%, transparent);
	border-color: var(--titwl-accent);
}

.titwl-dialog__list input {
	accent-color: var(--titwl-accent);
	grid-row: span 2;
	height: 20px;
	margin: 0;
	width: 20px;
}

.titwl-dialog__name {
	font-weight: 700;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.titwl-dialog__count {
	color: var(--titwl-muted);
	font-size: 13px;
}

.titwl-dialog__new {
	border-top: 1px dashed var(--titwl-line);
	padding-top: 14px;
}

.titwl-dialog__foot {
	border-top: 1px solid var(--titwl-line);
	display: flex;
	justify-content: flex-end;
	padding: 12px 20px 16px;
}

/* --------------------------------------------------------------- basics */

.titwl {
	color: var(--titwl-ink);
	font-size: 15px;
	line-height: 1.5;
	margin: 0 auto;
	max-width: 1280px;
	width: 100%;
}

.titwl *,
.titwl *::before,
.titwl *::after {
	box-sizing: border-box;
}

.titwl a {
	color: var(--titwl-link);
}

.titwl [hidden] {
	display: none !important;
}

.titwl-btn {
	align-items: center;
	appearance: none;
	background: var(--titwl-card);
	border: 1.5px solid var(--titwl-line);
	border-radius: var(--titwl-btn-radius);
	color: var(--titwl-ink);
	cursor: pointer;
	display: inline-flex;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	gap: 8px;
	justify-content: center;
	line-height: 1.2;
	margin: 0;
	min-height: 42px;
	padding: 8px 16px;
	text-decoration: none !important;
	transition: background-color .15s, border-color .15s, color .15s, opacity .15s;
	white-space: nowrap;
}

.titwl a.titwl-btn {
	color: var(--titwl-ink);
}

.titwl-btn:hover {
	border-color: var(--titwl-ink-2);
}

.titwl-btn:focus-visible {
	outline: 2px solid var(--titwl-accent);
	outline-offset: 2px;
}

.titwl-btn--primary,
.titwl a.titwl-btn--primary {
	background: var(--titwl-btn);
	border-color: var(--titwl-btn);
	color: var(--titwl-on-btn);
}

.titwl-btn--primary:hover,
.titwl a.titwl-btn--primary:hover {
	background: var(--titwl-btn-hover);
	border-color: var(--titwl-btn-hover);
	color: var(--titwl-on-btn);
}

.titwl-btn--ghost {
	background: transparent;
}

.titwl-btn--danger {
	border-color: color-mix(in srgb, var(--titwl-bad) 40%, transparent);
	color: var(--titwl-bad);
}

.titwl-btn--danger:hover {
	background: var(--titwl-bad);
	border-color: var(--titwl-bad);
	color: #fff;
}

.titwl-btn--sm {
	font-size: 13px;
	min-height: 36px;
	padding: 6px 12px;
}

.titwl-btn--lg {
	font-size: 16px;
	min-height: 50px;
	padding: 10px 24px;
}

.titwl-btn--icon {
	padding-left: 0;
	padding-right: 0;
	width: 36px;
}

.titwl-btn--block {
	width: 100%;
}

.titwl-btn--off,
.titwl-btn:disabled {
	cursor: not-allowed;
	opacity: .5;
}

.titwl-btn--off:hover {
	border-color: var(--titwl-line);
}

.titwl-btn.is-busy {
	cursor: progress;
	opacity: .7;
}

.titwl-btn.is-done {
	background: var(--titwl-ok);
	border-color: var(--titwl-ok);
	color: #fff;
}

.titwl-link {
	align-items: center;
	background: transparent;
	border: 0;
	color: var(--titwl-ink-2);
	cursor: pointer;
	display: inline-flex;
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	gap: 5px;
	list-style: none;
	padding: 4px 2px;
	text-decoration: underline;
	text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
	text-underline-offset: 3px;
}

.titwl-link::-webkit-details-marker {
	display: none;
}

.titwl-link:hover {
	color: var(--titwl-ink);
	text-decoration-color: currentColor;
}

.titwl-link--danger:hover {
	color: var(--titwl-bad);
}

.titwl-label {
	color: var(--titwl-ink-2);
	display: block;
	font-size: 13px;
	font-weight: 700;
	margin: 0 0 6px;
}

.titwl-input,
.titwl-select {
	background: var(--titwl-card);
	border: 1.5px solid var(--titwl-line);
	border-radius: var(--titwl-radius-s);
	color: var(--titwl-ink);
	font: inherit;
	font-size: 15px;
	min-height: 42px;
	padding: 8px 12px;
	width: 100%;
}

.titwl-select {
	cursor: pointer;
	padding-right: 32px;
	width: auto;
}

.titwl-select--sm {
	font-size: 13px;
	min-height: 36px;
	padding-bottom: 5px;
	padding-top: 5px;
}

.titwl-input:focus,
.titwl-select:focus {
	border-color: var(--titwl-accent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--titwl-accent) 18%, transparent);
	outline: none;
}

.titwl-row {
	display: flex;
	gap: 8px;
}

.titwl-row .titwl-input {
	flex: 1 1 auto;
	min-width: 0;
}

.titwl-hint {
	color: var(--titwl-muted);
	font-size: 13px;
	margin: 0;
}

.titwl-hint--danger {
	color: var(--titwl-bad);
	font-weight: 700;
	margin-bottom: 8px;
}

.titwl-dot {
	color: var(--titwl-muted);
}

.titwl-notices:empty {
	display: none;
}

.titwl-inline-notice {
	background: #fff8e6;
	border: 1px solid #f2d48c;
	border-radius: var(--titwl-radius-s);
	color: #6b4a00;
	font-size: 14px;
	margin: 0 0 16px;
	padding: 10px 14px;
}

/* -------------------------------------------------------------- guests */

.titwl-guestbar {
	align-items: center;
	background: var(--titwl-card);
	border: 1px solid var(--titwl-line);
	border-radius: var(--titwl-radius);
	display: flex;
	flex-wrap: wrap;
	gap: 10px 16px;
	margin: 0 0 18px;
	padding: 14px 16px;
}

.titwl-guestbar p {
	flex: 1 1 260px;
	margin: 0;
}

.titwl-guestbar__icon {
	align-items: center;
	background: var(--titwl-soft);
	border-radius: 50%;
	color: var(--titwl-accent);
	display: inline-flex;
	height: 40px;
	justify-content: center;
	width: 40px;
}

.titwl-guestbar__actions {
	display: flex;
	gap: 8px;
}

/* -------------------------------------------------------------- layout */

.titwl-layout {
	display: grid;
	gap: 24px;
}

.titwl--lists .titwl-layout {
	grid-template-columns: 250px minmax(0, 1fr);
}

.titwl-main {
	min-width: 0;
}

/* Lists sidebar */
.titwl-lists {
	align-self: start;
	background: var(--titwl-card);
	border: 1px solid var(--titwl-line);
	border-radius: var(--titwl-radius);
	padding: 14px;
	position: sticky;
	top: calc(var(--wp-admin--admin-bar--height, 0px) + 16px);
}

.titwl-lists__title {
	color: var(--titwl-muted);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .06em;
	margin: 2px 6px 8px;
	text-transform: uppercase;
}

.titwl-lists__list {
	display: grid;
	gap: 2px;
	list-style: none;
	margin: 0 0 8px;
	padding: 0;
}

.titwl .titwl-lists__link {
	align-items: center;
	border-radius: var(--titwl-radius-s);
	color: var(--titwl-ink);
	display: flex;
	font-weight: 600;
	gap: 8px;
	padding: 9px 10px;
	text-decoration: none;
}

.titwl .titwl-lists__link:hover {
	background: var(--titwl-soft);
}

.titwl .titwl-lists__link.is-current {
	background: color-mix(in srgb, var(--titwl-accent) 10%, transparent);
	box-shadow: inset 3px 0 0 var(--titwl-accent);
	color: var(--titwl-ink);
	font-weight: 800;
}

.titwl-lists__name {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.titwl-lists__shared {
	color: var(--titwl-muted);
	display: none;
}

.titwl-lists__link.is-shared .titwl-lists__shared {
	display: inline-flex;
}

.titwl-lists__count {
	background: var(--titwl-soft);
	border-radius: 999px;
	color: var(--titwl-ink-2);
	font-size: 12px;
	font-weight: 700;
	min-width: 26px;
	padding: 1px 8px;
	text-align: center;
}

.titwl-newlist {
	border-top: 1px solid var(--titwl-line);
	padding-top: 8px;
}

.titwl-newlist__toggle {
	align-items: center;
	border-radius: var(--titwl-radius-s);
	color: var(--titwl-accent);
	cursor: pointer;
	display: flex;
	font-weight: 700;
	gap: 8px;
	list-style: none;
	padding: 9px 10px;
}

.titwl-newlist__toggle::-webkit-details-marker {
	display: none;
}

.titwl-newlist__toggle:hover {
	background: var(--titwl-soft);
}

.titwl-newlist__form {
	display: grid;
	gap: 8px;
	padding: 6px 4px 4px;
}

/* List header */
.titwl-listhead {
	align-items: flex-start;
	display: flex;
	flex-wrap: wrap;
	gap: 12px 16px;
	justify-content: space-between;
	margin: 0 0 14px;
}

.titwl-listhead__text {
	min-width: 0;
}

.titwl .titwl-listhead__name {
	font-size: clamp(22px, 2.4vw, 28px);
	font-weight: 800;
	letter-spacing: -.01em;
	line-height: 1.2;
	margin: 0;
	overflow-wrap: anywhere;
}

.titwl-listhead__meta {
	align-items: center;
	color: var(--titwl-muted);
	display: flex;
	flex-wrap: wrap;
	font-size: 14px;
	gap: 6px;
	margin: 4px 0 0;
}

.titwl-privacy {
	align-items: center;
	display: inline-flex;
	gap: 5px;
}

.titwl-privacy__icon {
	display: inline-flex;
}

.titwl-privacy__icon--shared,
.titwl-privacy.is-shared .titwl-privacy__icon--private {
	display: none;
}

.titwl-privacy.is-shared .titwl-privacy__icon--shared {
	display: inline-flex;
}

.titwl-privacy.is-shared {
	color: var(--titwl-accent);
	font-weight: 700;
}

.titwl-listhead__actions {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.titwl-sort {
	margin: 0;
}

/* Options menu */
.titwl-menu {
	position: relative;
}

.titwl-menu > summary {
	list-style: none;
}

.titwl-menu > summary::-webkit-details-marker {
	display: none;
}

.titwl-menu__panel {
	background: var(--titwl-card);
	border: 1px solid var(--titwl-line);
	border-radius: var(--titwl-radius);
	box-shadow: var(--titwl-shadow-lg);
	display: grid;
	gap: 14px;
	padding: 14px;
	position: absolute;
	right: 0;
	top: calc(100% + 8px);
	width: min(320px, 86vw);
	z-index: 30;
}

.titwl-menu__form {
	margin: 0;
}

/* Share panel */
.titwl-share {
	background: var(--titwl-card);
	border: 1px solid var(--titwl-line);
	border-radius: var(--titwl-radius);
	display: grid;
	gap: 16px;
	margin: 0 0 16px;
	padding: 16px;
}

.titwl-share fieldset {
	border: 0;
	display: grid;
	gap: 8px;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	margin: 0;
	padding: 0;
}

.titwl-share legend {
	grid-column: 1 / -1;
	padding: 0;
}

.titwl-share__privacy {
	margin: 0;
}

.titwl-choice {
	align-items: flex-start;
	border: 1.5px solid var(--titwl-line);
	border-radius: var(--titwl-radius-s);
	cursor: pointer;
	display: flex;
	gap: 10px;
	padding: 12px;
}

.titwl-choice:has(input:checked) {
	background: color-mix(in srgb, var(--titwl-accent) 6%, transparent);
	border-color: var(--titwl-accent);
}

.titwl-choice input {
	accent-color: var(--titwl-accent);
	margin: 3px 0 0;
}

.titwl-choice strong {
	align-items: center;
	display: flex;
	gap: 6px;
}

.titwl-choice small {
	color: var(--titwl-muted);
	display: block;
	font-size: 13px;
	line-height: 1.4;
	margin-top: 2px;
}

.titwl-share__apps {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 10px;
}

.titwl .titwl-share__app {
	align-items: center;
	background: var(--titwl-soft);
	border: 0;
	border-radius: 999px;
	color: var(--titwl-ink);
	cursor: pointer;
	display: inline-flex;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	gap: 8px;
	padding: 8px 14px;
	text-decoration: none;
}

.titwl .titwl-share__app:hover {
	background: var(--titwl-line);
}

.titwl .titwl-share__app--wa {
	background: #25d366;
	color: #fff;
}

.titwl .titwl-share__app--wa:hover {
	background: #1ebe5b;
}

.titwl-share__new {
	margin: 10px 0 0;
}

/* ------------------------------------------------------------- toolbar */

.titwl-form {
	margin: 0;
}

.titwl-toolbar {
	align-items: center;
	background: var(--titwl-card);
	border: 1px solid var(--titwl-line);
	border-radius: var(--titwl-radius);
	display: flex;
	flex-wrap: wrap;
	gap: 10px 14px;
	margin: 0 0 12px;
	padding: 10px 14px;
	position: relative;
	z-index: 10;
}

.titwl-toolbar.has-selection {
	border-color: var(--titwl-accent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--titwl-accent) 12%, transparent);
}

.titwl-check {
	align-items: center;
	cursor: pointer;
	display: inline-flex;
	font-size: 14px;
	font-weight: 700;
	gap: 8px;
	margin: 0;
}

.titwl-check input,
.titwl-item__check input {
	accent-color: var(--titwl-accent);
	cursor: pointer;
	height: 18px;
	margin: 0;
	width: 18px;
}

.titwl-toolbar__count {
	color: var(--titwl-muted);
	font-size: 13px;
	font-weight: 600;
}

.titwl-toolbar__bulk {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-left: auto;
}

/* --------------------------------------------------------------- items */

.titwl-items {
	display: grid;
	gap: 10px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.titwl-item {
	align-items: center;
	background: var(--titwl-card);
	border: 1px solid var(--titwl-line);
	border-radius: var(--titwl-radius);
	column-gap: 16px;
	display: grid;
	grid-template-areas: "check media info price actions";
	grid-template-columns: 22px 104px minmax(0, 1fr) minmax(120px, 170px) 220px;
	padding: 14px 16px;
	position: relative;
	transition: opacity .25s, transform .25s var(--titwl-ease), border-color .15s, box-shadow .15s;
}

.titwl--shared .titwl-item {
	grid-template-areas: "media info price actions";
	grid-template-columns: 104px minmax(0, 1fr) minmax(120px, 170px) 220px;
}

.titwl-item:hover {
	box-shadow: var(--titwl-shadow);
}

.titwl-item.is-selected {
	border-color: var(--titwl-accent);
	box-shadow: 0 0 0 1px var(--titwl-accent);
}

.titwl-item.is-working {
	opacity: .55;
	pointer-events: none;
}

.titwl-item.is-leaving {
	opacity: 0;
	transform: translateX(16px);
}

.titwl-item__check {
	align-items: center;
	align-self: center;
	display: flex;
	grid-area: check;
	justify-content: center;
}

.titwl-item__media {
	align-items: center;
	aspect-ratio: 1;
	background: #fff;
	border: 1px solid var(--titwl-line);
	border-radius: var(--titwl-radius-s);
	display: flex;
	grid-area: media;
	justify-content: center;
	overflow: hidden;
}

.titwl-item__media img,
.titwl-item__photo {
	display: block;
	height: 100% !important;
	margin: 0 !important;
	object-fit: contain;
	width: 100% !important;
}

.titwl-item__media--gone {
	background: var(--titwl-soft);
	color: var(--titwl-muted);
}

.titwl-item__info {
	display: grid;
	gap: 3px;
	grid-area: info;
	min-width: 0;
}

.titwl .titwl-item__name {
	color: var(--titwl-ink);
	display: -webkit-box;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.35;
	overflow: hidden;
	text-decoration: none;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.titwl .titwl-item__name:hover {
	color: var(--titwl-accent);
	text-decoration: underline;
}

.titwl-item__attrs,
.titwl-item__seller,
.titwl-item__added,
.titwl-item__bought {
	color: var(--titwl-muted);
	font-size: 13px;
	margin: 0;
}

.titwl .titwl-item__seller a {
	color: var(--titwl-ink-2);
	font-weight: 600;
}

.titwl-item__stock {
	align-items: center;
	display: inline-flex;
	font-size: 13px;
	font-weight: 700;
	gap: 6px;
	margin: 2px 0 0;
}

.titwl-item__stock::before {
	background: currentColor;
	border-radius: 50%;
	content: "";
	height: 7px;
	width: 7px;
}

.titwl-item__stock.is-in {
	color: var(--titwl-ok);
}

.titwl-item__stock.is-low,
.titwl-item__stock.is-back {
	color: var(--titwl-warn);
}

.titwl-item__stock.is-out {
	color: var(--titwl-bad);
}

.titwl-item__bought {
	align-items: center;
	color: var(--titwl-ok);
	display: inline-flex;
	font-weight: 700;
	gap: 4px;
}

.titwl-item__price {
	display: grid;
	gap: 4px;
	grid-area: price;
	justify-items: start;
}

.titwl-item__price .price {
	color: var(--titwl-ink);
	font-size: 18px;
	font-weight: 800;
	line-height: 1.25;
}

.titwl-item__price .price del {
	color: var(--titwl-muted);
	display: block;
	font-size: 13px;
	font-weight: 500;
}

.titwl-item__price .price ins {
	text-decoration: none;
}

.titwl-drop {
	align-items: center;
	background: #e7f6ec;
	border-radius: 6px;
	color: #0a6b33;
	display: inline-flex;
	font-size: 12px;
	font-weight: 700;
	gap: 4px;
	line-height: 1.3;
	padding: 3px 7px;
}

.titwl-drop .amount {
	font-weight: 800;
}

.titwl-item__actions {
	align-items: stretch;
	display: grid;
	gap: 8px;
	grid-area: actions;
	justify-items: stretch;
}

.titwl-buy {
	display: flex;
	gap: 8px;
}

.titwl-buy .titwl-btn {
	flex: 1 1 auto;
}

.titwl-qty {
	appearance: textfield;
	background: var(--titwl-card);
	border: 1.5px solid var(--titwl-line);
	border-radius: var(--titwl-radius-s);
	color: var(--titwl-ink);
	flex: 0 0 58px;
	font: inherit;
	font-size: 15px;
	font-weight: 700;
	min-height: 36px;
	padding: 4px 6px;
	text-align: center;
	width: 58px;
}

.titwl-qty:focus {
	border-color: var(--titwl-accent);
	outline: none;
}

.titwl-item__links {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 4px 14px;
	justify-content: flex-end;
}

.titwl-move {
	position: relative;
}

.titwl-move > summary {
	list-style: none;
}

.titwl-move__panel {
	background: var(--titwl-card);
	border: 1px solid var(--titwl-line);
	border-radius: var(--titwl-radius);
	box-shadow: var(--titwl-shadow-lg);
	display: grid;
	gap: 8px;
	padding: 12px;
	position: absolute;
	right: 0;
	top: calc(100% + 6px);
	width: 240px;
	z-index: 20;
}

.titwl-move__panel .titwl-select {
	width: 100%;
}

.titwl-item__notify {
	align-items: center;
	color: var(--titwl-muted);
	display: inline-flex;
	font-size: 13px;
	gap: 6px;
	justify-content: center;
	margin: 0;
}

button.titwl-item__notify {
	color: var(--titwl-link);
	font-weight: 700;
}

.titwl-item.is-gone .titwl-item__name {
	color: var(--titwl-muted);
}

/* ------------------------------------------------------------- summary */

.titwl-summary {
	align-items: center;
	background: var(--titwl-card);
	border: 1px solid var(--titwl-line);
	border-radius: var(--titwl-radius);
	display: flex;
	flex-wrap: wrap;
	gap: 12px 20px;
	justify-content: flex-end;
	margin: 14px 0 0;
	padding: 14px 16px;
}

.titwl-summary__total {
	align-items: baseline;
	display: flex;
	flex-wrap: wrap;
	gap: 4px 12px;
	margin: 0;
}

.titwl-summary__total > span {
	color: var(--titwl-muted);
}

.titwl-summary__total strong {
	font-size: 22px;
	font-weight: 800;
}

/* --------------------------------------------------------------- empty */

.titwl-empty {
	align-items: center;
	background: var(--titwl-card);
	border: 1px dashed color-mix(in srgb, var(--titwl-ink) 18%, transparent);
	border-radius: var(--titwl-radius);
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 48px 20px;
	text-align: center;
}

.titwl-empty__icon {
	align-items: center;
	background: var(--titwl-heart-soft);
	border-radius: 50%;
	color: var(--titwl-heart);
	display: inline-flex;
	height: 76px;
	justify-content: center;
	margin-bottom: 8px;
	width: 76px;
}

.titwl .titwl-empty__title {
	font-size: 20px;
	font-weight: 800;
	margin: 0;
}

.titwl-empty__text {
	color: var(--titwl-muted);
	margin: 0 0 12px;
	max-width: 46ch;
}

.titwl-empty--small {
	padding: 28px 16px;
}

/* -------------------------------------------------------------- alerts */

.titwl-alerts {
	align-items: center;
	background: var(--titwl-card);
	border: 1px solid var(--titwl-line);
	border-radius: var(--titwl-radius);
	display: flex;
	gap: 12px;
	margin: 16px 0 0;
	padding: 14px 16px;
}

.titwl-alerts--guest {
	color: var(--titwl-ink-2);
	font-size: 14px;
}

.titwl-alerts--guest .titwl-svg {
	color: var(--titwl-accent);
}

.titwl-switch {
	align-items: flex-start;
	cursor: pointer;
	display: flex;
	gap: 14px;
	margin: 0;
	width: 100%;
}

.titwl-switch input {
	height: 1px;
	opacity: 0;
	position: absolute;
	width: 1px;
}

.titwl-switch__ui {
	background: #c9cfc8;
	border-radius: 999px;
	flex: 0 0 auto;
	height: 26px;
	margin-top: 2px;
	position: relative;
	transition: background-color .15s;
	width: 46px;
}

.titwl-switch__ui::after {
	background: #fff;
	border-radius: 50%;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
	content: "";
	height: 20px;
	left: 3px;
	position: absolute;
	top: 3px;
	transition: transform .2s var(--titwl-ease);
	width: 20px;
}

.titwl-switch input:checked + .titwl-switch__ui {
	background: var(--titwl-accent);
}

.titwl-switch input:checked + .titwl-switch__ui::after {
	transform: translateX(20px);
}

.titwl-switch input:focus-visible + .titwl-switch__ui {
	outline: 2px solid var(--titwl-accent);
	outline-offset: 2px;
}

.titwl-switch__text strong {
	align-items: center;
	display: flex;
	gap: 6px;
}

.titwl-switch__text small {
	color: var(--titwl-muted);
	display: block;
	font-size: 13px;
	margin-top: 2px;
}

/* -------------------------------------------------------------- shared */

.titwl-sharedhead {
	align-items: center;
	display: flex;
	gap: 16px;
	margin: 0 0 12px;
}

.titwl-avatar {
	align-items: center;
	background: var(--titwl-heart-soft);
	border-radius: 50%;
	color: var(--titwl-heart);
	display: inline-flex;
	flex: 0 0 auto;
	font-size: 24px;
	font-weight: 800;
	height: 60px;
	justify-content: center;
	width: 60px;
}

.titwl-eyebrow {
	color: var(--titwl-muted);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .05em;
	margin: 0;
	text-transform: uppercase;
}

.titwl-note {
	background: var(--titwl-soft);
	border-radius: var(--titwl-radius-s);
	color: var(--titwl-ink-2);
	font-size: 14px;
	margin: 0 0 16px;
	padding: 10px 14px;
}

/* ---------------------------------------------- header count animation */

.titwl-bump {
	animation: titwl-bump .45s var(--titwl-ease);
}

@keyframes titwl-bump {
	0% { transform: scale(1); }
	40% { transform: scale(1.18); }
	100% { transform: scale(1); }
}

/* -------------------------------------------------------------- phones */

@media (max-width: 900px) {
	.titwl--lists .titwl-layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.titwl-lists {
		padding: 10px;
		position: static;
	}

	.titwl-lists__title {
		display: none;
	}

	.titwl-lists__list {
		display: flex;
		gap: 6px;
		margin: 0;
		overflow-x: auto;
		padding-bottom: 2px;
		scrollbar-width: none;
	}

	.titwl-lists__list::-webkit-scrollbar {
		display: none;
	}

	.titwl .titwl-lists__link {
		border: 1px solid var(--titwl-line);
		border-radius: 999px;
		padding: 7px 12px;
		white-space: nowrap;
	}

	.titwl .titwl-lists__link.is-current {
		border-color: var(--titwl-accent);
		box-shadow: none;
	}

	.titwl-lists__name {
		max-width: 160px;
	}

	.titwl-newlist {
		border-top: 0;
		margin-top: 6px;
		padding-top: 0;
	}

	.titwl-item {
		grid-template-columns: 22px 104px minmax(0, 1fr) 190px;
		grid-template-areas:
			"check media info actions"
			"check media price actions";
		row-gap: 6px;
	}

	.titwl--shared .titwl-item {
		grid-template-areas:
			"media info actions"
			"media price actions";
		grid-template-columns: 104px minmax(0, 1fr) 190px;
	}
}

@media (max-width: 640px) {
	.titwl {
		font-size: 14px;
	}

	.titwl-guestbar__actions {
		width: 100%;
	}

	.titwl-guestbar__actions .titwl-btn {
		flex: 1 1 0;
	}

	.titwl-listhead__actions {
		width: 100%;
	}

	.titwl-sort {
		flex: 1 1 auto;
	}

	.titwl-sort .titwl-select {
		width: 100%;
	}

	.titwl-toolbar {
		padding: 10px 12px;
	}

	.titwl-toolbar__bulk {
		margin-left: 0;
		width: 100%;
	}

	/* On a phone the bulk buttons appear once something is ticked. */
	.titwl-toolbar:not(.has-selection) .titwl-toolbar__bulk {
		display: none;
	}

	.titwl-toolbar__bulk .titwl-btn {
		flex: 1 1 auto;
	}

	.titwl-item {
		align-items: start;
		column-gap: 12px;
		grid-template-areas:
			"check media info"
			"check media price"
			"actions actions actions";
		grid-template-columns: 20px 84px minmax(0, 1fr);
		padding: 12px;
		row-gap: 6px;
	}

	.titwl--shared .titwl-item {
		grid-template-areas:
			"media info"
			"media price"
			"actions actions";
		grid-template-columns: 84px minmax(0, 1fr);
	}

	.titwl-item__check {
		align-self: start;
		padding-top: 32px;
	}

	.titwl-item__price .price {
		font-size: 17px;
	}

	.titwl-item__actions {
		align-items: center;
		border-top: 1px solid var(--titwl-line);
		display: flex;
		flex-wrap: wrap;
		gap: 8px 12px;
		margin-top: 6px;
		padding-top: 10px;
	}

	.titwl-item__actions > .titwl-buy,
	.titwl-item__actions > .titwl-btn {
		flex: 1 1 180px;
	}

	.titwl-item__actions > .titwl-item__links {
		flex-wrap: nowrap;
		margin-left: auto;
	}

	.titwl-item__actions > .titwl-item__notify {
		flex: 1 1 100%;
		justify-content: flex-start;
		order: 3;
	}

	.titwl-move__panel {
		left: auto;
		right: 0;
	}

	.titwl-summary {
		bottom: max(8px, env(safe-area-inset-bottom));
		box-shadow: 0 6px 28px rgba(16, 24, 16, .16);
		flex-wrap: nowrap;
		gap: 12px;
		justify-content: space-between;
		padding: 10px 10px 10px 14px;
		position: sticky;
		z-index: 10;
	}

	.titwl-summary__total {
		display: grid;
		gap: 0;
		line-height: 1.2;
	}

	.titwl-summary__total > span {
		font-size: 12px;
	}

	.titwl-summary__total strong {
		font-size: 19px;
	}

	.titwl-summary .titwl-btn--lg {
		font-size: 14px;
		min-height: 46px;
		padding: 8px 14px;
	}

	.titwl-toast {
		bottom: max(12px, env(safe-area-inset-bottom));
		max-width: calc(100vw - 20px);
		width: calc(100vw - 20px);
	}

	.titwl-heart {
		height: 34px;
		width: 34px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.titwl-heart,
	.titwl-item,
	.titwl-toast,
	.titwl-switch__ui::after {
		transition: none;
	}

	.titwl-heart.is-pop .titwl-icon,
	.titwl-add.is-pop .titwl-icon,
	.titwl-bump {
		animation: none;
	}
}

/* Sellers' product list (TIT Multivendor dashboard): "♥ 12 saved". */
.titmv-tag.titwl-saves {
	border-color: color-mix(in srgb, var(--titwl-heart) 35%, transparent);
	color: var(--titwl-heart);
	font-weight: 700;
}
