/* TI Wishlist remains responsible for storage and AJAX. This layer only makes
 * the saved-fragrance experience compact, readable, and touch friendly.
 */
body.mihn-wishlist-native-date .tinv-wishlist {
	--mihn-wishlist-border: #d9dcd9;
	--mihn-wishlist-muted: #606763;
	--mihn-wishlist-ink: #171918;
	color: var(--mihn-wishlist-ink);
}

body.mihn-wishlist-native-date .tinv-wishlist table {
	border: 1px solid var(--mihn-wishlist-border);
	border-collapse: separate;
	border-radius: 16px;
	border-spacing: 0;
	overflow: hidden;
}

body.mihn-wishlist-native-date .tinv-wishlist th,
body.mihn-wishlist-native-date .tinv-wishlist td {
	border-color: var(--mihn-wishlist-border);
}

body.mihn-wishlist-native-date .tinv-wishlist td.product-date {
	visibility: visible;
}

body.mihn-wishlist-native-date .tinv-wishlist .product-thumbnail img {
	aspect-ratio: 1 / 1 !important;
	border-radius: 10px;
	background: #f7f7f5;
	display: block;
	object-fit: contain !important;
}

body.mihn-wishlist-native-date .tinv-wishlist tfoot .tinvwl-to-left {
	display: none !important;
}

body.mihn-wishlist-native-date .mihn-wishlist-size-picker[hidden] { display: none !important; }
body.mihn-wishlist-native-date .mihn-wishlist-size-picker { width: 100%; }
body.mihn-wishlist-native-date .mihn-wishlist-size-picker summary {
	align-items: center;
	background: #151716;
	color: #fff;
	cursor: pointer;
	display: flex;
	font-size: 12px;
	font-weight: 850;
	justify-content: center;
	letter-spacing: .06em;
	list-style: none;
	min-height: 44px;
	padding: 10px 14px;
	text-align: center;
}
body.mihn-wishlist-native-date .mihn-wishlist-size-picker summary::-webkit-details-marker { display: none; }
body.mihn-wishlist-native-date .mihn-wishlist-size-panel { border: 1px solid #d9dcd9; border-top: 0; padding: 12px; }
body.mihn-wishlist-native-date .mihn-wishlist-size-panel fieldset { border: 0; margin: 0 0 10px; padding: 0; }
body.mihn-wishlist-native-date .mihn-wishlist-size-panel legend { font-size: 13px; font-weight: 800; margin-bottom: 8px; }
body.mihn-wishlist-native-date .mihn-wishlist-size-options { display: grid; gap: 7px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.mihn-wishlist-native-date .mihn-wishlist-size-options label { margin: 0; min-width: 0; }
body.mihn-wishlist-native-date .mihn-wishlist-size-options label > span {
	align-items: center;
	border: 1px solid #cfd3d1;
	border-radius: 6px;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 52px;
	padding: 6px;
}
body.mihn-wishlist-native-date .mihn-wishlist-size-options input { height: 1px; opacity: 0; position: absolute; width: 1px; }
body.mihn-wishlist-native-date .mihn-wishlist-size-options input:checked + span { background: #edf1ef; border: 2px solid #596560; }
body.mihn-wishlist-native-date .mihn-wishlist-size-options input:focus-visible + span { outline: 2px solid #171918; outline-offset: 2px; }
body.mihn-wishlist-native-date .mihn-wishlist-size-options small { color: #5e6662; display: block; font-size: 11px; margin-top: 2px; }
body.mihn-wishlist-native-date .mihn-wishlist-add-size { width: 100% !important; }
body.mihn-wishlist-native-date .mihn-wishlist-size-status { color: #2b6f43; display: block; font-size: 12px; margin-top: 8px; }
body.mihn-wishlist-native-date tr.mihn-wishlist-needs-size td.product-cb input { cursor: not-allowed; opacity: .45; }
body.mihn-wishlist-native-date .mihn-wishlist-bulk-note { color: #606763; font-size: 12px; margin: 0 0 10px; text-align: right; }

body.mihn-wishlist-native-date .tinv-wishlist .product-name a {
	color: var(--mihn-wishlist-ink);
	font-weight: 700;
	line-height: 1.25;
}

body.mihn-wishlist-native-date .tinv-wishlist .mihn-wishlist-selections {
	background: #f5f6f5;
	border: 1px solid #e0e2e0;
	border-radius: 10px;
	box-sizing: border-box;
	font-size: 13px;
	line-height: 1.45;
	margin-top: 10px;
	overflow: hidden;
}

body.mihn-wishlist-native-date .tinv-wishlist .mihn-wishlist-selections summary {
	align-items: center;
	cursor: pointer;
	display: flex;
	font-size: 13px;
	font-weight: 800;
	justify-content: space-between;
	list-style: none;
	min-height: 44px;
	padding: 8px 12px;
}

body.mihn-wishlist-native-date .tinv-wishlist .mihn-wishlist-selections summary::-webkit-details-marker {
	display: none;
}

body.mihn-wishlist-native-date .tinv-wishlist .mihn-wishlist-selections-state::after {
	content: "Show";
}

body.mihn-wishlist-native-date .tinv-wishlist .mihn-wishlist-selections[open] .mihn-wishlist-selections-state::after {
	content: "Hide";
}

body.mihn-wishlist-native-date .tinv-wishlist .mihn-wishlist-selections-content {
	border-top: 1px solid #e0e2e0;
	min-width: 0;
	padding: 10px 12px 12px;
}

body.mihn-wishlist-native-date .tinv-wishlist .mihn-wishlist-selections dl.variation {
	display: grid;
	gap: 3px 10px;
	/* A content-sized first column can consume the whole mobile card and leave
	 * the saved value column at 0px. Keep both labels and values readable. */
	grid-template-columns: minmax(92px, 38%) minmax(0, 1fr);
	margin: 0;
	width: 100%;
}

body.mihn-wishlist-native-date .tinv-wishlist .mihn-wishlist-selections dt,
body.mihn-wishlist-native-date .tinv-wishlist .mihn-wishlist-selections dd {
	float: none;
	margin: 0;
	min-width: 0;
	overflow-wrap: anywhere;
	padding: 0;
	width: auto;
}

body.mihn-wishlist-native-date .tinv-wishlist .mihn-wishlist-selections dd p {
	margin: 0;
	max-width: 100%;
	overflow-wrap: anywhere;
}

body.mihn-wishlist-native-date .tinv-wishlist .mihn-wishlist-selections img {
	height: auto !important;
	max-height: 72px;
	max-width: 72px;
	object-fit: contain;
}

body.mihn-wishlist-native-date .tinv-wishlist .product-action .button,
body.mihn-wishlist-native-date .tinv-wishlist button {
	min-height: 44px;
}

@media (max-width: 768px) {
	body.mihn-wishlist-native-date .tinv-wishlist table {
		border: 0;
		border-radius: 0;
		overflow: visible;
	}

	body.mihn-wishlist-native-date .tinv-wishlist table thead {
		display: none !important;
	}

	body.mihn-wishlist-native-date .tinv-wishlist table,
	body.mihn-wishlist-native-date .tinv-wishlist tbody,
	body.mihn-wishlist-native-date .tinv-wishlist tr,
	body.mihn-wishlist-native-date .tinv-wishlist td {
		box-sizing: border-box;
	}

	body.mihn-wishlist-native-date .tinv-wishlist tbody {
		display: grid;
		gap: 14px;
	}

	body.mihn-wishlist-native-date .tinv-wishlist tr.wishlist_item {
		align-items: start;
		background: #fff;
		border: 1px solid var(--mihn-wishlist-border);
		border-radius: 16px;
		display: grid;
		grid-template-areas:
			"thumb name remove"
			"thumb price remove"
			"thumb stock remove"
			"date date date"
			"action action action";
		grid-template-columns: 96px minmax(0, 1fr) 42px;
		min-height: 0;
		padding: 14px;
		position: relative;
		row-gap: 5px;
	}

	body.mihn-wishlist-native-date .tinv-wishlist tr.wishlist_item > td {
		background: transparent;
		border: 0 !important;
		display: block !important;
		float: none !important;
		margin: 0;
		min-height: 0;
		padding: 0 !important;
		text-align: left !important;
		width: auto !important;
	}

	body.mihn-wishlist-native-date .tinv-wishlist td.product-cb {
		inset: 17px 68px auto auto;
		position: absolute;
		z-index: 4;
	}

	body.mihn-wishlist-native-date .tinv-wishlist td.product-cb input[type="checkbox"] {
		appearance: none;
		background: #fff;
		border: 2px solid #6f7672;
		border-radius: 4px;
		height: 24px;
		margin: 0;
		width: 24px;
	}

	body.mihn-wishlist-native-date .tinv-wishlist td.product-cb input[type="checkbox"]:checked {
		background: #171918;
		box-shadow: inset 0 0 0 5px #fff;
	}

	body.mihn-wishlist-native-date .tinv-wishlist td.product-remove { grid-area: remove; }

	body.mihn-wishlist-native-date .tinv-wishlist td.product-remove button,
	body.mihn-wishlist-native-date .tinv-wishlist td.product-remove a {
		align-items: center;
		background: #f4f5f4;
		border: 1px solid #d7dad8;
		border-radius: 50%;
		color: #292c2a;
		display: flex;
		font-size: 24px;
		height: 42px;
		justify-content: center;
		line-height: 1;
		margin: 0;
		padding: 0;
		width: 42px;
	}

	body.mihn-wishlist-native-date .tinv-wishlist td.product-thumbnail { grid-area: thumb; }

	body.mihn-wishlist-native-date .tinv-wishlist td.product-thumbnail img {
		display: block;
		height: 96px !important;
		object-fit: contain !important;
		width: 96px !important;
	}

	body.mihn-wishlist-native-date .tinv-wishlist td.product-name {
		align-self: end;
		font-size: 18px;
		grid-area: name;
		padding-left: 14px !important;
		padding-right: 42px !important;
	}

	body.mihn-wishlist-native-date .tinv-wishlist td.product-name .mihn-wishlist-selections {
		margin-left: -110px;
		margin-top: 14px;
		width: calc(100% + 152px);
	}

	body.mihn-wishlist-native-date .tinv-wishlist td.product-name .mihn-wishlist-selections summary {
		padding-right: 12px;
	}

	body.mihn-wishlist-native-date .tinv-wishlist td.product-price {
		font-size: 16px;
		grid-area: price;
		padding-left: 14px !important;
	}

	body.mihn-wishlist-native-date .tinv-wishlist td.product-stock {
		color: #24703f;
		font-size: 14px;
		grid-area: stock;
		padding-left: 14px !important;
	}

	body.mihn-wishlist-native-date .tinv-wishlist td.product-date {
		color: var(--mihn-wishlist-muted);
		font-size: 13px;
		grid-area: date;
		padding-top: 12px !important;
	}

	body.mihn-wishlist-native-date .tinv-wishlist td.product-date::before {
		content: "Added ";
		display: inline;
		font-weight: 700;
	}

	body.mihn-wishlist-native-date .tinv-wishlist td.product-action {
		grid-area: action;
		padding-top: 10px !important;
	}

	body.mihn-wishlist-native-date .tinv-wishlist td.product-action .button {
		display: flex;
		justify-content: center;
		width: 100%;
	}

	body.mihn-wishlist-native-date .tinv-wishlist tr:not(.wishlist_item) > td {
		display: block !important;
		padding: 14px 0 !important;
	}

	body.mihn-wishlist-native-date .tinv-wishlist .tinvwl-input-group {
		display: grid;
		gap: 10px;
		grid-template-columns: 1fr 1fr;
	}

	body.mihn-wishlist-native-date .tinv-wishlist .tinvwl-input-group > * {
		margin: 0 !important;
		min-width: 0;
		width: 100% !important;
	}
}

@media (max-width: 390px) {
	body.mihn-wishlist-native-date .tinv-wishlist tr.wishlist_item {
		grid-template-columns: 84px minmax(0, 1fr) 40px;
		padding: 12px;
	}

	body.mihn-wishlist-native-date .tinv-wishlist td.product-thumbnail img {
		height: 84px !important;
		width: 84px !important;
	}

	body.mihn-wishlist-native-date .tinv-wishlist td.product-name { font-size: 16px; }

	body.mihn-wishlist-native-date .tinv-wishlist td.product-name .mihn-wishlist-selections {
		margin-left: -98px;
		width: calc(100% + 138px);
	}

	body.mihn-wishlist-native-date .tinv-wishlist td.product-cb {
		right: 62px;
		top: 15px;
	}
}

/* 2.5.18: use a vertical saved-scent card on phones and tablets. The image,
 * name, price, availability, and action each get their own row; selection and
 * remove controls stay in opposite corners without covering product content. */
@media (max-width: 768px) {
	body.mihn-wishlist-native-date .tinv-wishlist tr.wishlist_item {
		display: grid;
		grid-template-areas:
			"thumb"
			"name"
			"price"
			"stock"
			"date"
			"action";
		grid-template-columns: minmax(0, 1fr);
		justify-items: stretch;
		padding: 16px;
		row-gap: 9px;
	}

	body.mihn-wishlist-native-date .tinv-wishlist td.product-cb {
		inset: 16px auto auto 16px;
	}

	body.mihn-wishlist-native-date .tinv-wishlist td.product-remove {
		grid-area: unset;
		position: absolute;
		right: 16px;
		top: 16px;
		z-index: 4;
	}

	body.mihn-wishlist-native-date .tinv-wishlist td.product-thumbnail {
		justify-self: center;
		padding-top: 2px !important;
	}

	body.mihn-wishlist-native-date .tinv-wishlist td.product-thumbnail > a {
		align-items: center;
		background: #f7f7f5;
		border-radius: 10px;
		display: flex;
		height: 144px;
		justify-content: center;
		overflow: hidden;
		width: 144px;
	}

	body.mihn-wishlist-native-date .tinv-wishlist td.product-thumbnail img {
		aspect-ratio: 1 / 1 !important;
		max-height: 144px !important;
		max-width: 144px !important;
		height: 144px !important;
		width: 144px !important;
	}

	body.mihn-wishlist-native-date .tinv-wishlist td.product-name {
		align-self: auto;
		font-size: 20px;
		padding: 0 !important;
		text-align: center !important;
	}

	body.mihn-wishlist-native-date .tinv-wishlist td.product-name > a {
		display: block;
		padding-inline: 34px;
	}

	body.mihn-wishlist-native-date .tinv-wishlist td.product-price,
	body.mihn-wishlist-native-date .tinv-wishlist td.product-stock,
	body.mihn-wishlist-native-date .tinv-wishlist td.product-date {
		padding: 0 !important;
		text-align: center !important;
	}

	body.mihn-wishlist-native-date .tinv-wishlist td.product-name .mihn-wishlist-selections {
		background: transparent;
		border: 0;
		border-bottom: 1px solid #e0e2e0;
		border-radius: 0;
		border-top: 1px solid #e0e2e0;
		margin: 14px 0 0;
		width: 100%;
	}

	body.mihn-wishlist-native-date .tinv-wishlist td.product-name .mihn-wishlist-selections summary {
		min-height: 48px;
		padding: 10px 2px;
		text-align: left;
	}

	body.mihn-wishlist-native-date .tinv-wishlist .mihn-wishlist-selections-content {
		border-top: 1px solid #e0e2e0;
		padding: 13px 2px 15px;
		text-align: left;
	}

	body.mihn-wishlist-native-date .tinv-wishlist .mihn-wishlist-customization-list {
		display: grid !important;
		gap: 7px 14px !important;
		grid-template-columns: minmax(112px, 42%) minmax(0, 1fr) !important;
		margin: 0 !important;
		padding: 0 !important;
		width: 100%;
	}

	body.mihn-wishlist-native-date .tinv-wishlist .mihn-wishlist-customization-list dt,
	body.mihn-wishlist-native-date .tinv-wishlist .mihn-wishlist-customization-list dd {
		font-size: 13px !important;
		line-height: 1.45 !important;
		min-width: 0;
		overflow-wrap: anywhere;
		text-align: left !important;
	}

	body.mihn-wishlist-native-date .tinv-wishlist td.product-action {
		padding-top: 4px !important;
	}

	body.mihn-wishlist-native-date .mihn-wishlist-bulk-note { text-align: left; }
}

@media (max-width: 390px) {
	body.mihn-wishlist-native-date .tinv-wishlist tr.wishlist_item {
		grid-template-columns: minmax(0, 1fr);
		padding: 14px;
	}

	body.mihn-wishlist-native-date .tinv-wishlist td.product-thumbnail > a {
		height: 132px;
		width: 132px;
	}

	body.mihn-wishlist-native-date .tinv-wishlist td.product-thumbnail img {
		height: 132px !important;
		max-height: 132px !important;
		max-width: 132px !important;
		width: 132px !important;
	}

	body.mihn-wishlist-native-date .tinv-wishlist td.product-cb {
		inset: 14px auto auto 14px;
	}

	body.mihn-wishlist-native-date .tinv-wishlist td.product-remove {
		right: 14px;
		top: 14px;
	}

	body.mihn-wishlist-native-date .tinv-wishlist td.product-thumbnail img {
		height: 132px !important;
		width: 132px !important;
	}

	body.mihn-wishlist-native-date .tinv-wishlist td.product-name { font-size: 18px; }
	body.mihn-wishlist-native-date .tinv-wishlist td.product-name .mihn-wishlist-selections { margin-left: 0; width: 100%; }
	body.mihn-wishlist-native-date .tinv-wishlist .mihn-wishlist-customization-list { grid-template-columns: minmax(104px, 42%) minmax(0, 1fr) !important; }
}
