/*!
 * Sentio for Elementor - wc-wishlist widget styles
 * Extracted from frontend.css during WC Batch 1 sub-batch 3 mechanical extraction (2026-04-20).
 * Tier 3 mechanical extraction — verbatim from monolith.
 */

/* ── WC-12  Wishlist ──────────────────────────────────────────────── */

/* Page: Toolbar */
.sentio-wl__toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 20px;
	flex-wrap: wrap;
}

.sentio-wl__count {
	font-size: 14px;
	color: #666;
}

.sentio-wl__count-num {
	font-weight: 700;
	color: #333;
}

/* Layout toggle */
.sentio-wl__toggle {
	display: inline-flex;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	overflow: hidden;
}

.sentio-wl__toggle-btn {
	padding: 8px 10px;
	background: #fff;
	border: none;
	cursor: pointer;
	color: #999;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s ease, color 0.15s ease;
}

.sentio-wl__toggle-btn + .sentio-wl__toggle-btn {
	border-left: 1px solid #e0e0e0;
}

.sentio-wl__toggle-btn--active {
	background: #333;
	color: #fff;
}

/* Actions */
.sentio-wl__actions {
	display: flex;
	gap: 8px;
}

.sentio-wl__share-btn,
.sentio-wl__add-all-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	background: #fff;
	font-size: 13px;
	font-weight: 500;
	color: #333;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.sentio-wl__share-btn:hover,
.sentio-wl__add-all-btn:hover {
	background: #f5f5f5;
	border-color: #ccc;
}

/* Grid */
.sentio-wl__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

/* List */
.sentio-wl__list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.sentio-wl__list .sentio-wl__item {
	display: flex;
	align-items: center;
	gap: 16px;
}

.sentio-wl__list .sentio-wl__item-img {
	width: 80px;
	height: 80px;
	flex-shrink: 0;
}

/* Table */
.sentio-wl__table {
	width: 100%;
	border-collapse: collapse;
}

/* Item card */
.sentio-wl__item {
	background: #fff;
	border: 1px solid #eee;
	border-radius: 10px;
	padding: 16px;
	position: relative;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.sentio-wl__item:hover {
	box-shadow: 0 4px 16px rgba(0,0,0,0.08);
	transform: translateY(-2px);
}

.sentio-wl__item-img {
	width: 100%;
	aspect-ratio: 1;
	border-radius: 6px;
	background: #f0f0f0;
	display: block;
	margin-bottom: 12px;
	overflow: hidden;
}

.sentio-wl__item-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.sentio-wl__item-info {
	flex: 1;
	min-width: 0;
}

.sentio-wl__item-title {
	font-size: 14px;
	font-weight: 600;
	color: #333;
	text-decoration: none;
	display: block;
	margin-bottom: 4px;
	line-height: 1.3;
}

.sentio-wl__item-title:hover {
	color: #000;
}

.sentio-wl__item-price {
	font-size: 15px;
	font-weight: 600;
	color: #333;
	margin-bottom: 8px;
}

.sentio-wl__item-price del { color: #bbb; }
.sentio-wl__item-price ins { text-decoration: none; color: #e53935; }

.sentio-wl__item-actions {
	display: flex;
	gap: 6px;
	margin-top: 8px;
}

.sentio-wl__item-atc {
	flex: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 8px 12px;
	background: #333;
	color: #fff;
	border: none;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.2s ease;
}

.sentio-wl__item-atc:hover {
	background: #111;
}

.sentio-wl__item-atc--disabled {
	background: #ccc;
	cursor: not-allowed;
	pointer-events: none;
}

/* Remove-from-wishlist button on each item card.
 *
 * 2026-04-22 v4: user reported 0-width render after v3. Root cause was that
 * the button sits inside `.sentio-wl__item-actions` which is `display: flex`;
 * despite being `position: absolute` (which removes it from flex flow), an
 * external Elementor/theme rule was winning the cascade on `width` and
 * collapsing the button. Defensively force `width`/`height`/`min-width` with
 * `!important` AND `flex: 0 0 auto` so the button renders its 34×34 box
 * regardless of ancestor flex context or external width resets. Higher-
 * specificity parent selector `.sentio-wl .sentio-wl__item-remove` also
 * bumps our rule above any generic `button { width: ... }` theme resets.
 *
 * Visual: 34×34 white circle with 1px subtle border + soft shadow at rest;
 * red icon at rest signals "remove" semantic; hover flips to red bg + white
 * icon + slight scale-up. `:focus-visible` ring for keyboard a11y.
 */
.sentio-wl .sentio-wl__item-remove {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 34px !important;
	height: 34px !important;
	min-width: 34px;
	min-height: 34px;
	padding: 0;
	margin: 0;
	flex: 0 0 auto;
	box-sizing: border-box;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 50%;
	background: #ffffff;
	color: #e53935;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
	transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
	/* Stack above item-img (which has overflow:hidden inside) */
	z-index: 2;
}

.sentio-wl .sentio-wl__item-remove svg {
	width: 16px !important;
	height: 16px !important;
	flex-shrink: 0;
	stroke-width: 2.5;
	pointer-events: none;
}

.sentio-wl .sentio-wl__item-remove:hover {
	background: #e53935;
	color: #ffffff;
	transform: scale(1.08);
	box-shadow: 0 3px 8px rgba(229, 57, 53, 0.35);
}

.sentio-wl .sentio-wl__item-remove:focus-visible {
	outline: 2px solid #e53935;
	outline-offset: 2px;
}

/* Heart button (Add to Wishlist) */
.sentio-wl__heart {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	background: #fff;
	font-size: 14px;
	color: #555;
	cursor: pointer;
	transition: all 0.2s ease;
}

.sentio-wl__heart svg {
	fill: none;
	stroke: currentColor;
	transition: fill 0.2s ease, stroke 0.2s ease, transform 0.2s ease;
}

.sentio-wl__heart--active {
	border-color: #e53935;
	color: #e53935;
}

.sentio-wl__heart--active svg {
	fill: #e53935;
	stroke: #e53935;
}

@keyframes sentio-wl-pulse {
	0% { transform: scale(1); }
	25% { transform: scale(1.3); }
	50% { transform: scale(0.95); }
	100% { transform: scale(1); }
}

.sentio-wl__heart--pulse svg {
	animation: sentio-wl-pulse 0.4s ease;
}

/* Counter */
.sentio-wl__counter {
	display: inline-flex;
	align-items: center;
	position: relative;
	text-decoration: none;
	color: inherit;
}

.sentio-wl__badge {
	position: absolute;
	top: -6px;
	right: -8px;
	min-width: 18px;
	height: 18px;
	border-radius: 9px;
	background: #e53935;
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 4px;
	line-height: 1;
}

.sentio-wl__inline-count {
	margin-left: 4px;
	font-size: 14px;
	font-weight: 600;
}

/* Empty state */
.sentio-wl__empty {
	text-align: center;
	padding: 60px 20px;
}

.sentio-wl__empty-icon {
	color: #ddd;
	margin-bottom: 16px;
}

.sentio-wl__empty-title {
	font-size: 20px;
	font-weight: 600;
	color: #333;
	margin: 0 0 8px;
}

.sentio-wl__empty-text {
	font-size: 14px;
	color: #888;
	margin: 0 0 20px;
}

.sentio-wl__empty-cta {
	display: inline-block;
	padding: 12px 28px;
	background: #333;
	color: #fff;
	border-radius: 8px;
	text-decoration: none;
	font-weight: 600;
	font-size: 14px;
	transition: background 0.2s ease;
}

.sentio-wl__empty-cta:hover {
	background: #111;
}

/* Undo toast */
.sentio-wl__toast {
	position: fixed;
	bottom: 24px;
	left: 50%;
	transform: translateX(-50%);
	background: #333;
	color: #fff;
	padding: 12px 20px;
	border-radius: 10px;
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 14px;
	z-index: 99999;
	box-shadow: 0 8px 30px rgba(0,0,0,0.2);
	animation: sentio-wl-toastIn 0.3s ease;
}

@keyframes sentio-wl-toastIn {
	from { opacity: 0; transform: translateX(-50%) translateY(10px); }
	to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.sentio-wl__toast-undo {
	background: none;
	border: none;
	color: #ffd54f;
	font-weight: 700;
	font-size: 14px;
	cursor: pointer;
	text-decoration: underline;
}

/* ── Responsive ── */
/* Mobile 2-col grid + stacked toolbar. Moved from wc-product-compare.css
 * @media block (where it was accidentally co-located) during the CSS
 * cross-contamination rescue (2026-04-20). */
@media (max-width: 767px) {
	.sentio-wl__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}

	.sentio-wl__toolbar {
		flex-direction: column;
		align-items: flex-start;
	}
}
