/**
 * Bizzwishlist - Frontend Styles
 *
 * Styles for all wishlist UI elements except the table.
 * Table styles are in table-design.css and table-templates/*.css.
 *
 * @package Bizzwishlist
 */

/* ==========================================================================
   Wishlist Button (Single Product & Loop)
   ========================================================================== */

.bizzwishlist-button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 18px;
	border: 1px solid #ddd;
	background: #fff;
	color: #333;
	cursor: pointer;
	font-size: 14px;
	line-height: 1.4;
	border-radius: 6px;
	transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
	margin-left: 10px;
	vertical-align: middle;
	white-space: nowrap;
}

.bizzwishlist-button:hover {
	border-color: #e2401c;
	color: #e2401c;
	box-shadow: 0 1px 4px rgba(226, 64, 28, 0.12);
}

.bizzwishlist-button.bizzwishlist-added {
	border-color: #e2401c;
	color: #e2401c;
}

.bizzwishlist-button .bizzwishlist-icon {
	font-size: 18px;
	line-height: 1;
}

.bizzwishlist-button.bizzwishlist-loading {
	opacity: 0.6;
	pointer-events: none;
}

.bizzwishlist-button.bizzwishlist-loading .bizzwishlist-icon {
	animation: bizzwishlist-pulse 1s infinite;
}

/* Loop Button */
.bizzwishlist-loop-button {
	padding: 6px 10px;
	margin-left: 5px;
	font-size: 16px;
}

.bizzwishlist-loop-button .bizzwishlist-text {
	display: none;
}

/* ==========================================================================
   Wishlist Page
   ========================================================================== */

.bizzwishlist-page-wrapper {
	margin: 24px 0;
}

.bizzwishlist-empty {
	text-align: center;
	padding: 48px 20px;
	background: #fafafa;
	border: 1px solid #eee;
	border-radius: 8px;
}

.bizzwishlist-empty p {
	font-size: 16px;
	color: #666;
	margin-bottom: 20px;
}

.bizzwishlist-empty .button {
	padding: 10px 28px;
	font-size: 14px;
	border-radius: 6px;
}

/* ==========================================================================
   Wishlist Counter (Header/Footer Badge)
   ========================================================================== */

.bizzwishlist-counter-wrapper {
	position: fixed;
	bottom: 20px;
	right: 20px;
	z-index: 9999;
}

.bizzwishlist-counter-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	background: #e2401c;
	color: #fff;
	border-radius: 50%;
	text-decoration: none;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
	position: relative;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bizzwishlist-counter-link:hover {
	transform: scale(1.1);
	color: #fff;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
}

.bizzwishlist-counter-icon {
	font-size: 22px;
	line-height: 1;
}

.bizzwishlist-counter-count {
	position: absolute;
	top: -4px;
	right: -4px;
	background: #333;
	color: #fff;
	border-radius: 50%;
	width: 22px;
	height: 22px;
	font-size: 11px;
	line-height: 22px;
	text-align: center;
	font-weight: 700;
}

/* ==========================================================================
   Notice
   ========================================================================== */

.bizzwishlist-notice {
	position: fixed;
	bottom: 80px;
	right: 20px;
	z-index: 99999;
	padding: 14px 22px;
	border-radius: 8px;
	font-size: 14px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
	opacity: 0;
	transform: translateY(10px);
	transition: opacity 0.3s ease, transform 0.3s ease;
	max-width: 320px;
}

.bizzwishlist-notice-visible {
	opacity: 1;
	transform: translateY(0);
}

.bizzwishlist-notice-success {
	background: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
}

.bizzwishlist-notice-error {
	background: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}

/* ==========================================================================
   Animations
   ========================================================================== */

@keyframes bizzwishlist-pulse {
	0%, 100% {
		transform: scale(1);
	}
	50% {
		transform: scale(1.3);
	}
}

/* ==========================================================================
   Popup Overlay
   ========================================================================== */

.bizzwishlist-popup-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.45);
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
}

.bizzwishlist-popup {
	background: #fff;
	border-radius: 10px;
	width: 90%;
	max-width: 480px;
	max-height: 80vh;
	display: flex;
	flex-direction: column;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
	position: relative;
}

.bizzwishlist-popup-close {
	position: absolute;
	top: 12px;
	right: 14px;
	background: none;
	border: none;
	font-size: 24px;
	cursor: pointer;
	color: #999;
	line-height: 1;
	padding: 0;
	transition: color 0.2s ease;
}

.bizzwishlist-popup-close:hover {
	color: #333;
}

.bizzwishlist-popup-header {
	padding: 18px 22px;
	border-bottom: 1px solid #eee;
}

.bizzwishlist-popup-header h3 {
	margin: 0;
	font-size: 17px;
	color: #333;
	font-weight: 600;
}

.bizzwishlist-popup-content {
	padding: 12px 22px;
	overflow-y: auto;
	flex: 1;
}

.bizzwishlist-popup-empty {
	text-align: center;
	color: #999;
	padding: 24px 0;
	font-size: 14px;
}

.bizzwishlist-popup-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.bizzwishlist-popup-item {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px 0;
	border-bottom: 1px solid #f0f0f0;
}

.bizzwishlist-popup-item:last-child {
	border-bottom: none;
}

.bizzwishlist-popup-item-image img {
	width: 50px;
	height: 50px;
	object-fit: cover;
	border-radius: 6px;
}

.bizzwishlist-popup-item-info {
	flex: 1;
	min-width: 0;
}

.bizzwishlist-popup-item-name {
	display: block;
	font-size: 13px;
	color: #333;
	text-decoration: none;
	font-weight: 500;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	transition: color 0.2s ease;
}

.bizzwishlist-popup-item-name:hover {
	color: #e2401c;
}

.bizzwishlist-popup-item-price {
	font-size: 12px;
	color: #666;
	margin-top: 2px;
}

.bizzwishlist-popup-item-actions {
	display: flex;
	align-items: center;
	gap: 8px;
}

.bizzwishlist-popup-cart-btn {
	font-size: 16px;
	text-decoration: none;
	cursor: pointer;
	opacity: 0.7;
	transition: opacity 0.2s ease;
}

.bizzwishlist-popup-cart-btn:hover {
	opacity: 1;
}

.bizzwishlist-popup-remove {
	background: none;
	border: none;
	font-size: 18px;
	cursor: pointer;
	color: #ccc;
	padding: 0;
	line-height: 1;
	transition: color 0.2s ease;
}

.bizzwishlist-popup-remove:hover {
	color: #e2401c;
}

.bizzwishlist-popup-footer {
	padding: 14px 22px;
	border-top: 1px solid #eee;
	text-align: center;
}
div.bizzwishlist-popup-footer a{padding: 9px 15px !important;margin: 0;}

.bizzwishlist-popup-view-all {
	display: inline-block;
	width: 100%;
	text-align: center;
}

/* ==========================================================================
   Share Bar
   ========================================================================== */

.bizzwishlist-share-bar {
	margin-bottom: 18px;
	text-align: right;
}

.bizzwishlist-share-btn {
	cursor: pointer;
	padding: 8px 18px;
	font-size: 14px;
	border-radius: 6px;
	transition: box-shadow 0.2s ease;
}

.bizzwishlist-share-btn:hover {
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   Shared Wishlist Notice
   ========================================================================== */

.bizzwishlist-shared-notice {
	background: #fff3cd;
	border: 1px solid #ffc107;
	border-radius: 6px;
	padding: 12px 18px;
	margin-bottom: 18px;
}

.bizzwishlist-shared-notice p {
	margin: 0;
	color: #856404;
	font-size: 14px;
}

/* ==========================================================================
   Popup Item Variation
   ========================================================================== */

.bizzwishlist-popup-item-variation {
	display: block;
	font-size: 10px;
	color: #888;
	font-style: italic;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media screen and (max-width: 768px) {
	.bizzwishlist-button {
		margin-left: 0;
		margin-top: 10px;
	}
}
