/*
 * Wishlist (2026-12-01): the "added to wishlist" popup on every lean page, and the wishlist page (#fa-wl).
 * TI Wishlist's own CSS and icon font are not loaded on lean pages: everything it needs is here. Manrope only.
 */

/* ---------- Popup ---------- */
body.fa-lean .tinv-modal { display: none; }
body.fa-lean .tinv-modal.tinv-modal-open { display: block; position: fixed; inset: 0; z-index: 100000; }
body.fa-lean .tinv-modal .tinv-overlay { position: absolute; inset: 0; background: rgba(12,12,12,.5); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: fa-wl-fade .25s ease both; cursor: pointer; }
body.fa-lean .tinv-modal .tinv-table { position: relative; display: flex; align-items: center; justify-content: center; min-height: 100%; padding: 20px; pointer-events: none; }
body.fa-lean .tinv-modal .tinv-cell { width: min(380px, 100%); pointer-events: auto; }
body.fa-lean .tinv-modal .tinv-modal-inner { position: relative; padding: 34px 26px 24px; border-radius: 20px; background: #fff; box-shadow: 0 30px 80px rgba(0,0,0,.28); color: #151515; font: 400 16px/1.5 Manrope, system-ui, -apple-system, sans-serif; letter-spacing: 0; text-align: center; animation: fa-wl-pop .35s cubic-bezier(.16,1,.3,1) both; }
body.fa-lean .tinv-modal .tinv-modal-inner > i { position: relative; display: block; width: 54px; height: 54px; margin: 0 auto 18px; border-radius: 50%; background: linear-gradient(-45deg, #d53668 40%, #daae52 100%); }
body.fa-lean .tinv-modal .tinv-modal-inner > i::before { content: ""; position: absolute; left: 15px; top: 16px; width: 24px; height: 24px; background: #fff; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 20.3s-7.4-4.5-9.2-9C1.5 7.9 3.7 4.6 7 4.6c2 0 3.6 1.1 5 3 1.4-1.9 3-3 5-3 3.3 0 5.5 3.3 4.2 6.7-1.8 4.5-9.2 9-9.2 9z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 20.3s-7.4-4.5-9.2-9C1.5 7.9 3.7 4.6 7 4.6c2 0 3.6 1.1 5 3 1.4-1.9 3-3 5-3 3.3 0 5.5 3.3 4.2 6.7-1.8 4.5-9.2 9-9.2 9z'/%3E%3C/svg%3E") center / contain no-repeat; }
body.fa-lean .tinv-modal .tinv-txt { margin: 0 0 22px; font-size: 17px; font-weight: 500; line-height: 1.4; }
body.fa-lean .tinv-modal .tinvwl-buttons-group { display: flex; gap: 8px; margin: 0; }
body.fa-lean .tinv-modal .tinvwl-buttons-group::before, body.fa-lean .tinv-modal .tinvwl-buttons-group::after,
body.fa-lean .tinv-modal .tinv-modal-inner > .tinv-wishlist-clear:not(.tinvwl-buttons-group) { display: none; }
body.fa-lean .tinv-modal button.button { flex: 1 1 0; height: 46px; margin: 0; padding: 0 16px; border: 0; border-radius: 999px; box-shadow: none; font: 600 14px/1 Manrope, system-ui, -apple-system, sans-serif; letter-spacing: 0; text-transform: none; cursor: pointer; transition: background-color .2s ease, transform .2s ease; }
body.fa-lean .tinv-modal button.button i { display: none; }
body.fa-lean .tinv-modal .tinvwl_button_view { background: #151515; color: #fff; }
body.fa-lean .tinv-modal .tinvwl_button_view:hover { background: #000; }
body.fa-lean .tinv-modal .tinvwl_button_close { background: #f1eee9; color: #151515; }
body.fa-lean .tinv-modal .tinvwl_button_close:hover { background: #e7e2da; }
body.fa-lean .tinv-modal button.button:focus-visible { outline: 2px solid #d53668; outline-offset: 2px; }
@keyframes fa-wl-fade { from { opacity: 0; } }
@keyframes fa-wl-pop { from { opacity: 0; transform: translateY(14px) scale(.97); } }
@media (prefers-reduced-motion: reduce) {
	body.fa-lean .tinv-modal .tinv-overlay, body.fa-lean .tinv-modal .tinv-modal-inner { animation: none; }
}

/* ---------- Wishlist page ---------- */
#fa-wl {
	--ink: #151515;
	--muted: #5e5952;
	--line: #e0dcd5;
	width: 100%;
	padding: 72px 0 96px;
	background: #f3f1ee;
	color: var(--ink);
	font: 400 16px/1.6 Manrope, system-ui, -apple-system, sans-serif;
	letter-spacing: 0;
	-webkit-font-smoothing: antialiased;
}
#fa-wl *, #fa-wl *::before, #fa-wl *::after { box-sizing: border-box; }
#fa-wl [hidden] { display: none !important; }
#fa-wl a { color: inherit; text-decoration: none; }
#fa-wl .fw-wrap { width: min(1120px, 100% - 48px); margin: 0 auto; }

#fa-wl .fw-head { margin-bottom: 40px; }
#fa-wl .fw-eb { margin: 0; color: #7a746c; font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; }
#fa-wl .fw-title { margin: 16px 0 0; color: var(--ink); font-size: clamp(36px, 5vw, 56px); font-weight: 300; letter-spacing: -.04em; line-height: 1.04; text-transform: none; }
#fa-wl .fw-lead { margin: 14px 0 0; color: var(--muted); font-size: 17px; }

/* TI Wishlist markup: its own title, the bulk actions and the table head are not used.
   A site-wide style block (in the page head) gives the old 3-column layout with !important paddings: overridden here. */
#fa-wl .tinv-wishlist { display: flex; flex-direction: column; margin: 0; color: var(--ink); font-size: 15px; }
#fa-wl .tinv-header, #fa-wl .tinv-wishlist thead, #fa-wl .tinv-wishlist tfoot,
#fa-wl .tinv-wishlist .product-cb, #fa-wl .tinv-wishlist .tinv-wishlist-clear,
#fa-wl .tinv-wishlist td:not(.product-remove):not(.product-thumbnail):not(.product-name) { display: none !important; }
#fa-wl .tinv-wishlist form { margin: 0; }
#fa-wl .tinv-wishlist table { display: block; width: 100%; margin: 0; border: 0; border-collapse: collapse; background: none; }
#fa-wl .tinv-wishlist table.tinvwl-table-manage-list tbody { display: grid; width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
#fa-wl .tinv-wishlist table.tinvwl-table-manage-list tr.wishlist_item { position: relative; display: flex; flex-direction: column; align-items: stretch; width: auto; padding: 0 0 22px !important; border: 0 !important; border-radius: 14px; background: #fff !important; box-shadow: 0 0 0 1px rgba(0,0,0,.04); overflow: hidden; transition: box-shadow .25s ease, transform .25s ease; }
#fa-wl .tinv-wishlist tr.wishlist_item:hover { box-shadow: 0 18px 40px rgba(0,0,0,.08), 0 0 0 1px rgba(0,0,0,.04); transform: translateY(-2px); }
#fa-wl .tinv-wishlist td { display: block; padding: 0 !important; border: 0; background: none; text-align: center; }

#fa-wl .tinv-wishlist td.product-thumbnail { order: 1; width: auto !important; }
#fa-wl .tinv-wishlist td.product-thumbnail a { display: block; }
#fa-wl .fw-art { display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; padding: 12%; background: #ebe8e3; }
#fa-wl .fw-art img { display: block; width: auto; max-width: 100%; height: auto; max-height: 100%; margin: 0; border: 0; box-shadow: 0 0 0 6px #fff, 3px 8px 18px 6px rgba(40,30,20,.22); transition: transform .6s cubic-bezier(.16,1,.3,1); }
#fa-wl tr.wishlist_item:hover .fw-art img { transform: scale(1.02); }

#fa-wl .tinv-wishlist td.product-name { order: 2; padding: 18px 18px 0 !important; }
#fa-wl .fw-name, #fa-wl .fw-name a { display: block; color: var(--ink); font-size: 14px; font-weight: 700; letter-spacing: .02em; line-height: 1.35; text-transform: uppercase; }
#fa-wl .fw-artist { display: block; margin-top: 4px; color: #6b665f; font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
#fa-wl .fw-artist:hover, #fa-wl .fw-name a:hover { color: #000; }
#fa-wl .fw-from { display: block; margin-top: 10px; color: var(--muted); font-size: 13px; }
#fa-wl .tinv-wishlist td.product-name > dl, #fa-wl .tinv-wishlist td.product-name .variation { display: none; }

#fa-wl .tinv-wishlist td.product-remove { position: absolute; top: 10px; right: 10px; z-index: 2; }
#fa-wl .tinv-wishlist td.product-remove button { position: relative; display: block; width: 34px; height: 34px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); box-shadow: 0 2px 8px rgba(0,0,0,.08); color: var(--ink); font-size: 0; cursor: pointer; transition: background-color .2s ease; }
#fa-wl .tinv-wishlist td.product-remove button i { display: none; }
#fa-wl .tinv-wishlist td.product-remove button::before, #fa-wl .tinv-wishlist td.product-remove button::after { content: ""; position: absolute; left: 11px; right: 11px; top: 16.25px; height: 1.5px; border-radius: 1px; background: currentColor; transform: rotate(45deg); }
#fa-wl .tinv-wishlist td.product-remove button::after { transform: rotate(-45deg); }
#fa-wl .tinv-wishlist td.product-remove button:hover { background: #fff; }
#fa-wl .tinv-wishlist td.product-remove button:focus-visible { outline: 2px solid #d53668; outline-offset: 2px; }

/* Share */
#fa-wl .tinv-wishlist .social-buttons { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 40px 0 0; padding: 0; float: none; color: var(--muted); font-size: 14px; }
#fa-wl .tinv-wishlist .social-buttons > span { margin: 0 4px 0 0; color: var(--muted); font-size: 14px; letter-spacing: 0; text-transform: none; }
#fa-wl .tinv-wishlist .social-buttons ul { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; }
#fa-wl .tinv-wishlist .social-buttons li { margin: 0; padding: 0; list-style: none; }
#fa-wl .tinv-wishlist a.social { position: relative; display: block; width: 40px; height: 40px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px var(--line); color: var(--ink); font-size: 0; transition: box-shadow .2s ease; }
#fa-wl .tinv-wishlist a.social:hover { box-shadow: 0 0 0 1.5px var(--ink); }
#fa-wl .tinv-wishlist a.social i { display: none; }
#fa-wl .tinv-wishlist a.social::before { content: ""; position: absolute; left: 11px; top: 11px; width: 18px; height: 18px; background: currentColor; -webkit-mask: var(--fw-icon) center / contain no-repeat; mask: var(--fw-icon) center / contain no-repeat; }
#fa-wl .tinv-wishlist a.social-clipboard { --fw-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 14a4 4 0 0 0 5.7 0l3-3a4 4 0 0 0-5.7-5.7l-1 1'/%3E%3Cpath d='M14 10a4 4 0 0 0-5.7 0l-3 3a4 4 0 0 0 5.7 5.7l1-1'/%3E%3C/svg%3E"); }
#fa-wl .tinv-wishlist a.social-email { --fw-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3.5 6.5 12 13l8.5-6.5'/%3E%3C/svg%3E"); }
#fa-wl .tinv-wishlist .social-buttons a:not(.social-clipboard):not(.social-email) { --fw-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='6' cy='12' r='2.5'/%3E%3Ccircle cx='18' cy='6' r='2.5'/%3E%3Ccircle cx='18' cy='18' r='2.5'/%3E%3Cpath d='m8.2 10.8 7.6-3.6M8.2 13.2l7.6 3.6'/%3E%3C/svg%3E"); }
#fa-wl .tinv-wishlist .tinvwl-tooltip { display: none; }

/* Empty wishlist */
#fa-wl .tinv-wishlist .cart-empty, #fa-wl .tinv-wishlist .woocommerce-info { margin: 0; padding: 48px 24px 0; border: 0; border-top: 1px solid var(--line); background: none; color: var(--muted); font-size: 18px; text-align: center; }
#fa-wl .tinv-wishlist .cart-empty::before, #fa-wl .tinv-wishlist .woocommerce-info::before { display: none; }
#fa-wl .tinv-wishlist .return-to-shop { margin: 22px 0 0; text-align: center; }
#fa-wl .tinv-wishlist .return-to-shop a.button { display: inline-flex; align-items: center; height: 50px; padding: 0 26px; border: 0; border-radius: 999px; background: #151515; color: #fff; font-size: 15px; font-weight: 600; letter-spacing: 0; text-transform: none; }
#fa-wl.is-empty .fw-more { display: none; }

#fa-wl .fw-more { margin: 48px 0 0; text-align: center; }
#fa-wl .fw-more a { display: inline-flex; align-items: center; height: 48px; padding: 0 24px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; font-weight: 500; transition: background-color .2s ease; }
#fa-wl .fw-more a:hover { background: #fff; }

@media (max-width: 900px) {
	#fa-wl .tinv-wishlist table.tinvwl-table-manage-list tbody { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}
@media (max-width: 690px) {
	#fa-wl { padding: 44px 0 64px; }
	#fa-wl .fw-wrap { width: calc(100% - 32px); }
	#fa-wl .fw-head { margin-bottom: 28px; }
	#fa-wl .fw-lead { font-size: 15px; }
	#fa-wl .tinv-wishlist table.tinvwl-table-manage-list tr.wishlist_item { padding-bottom: 16px !important; border-radius: 12px; }
	#fa-wl .fw-art img { box-shadow: 0 0 0 4px #fff, 2px 5px 12px 4px rgba(40,30,20,.2); }
	#fa-wl .tinv-wishlist td.product-name { padding: 14px 10px 0 !important; }
	#fa-wl .fw-name, #fa-wl .fw-name a { font-size: 12px; }
	#fa-wl .fw-artist { font-size: 11px; }
	#fa-wl .fw-from { margin-top: 6px; font-size: 12px; }
	#fa-wl .tinv-wishlist td.product-remove { top: 6px; right: 6px; }
	#fa-wl .tinv-wishlist td.product-remove button { width: 30px; height: 30px; }
	#fa-wl .tinv-wishlist td.product-remove button::before, #fa-wl .tinv-wishlist td.product-remove button::after { left: 9px; right: 9px; top: 14.25px; }
}
