/* =========================================
   WISHLIST HEART BUTTON (card / carousel)
========================================= */

.repm-wishlist-btn {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 3;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 4px 12px rgba(15, 23, 42, .18);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: #0f172a;
	padding: 0;
	transition: transform .15s ease, color .15s ease;
}

.repm-wishlist-btn:hover {
	transform: scale(1.08);
}

.repm-wishlist-btn svg {
	width: 18px;
	height: 18px;
	display: block;
}

.repm-wishlist-btn svg path {
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	transition: fill .15s ease;
}
button.repm-wishlist-btn {
    background-color: #ffffff00 !important;
    border: none;
    padding: 0;
}

.repm-wishlist-btn.is-active {
    color: #ff3b5c;
    border: none;
    padding: 0;
}


.repm-wishlist-btn.is-active svg path {
	fill: currentColor;
}

.repm-wishlist-btn.repm-wishlist-busy {
	opacity: .6;
	pointer-events: none;
}

/* Inline variant used on the single project page (not absolutely positioned) */
.repm-wishlist-btn.repm-wishlist-inline {
	position: static;
	box-shadow: none;
	background: #edf2ff;
	width: auto;
	height: auto;
	padding: 9px 16px;
	border-radius: 20px;
	gap: 6px;
	display: inline-flex;
	align-items: center;
	font-size: 13px;
	font-weight: 600;
	color: var(--rp, #052750);
}

.repm-wishlist-btn.repm-wishlist-inline::after {
	content: "Wishlist";
}

.repm-wishlist-btn.repm-wishlist-inline.is-active::after {
	content: "Wishlisted";
}

.repm-wishlist-btn.repm-wishlist-inline.is-active {
	color: #ff3b5c;
	background: #fff0f2;
}


/* =========================================
   HEADER WISHLIST ICON
========================================= */

.repm-wishlist-header-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 0;
	background: transparent;
	cursor: pointer;
	color: inherit;
	padding: 0;
}

.repm-wishlist-header-btn svg {
	width: 22px;
	height: 22px;
}

.repm-wishlist-header-btn svg path {
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
}

.repm-wishlist-count {
	position: absolute;
	top: -2px;
	right: -2px;
	min-width: 17px;
	height: 17px;
	padding: 0 4px;
	border-radius: 50%;
	background: #ff3b5c;
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}


/* =========================================
   WISHLIST DRAWER
========================================= */

.repm-wishlist-drawer {
	position: fixed;
	inset: 0;
	z-index: 99998;
	visibility: hidden;
	pointer-events: none;
}

.repm-wishlist-drawer.is-open {
	visibility: visible;
	pointer-events: auto;
}

.repm-wishlist-drawer-overlay {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, .45);
	opacity: 0;
	transition: opacity .25s ease;
}

.repm-wishlist-drawer.is-open .repm-wishlist-drawer-overlay {
	opacity: 1;
}

.repm-wishlist-drawer-panel {
	position: absolute;
	top: 0;
	right: 0;
	height: 100%;
	width: min(400px, 92vw);
	background: #fff;
	box-shadow: -10px 0 30px rgba(15, 23, 42, .15);
	display: flex;
	flex-direction: column;
	transform: translateX(100%);
	transition: transform .3s ease;
}

.repm-wishlist-drawer.is-open .repm-wishlist-drawer-panel {
	transform: translateX(0);
}

.repm-wishlist-drawer-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 20px;
	border-bottom: 1px solid #e5e7eb;
	flex-shrink: 0;
}

.repm-wishlist-drawer-head h3 {
	margin: 0;
	font-size: 18px;
	color: #172033;
}

.repm-wishlist-drawer-close {
	border: 0;
	background: transparent;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	color: #667085;
	padding: 4px;
}

.repm-wishlist-drawer-body {
	flex: 1;
	overflow-y: auto;
	padding: 14px 16px;
}

.repm-wishlist-loading,
.repm-wishlist-empty {
	text-align: center;
	color: #667085;
	padding: 60px 10px;
	font-size: 14px;
}

.repm-wishlist-item {
	display: flex;
	gap: 12px;
	align-items: center;
	padding: 10px;
	border: 1px solid #e3e8ef;
	border-radius: 10px;
	margin-bottom: 10px;
	position: relative;
}

.repm-wishlist-item.repm-wishlist-removing {
	opacity: .4;
}

.repm-wishlist-item-thumb {
	flex-shrink: 0;
	width: 72px;
	height: 72px;
	border-radius: 8px;
	overflow: hidden;
	display: block;
}

.repm-wishlist-item-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.repm-wishlist-item-body {
	flex: 1;
	min-width: 0;
}

.repm-wishlist-item-title {
	display: block;
	font-weight: 600;
	color: #172033;
	text-decoration: none;
	font-size: 14.5px;
	margin-bottom: 6px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.repm-wishlist-item-tag {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	background: #edf2ff;
	color: #052750;
	font-size: 11.5px;
	font-weight: 600;
	padding: 4px 9px;
	border-radius: 20px;
}

.repm-wishlist-remove {
	border: 0;
	background: #f6f7f9;
	color: #667085;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	cursor: pointer;
	flex-shrink: 0;
	font-size: 16px;
	line-height: 1;
}

.repm-wishlist-remove:hover {
	background: #ffe3e7;
	color: #ff3b5c;
}

body.repm-wishlist-drawer-locked {
	overflow: hidden;
}

@media (max-width: 480px) {
	.repm-wishlist-drawer-panel {
		width: 100vw;
	}
}
