/**
 * minimal step Wishlist — frontend styles.
 *
 * Self-contained; no font icon dependencies. Heart is an inline SVG so it
 * paints with the rest of the document and never blocks LCP.
 */

/* Heart button wrapper */
.ms-wishlist-btn-wrap {
	display: inline-flex;
}

.tinvwl-woocommerce_after_shop_loop_item.ms-wishlist-btn-wrap {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 5;
}

.tinvwl-woocommerce_single_product_summary.ms-wishlist-btn-wrap {
	margin: 0.75rem 0;
}

/* Button itself — circle (icon-only) in loop, pill (icon + text) on single product */
.ms-wishlist-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 36px;
	height: 36px;
	padding: 0;
	background: rgba(255, 255, 255, 0.85);
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 50%;
	cursor: pointer;
	transition: background 120ms ease, transform 120ms ease, border-color 120ms ease, color 150ms ease;
	color: #1f2937;
	font: inherit;
	-webkit-tap-highlight-color: transparent;
}

/* Single-product pill: icon + label, more breathing room, no border */
.ms-wishlist-btn-wrap--single .ms-wishlist-btn {
	width: auto;
	min-height: 44px;
	padding: 0 18px 0 0;
	background: transparent;
	border: 0;
	border-radius: 0;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.01em;
}

.ms-wishlist-btn-wrap--single .ms-wishlist-btn:hover {
	background: transparent;
	border: 0;
	color: #BF360C;
}

.ms-wishlist-btn__label {
	display: inline-flex;
	white-space: nowrap;
}

.ms-wishlist-btn__label-active { display: none; }

.ms-wishlist-btn--active .ms-wishlist-btn__label-add    { display: none; }
.ms-wishlist-btn--active .ms-wishlist-btn__label-active { display: inline-flex; }

.ms-wishlist-btn:hover {
	background: #fff;
	border-color: rgba(0, 0, 0, 0.15);
}

.ms-wishlist-btn:active {
	transform: scale(0.95);
}

/* Icon — outlined by default, filled when active */
.ms-wishlist-btn__icon {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: fill 150ms ease, stroke 150ms ease, transform 200ms ease;
}

.ms-wishlist-btn--active {
	color: #BF360C;
}

.ms-wishlist-btn--active .ms-wishlist-btn__icon {
	fill: #BF360C;
	stroke: #BF360C;
	animation: ms-wishlist-pulse 220ms ease;
}

@keyframes ms-wishlist-pulse {
	0%   { transform: scale(1); }
	50%  { transform: scale(1.25); }
	100% { transform: scale(1); }
}

/* Header counter */
.ms-wishlist-counter {
	position: relative;
	display: inline-flex;
	align-items: center;
	color: inherit;
	text-decoration: none;
}

.ms-wishlist-counter__count {
	font-size: 0.75rem;
	font-weight: 600;
	margin-left: 4px;
}

.ms-wishlist-counter:not(.has-products) .ms-wishlist-counter__count {
	opacity: 0.5;
}

/* /ulubione page — grid is defined by tailwind classes in the template */
.ms-wishlist-page__empty .ms-wishlist-page__cta {
	background-color: #BF360C;
}

.ms-wishlist-page__name {
	color: #1f2937;
	text-decoration: none;
	line-height: 1.3;
}

.ms-wishlist-page__remove {
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
}

/* Toast */
.ms-wishlist-toast {
	position: fixed;
	bottom: 24px;
	left: 50%;
	transform: translate(-50%, 16px);
	background: #1f2937;
	color: #fff;
	padding: 10px 16px;
	border-radius: 6px;
	font-size: 0.875rem;
	box-shadow: 0 8px 24px rgba(0,0,0,0.2);
	opacity: 0;
	transition: opacity 200ms ease, transform 200ms ease;
	z-index: 9999;
	pointer-events: none;
}

.ms-wishlist-toast.is-visible {
	opacity: 1;
	transform: translate(-50%, 0);
}

.ms-wishlist-toast--success { background: #16a34a; }
.ms-wishlist-toast--error   { background: #b91c1c; }
.ms-wishlist-toast--warning { background: #ca8a04; }

/* Empty-state spacing fallback — explicit margins in case host theme's prose
 * resets clobber the Tailwind utilities applied in the template. */
.ms-wishlist-page__empty .ms-wishlist-page__brand       { margin-bottom: 12px; }
.ms-wishlist-page__empty .ms-wishlist-page__empty-title { margin-bottom: 20px; line-height: 1.25; }
.ms-wishlist-page__empty .ms-wishlist-page__empty-text  { margin-bottom: 40px; line-height: 1.55; }
.ms-wishlist-page__empty .ms-wishlist-page__cta         { margin-top: 8px; }

/* ── Post-add confirmation modal ───────────────────────────────────────── */
.ms-wishlist-modal {
	position: fixed;
	inset: 0;
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 10000;
	background: rgba(15, 23, 42, 0.45);
	opacity: 0;
	transition: opacity 200ms ease;
	padding: 16px;
}

.ms-wishlist-modal.is-open {
	display: flex;
	opacity: 1;
}

.ms-wishlist-modal__card {
	background: #fff;
	max-width: 380px;
	width: 100%;
	padding: 28px 24px 24px;
	border-radius: 6px;
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18);
	text-align: center;
	transform: translateY(8px);
	transition: transform 200ms ease;
}

.ms-wishlist-modal.is-open .ms-wishlist-modal__card {
	transform: translateY(0);
}

.ms-wishlist-modal__icon {
	width: 56px;
	height: 56px;
	margin: 0 auto 16px;
	color: #1f2937;
}

.ms-wishlist-modal__icon svg {
	width: 100%;
	height: 100%;
	display: block;
}

.ms-wishlist-modal__text {
	font-size: 15px;
	line-height: 1.45;
	color: #1f2937;
	margin: 0 0 20px;
}

.ms-wishlist-modal__text strong {
	font-weight: 600;
}

.ms-wishlist-modal__actions {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.ms-wishlist-modal__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 16px;
	background: #fff;
	border: 1px solid #d1d5db;
	color: #1f2937;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	transition: background 120ms ease, border-color 120ms ease;
}

.ms-wishlist-modal__btn:hover {
	background: #f9fafb;
	border-color: #9ca3af;
}

.ms-wishlist-modal__btn svg {
	width: 16px;
	height: 16px;
}
