/* =====================================================
   My Membership — Saved Items styles
   Namespaced with .wlm- to avoid clashing with theme CSS.
===================================================== */

/* ---- "Save for Later" + "Copy" buttons, shown after single post/page content ---- */
.wlm-save-button-wrap {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin: 20px 0;
}
.wlm-save-btn {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	background: #f5f5f5;
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 9px 16px;
	font-size: 14px;
	font-weight: 600;
	color: #333;
	cursor: pointer;
}
.wlm-save-btn:hover { background: #eee; }
.wlm-save-btn:disabled { opacity: .6; cursor: default; }
.wlm-save-btn.is-saved {
	background: #006666;
	border-color: #006666;
	color: #fff;
}
.wlm-save-btn-icon { flex: 0 0 auto; }

/* "It worked" feedback on click — quick pop + settle. */
@keyframes wlm-save-btn-pulse {
	0%   { transform: scale( 1 ); }
	35%  { transform: scale( 1.12 ); }
	60%  { transform: scale( 0.97 ); }
	100% { transform: scale( 1 ); }
}
.wlm-save-btn-pulse {
	animation: wlm-save-btn-pulse .35s ease;
}

.wlm-copy-btn {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	background: #f5f5f5;
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 9px 16px;
	font-size: 14px;
	font-weight: 600;
	color: #333;
	cursor: pointer;
}
.wlm-copy-btn:hover { background: #eee; }
.wlm-copy-btn.is-copied {
	background: #006666;
	border-color: #006666;
	color: #fff;
}
.wlm-copy-btn-icon { flex: 0 0 auto; }

.wlm-saved-count {
	font-size: 11px;
	color: #999;
	margin-bottom: 8px;
}

.wlm-saved-empty {
	font-size: 13px;
	color: #777;
	margin: 8px 0;
}

.wlm-saved-list {
	list-style: none;
	margin: 0;
	padding: 0;
	max-height: 240px;
	overflow-y: auto;
}
.wlm-saved-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 8px 0;
	border-bottom: 1px solid #f0f0f0;
}
.wlm-saved-item:last-child { border-bottom: none; }
.wlm-saved-item-title {
	font-size: 13px;
	color: #222;
	text-decoration: none;
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.wlm-saved-item-title:hover { color: #006666; }
.wlm-saved-item-controls {
	display: flex;
	align-items: center;
	gap: 6px;
	flex: 0 0 auto;
}
.wlm-saved-remove-btn {
	background: none;
	border: none;
	cursor: pointer;
	color: #999;
	font-size: 12px;
	padding: 4px;
	line-height: 1;
}
.wlm-saved-remove-btn:hover { color: #b32d2e; }
