/* Global font family for Custom Multi Wishlist UI */
.cmw-wishlist-display,
.cmw-all-wishlists,
.cmw-enhanced-wishlist-selector,
.cmw-share-modal,
.cmw-add-shared-modal,
.cmw-create-wishlist-modal,
.cmw-category-selection-modal {
    font-family: "Poppins",Sans-serif !important;
}

/* Guest wishlist view (shown to non-logged-in users on /wishlist) */
.cmw-guest-wishlist-view {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
}

select.cmw-copy-to-wishlist {
    font-size: 13px;
}

/* Loading state for copy select */
.cmw-copy-to-wishlist.cmw-loading {
	opacity: 0.6;
	background-image: linear-gradient(transparent, transparent);
	position: relative;
}
.cmw-copy-to-wishlist.cmw-loading:after {
	content: '';
	position: absolute;
	right: 10px;
	top: 50%;
	width: 14px;
	height: 14px;
	margin-top: -7px;
	border: 2px solid currentColor;
	border-top-color: transparent;
	border-radius: 50%;
	animation: cmw-spin 0.8s linear infinite;
}

/* Toast */
.cmw-toast {
	position: fixed;
	left: 50%;
	bottom: 20px;
	transform: translateX(-50%) translateY(20px);
	background: rgba(0,0,0,0.85);
	color: #fff;
	padding: 10px 16px;
	border-radius: 6px;
	font-size: 14px;
	opacity: 0;
	transition: opacity 200ms ease, transform 200ms ease;
	z-index: 99999;
}
.cmw-toast.visible {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}
.cmw-share-wishlist-btn.cmw-loading,
.cmw-add-shared-wishlist-confirm-btn.cmw-loading,
.cmw-add-shared-wishlist-btn.cmw-loading {
	position: relative;
	opacity: 0.7;
	pointer-events: none;
}

.cmw-share-wishlist-btn.cmw-loading:after,
.cmw-add-shared-wishlist-confirm-btn.cmw-loading:after,
.cmw-add-shared-wishlist-btn.cmw-loading:after {
	content: '';
	position: absolute;
	right: 10px;
	top: 50%;
	width: 14px;
	height: 14px;
	margin-top: -7px;
	border: 2px solid currentColor;
	border-top-color: transparent;
	border-radius: 50%;
	animation: cmw-spin 0.8s linear infinite;
}

@keyframes cmw-spin {
	to { transform: rotate(360deg); }
}
/* Custom Multi Wishlist Styles */

/* Layout for single wishlist page */
.cmw-wishlist-display {
    width: 100%;
    padding: 0 5%;
    margin: 80px 0;
}
/* Back button bar */
.cmw-back-bar {
	display: flex;
	justify-content: flex-start;
	align-items: center;
	padding: 12px 0;
}
.cmw-back-bar .cmw-back-button {
    appearance: none;
    background: #000000;
    color: #ffffff;
    padding: 8px 16px;
    /* border-radius: 6px; */
    cursor: pointer;
    transition: all .2s;
    font-size: 13px;
}
.cmw-back-bar .cmw-back-button:hover {
    background: #82A54B;
    color: #ffffff;
    border: none;
}

/* Header - remove gray background and borders, make it clean */
.cmw-wishlist-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 8px 0 16px 0;
	background: transparent;
	border: none;
}
.cmw-wishlist-title { margin: 0; display: flex; align-items: center; gap: 10px; }

.cmw-wishlist-name {
    cursor: pointer;
}

/* Products list in column (card vertical) */
.cmw-wishlist-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.cmw-wishlist-product:last-child { border-bottom: none; }

.cmw-product-details { display: flex; flex-direction: column; gap: 8px; padding: 15px 15px 20px; }

.cmw-product-title { 
    margin: 0; 
    font-size: 11px;
    font-weight: 500;
}

.cmw-product-title a {
    color: #333;
    text-decoration: none !important;
}

.cmw-product-title a:hover {
    color: #007cba;
}

.cmw-product-price { 
    margin: 0; 
    font-weight: 600; 
    color: #000000;
    font-size: 11px;
}

.cmw-product-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}
.cmw-actions-left { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cmw-actions-right { margin-left: auto; }

.cmw-remove-from-wishlist-btn {
    padding: 9px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.cmw-product-actions .cart .woocommerce-variation-add-to-cart .cmw-add-to-cart-btn {
    background-color: #007cba;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 6px 15px;
    font-size: 13px !important;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    line-height: 1.4;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Loading state for Add to Projects button */
.cmw-add-to-cart-btn.cmw-loading {
    opacity: 0.7;
    pointer-events: none;
    position: relative;
}
.cmw-add-to-cart-btn.cmw-loading:after {
    content: '';
    position: absolute;
    right: 10px;
    top: 50%;
    width: 14px;
    height: 14px;
    margin-top: -7px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: cmw-spin 0.8s linear infinite;
}

/* Loading overlay on cards/items */
.cmw-wishlist-card.cmw-loading,
.cmw-wishlist-product.cmw-loading {
    position: relative;
}
.cmw-wishlist-card.cmw-loading:after,
.cmw-wishlist-product.cmw-loading:after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 18px;
    height: 18px;
    margin-left: -9px;
    margin-top: -9px;
    border: 2px solid rgba(0,0,0,0.6);
    border-top-color: transparent;
    border-radius: 50%;
    animation: cmw-spin 0.8s linear infinite;
    z-index: 2;
}
.cmw-wishlist-card.cmw-loading:before,
.cmw-wishlist-product.cmw-loading:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.6);
    z-index: 1;
}

.cmw-product-actions .cart .woocommerce-variation-add-to-cart .cmw-add-to-cart-btn:hover {
    background-color: #005a87;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.cmw-product-actions .cart .woocommerce-variation-add-to-cart .cmw-add-to-cart-btn:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
    box-shadow: none;
}

.cmw-product-actions .cart .woocommerce-variation-add-to-cart .cmw-add-to-cart-btn.added {
    background-color: #28a745;
    cursor: default;
}

.cmw-product-actions .cart .woocommerce-variation-add-to-cart .cmw-add-to-cart-btn.added:hover {
    transform: none;
    box-shadow: none;
}

.cmw-remove-from-wishlist-btn {
    background-color: transparent;
    color: #000;
}

.cmw-remove-from-wishlist-btn:hover {
    background-color: transparent;
    color: #000;
}

.cmw-move-to-wishlist {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
}

/* Wishlist Selector */
.cmw-wishlist-selector {
    margin: 20px 0;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f8f9fa;
}

.cmw-selector-header h4 {
    margin: 0 0 15px 0;
    color: #333;
}

.cmw-wishlist-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.cmw-wishlist-btn {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s;
}

.cmw-wishlist-btn:hover {
    background-color: #e9ecef;
}

.cmw-wishlist-btn.cmw-in-wishlist {
    background-color: #82a54b;
    color: white;
    border-color: #82a54b;
}

.cmw-wishlist-btn.cmw-in-wishlist:hover {
    background-color: #82a54b;
}

.cmw-create-wishlist {
    display: flex;
    gap: 10px;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #ddd;
}

.cmw-new-wishlist-name {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.cmw-create-wishlist-btn {
    padding: 8px 16px;
    background-color: #6c757d;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.cmw-create-wishlist-btn:hover {
    background-color: #5a6268;
}

.cmw-create-wishlist-btn:disabled {
    background-color: #adb5bd;
    cursor: not-allowed;
}

/* All Wishlists Display */
.cmw-all-wishlists {
    margin: 20px 0;
}

.cmw-all-wishlists-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.cmw-all-wishlists-header h1 {
    margin: 0;
    color: #333;
}

.cmw-shared-by {
    font-size: 12px;
    color: #242424;
    margin-top: 4px;
}

.cmw-search-container {
    display: flex;
    align-items: center;
}
.cmw-search-input {
    width: 100%;
    max-width: 280px;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
}

.cmw-create-new-wishlist-btn {
    padding: 12px 24px;
    background-color: #007cba;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.2s;
}

.cmw-create-new-wishlist-btn:hover {
    background-color: #005a87;
}

.cmw-wishlists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.cmw-wishlist-card {
    border: 1px solid #ddd;
    overflow: hidden;
    background: white;
    transition: box-shadow 0.2s;
    position: relative;
}

.cmw-wishlist-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.cmw-create-new-card {
    background: #000;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: end;
    min-height: 250px;
}

.cmw-create-new-card:hover {
    background: #000;
    box-shadow: 10px 10px 5px #d9e8ec;
}

.cmw-create-new-content {
    color: #fff !important;
    padding: 20px;
}

.cmw-create-new-card:hover {
    color: #000;
}

.cmw-create-new-icon {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #fff;
}

.cmw-create-new-content h3 {
    margin: 0 0 5px 0;
    color: #fff !important;
    font-size: 20px !important;
}

.cmw-create-new-content p {
    margin: 0;
    font-size: 13px;
    color: #fff;
}

/* Add New Product Card Styles - Mimicking Create New Card */
.cmw-add-new-product-card {
    background: #000;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: end;
    min-height: 389px;
}

.cmw-add-new-product-card:hover {
    background: #000;
    box-shadow: 10px 10px 5px #d9e8ec;
}

.cmw-add-new-product-card .cmw-create-new-content {
    color: #fff !important;
    padding: 20px;
}

.cmw-add-new-product-card:hover .cmw-create-new-content {
    color: #000;
}

.cmw-add-new-product-card .cmw-create-new-icon {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #fff;
}

/* Admin User Type Badges */
.cmw-user-type-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cmw-user-type-badge.trade-user {
    background: #e3f2fd;
    color: #1976d2;
    border: 1px solid #bbdefb;
}

.cmw-user-type-badge.regular-customer {
    background: #f3e5f5;
    color: #7b1fa2;
    border: 1px solid #e1bee7;
}

/* Share Wishlist Styles */

.cmw-share-wishlist-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.cmw-share-wishlist-btn:hover {
    background: #82a54b;
}

.cmw-share-wishlist-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Share Modal Styles */
.cmw-share-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cmw-share-modal .cmw-modal-content {
    background: white;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.cmw-share-modal .cmw-modal-header {
    padding: 20px 20px 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cmw-share-modal .cmw-modal-header h3 {
    margin: 0;
    font-size: 20px !important;
    color: #333;
}

.cmw-share-modal .cmw-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cmw-share-modal .cmw-modal-close:hover {
    color: #333;
}

.cmw-share-modal .cmw-modal-body {
    padding: 20px;
}

.cmw-share-url-container {
    display: flex;
    gap: 10px;
    margin: 15px 0;
}

.cmw-share-url-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: #f9f9f9;
    margin: 0px !important;
    border-radius: 0px !important;
}

.cmw-copy-url-btn {
    background: #007cba;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.cmw-copy-url-btn:hover {
    background: #005a87;
}

.cmw-share-info {
    background: #f0f8ff;
    padding: 15px;
    border-radius: 4px;
    border-left: 4px solid #007cba;
}

.cmw-share-info p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.cmw-share-modal .cmw-modal-footer {
    padding: 0 20px 20px 20px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.cmw-modal-close-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.cmw-modal-close-btn:hover {
    background: #5a6268;
}

/* Shared Wishlist Display Styles */
.cmw-shared-wishlist-display {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.cmw-shared-wishlist-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.cmw-shared-wishlist-title {
    font-size: 28px;
    color: #333;
    margin: 0 0 10px 0;
}

.cmw-shared-by {
    color: #666;
    font-size: 16px;
    margin: 0;
}

.cmw-shared-wishlist-actions {
    display: flex;
    gap: 10px;
}

.cmw-add-shared-wishlist-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cmw-add-shared-wishlist-btn:hover {
    background: #82a54b;
}

.cmw-add-shared-wishlist-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.cmw-login-required {
    background: #fff3cd;
    padding: 15px;
    border-radius: 4px;
    border-left: 4px solid #ffc107;
}

.cmw-login-required p {
    margin: 0;
    color: #856404;
}

.cmw-login-required a {
    color: #007cba;
    text-decoration: none;
    font-weight: 500;
}

.cmw-login-required a:hover {
    text-decoration: underline;
}

.cmw-shared-wishlist-error {
    text-align: center;
    padding: 60px 20px;
    max-width: 600px;
    margin: 0 auto;
}

.cmw-shared-wishlist-error h2 {
    color: #dc3545;
    margin-bottom: 20px;
}

.cmw-back-to-wishlists {
    display: inline-block;
    background: #007cba;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    margin-top: 20px;
}

.cmw-back-to-wishlists:hover {
    background: #005a87;
    color: white;
    text-decoration: none;
}

/* Add Shared Wishlist Modal */
.cmw-add-shared-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cmw-add-shared-modal .cmw-modal-content {
    background: white;
    max-width: 400px;
    width: 90%;
}

.cmw-modal-content .cmw-modal-footer {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.cmw-new-wishlist-name-container {
    margin: 15px 0;
}

.cmw-wishlist-card-header {
    padding: 15px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cmw-wishlist-card-header h3 {
    margin: 0;
    color: #333 !important;
    font-size: 20px !important;
}

.cmw-default-badge {
    background: #28a745;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: normal;
}

.cmw-wishlist-preview-image {
    margin-bottom: -7px;
    text-align: center;
}

.cmw-empty-text{
    margin-top: -46px;
}

.cmw-wishlist-preview-image img,  .cmw-empty-image{
    width: 100%;
    height: 250px !important;
    object-fit: cover;
    border-radius: 6px;
    transition: transform 0.2s;
}

.cmw-wishlist-preview-image:hover img {
    transform: scale(1.02);
}

.cmw-wishlist-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

.cmw-wishlist-preview {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.cmw-preview-product img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
}

.cmw-more-products {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: #f8f9fa;
    border-radius: 4px;
    color: #666;
    font-size: 12px;
}

.cmw-empty-wishlist {
    text-align: center;
    color: #999;
    font-style: italic;
}

.cmw-wishlist-card-actions {
    padding: 5px 8px;
    background: #f8f9fa;
    border-top: 1px solid #ddd;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: space-between;
}

.cmw-wishlist-card-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cmw-wishlist-card-actions h4 {
    font-size: 19px;
    margin: 0;
    align-self: center;
}

.cmw-wishlist-card-buttons .cmw-view-wishlist-btn {
    padding: 5px 10px 5px 5px !important;
    font-size: 13px !important;
}

.cmw-view-wishlist-btn,
.cmw-edit-wishlist-btn,
.cmw-delete-wishlist-btn {
    padding: 5px 8px;
    border: none;
    cursor: pointer;
    font-size: 20px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: all 0.2s;
    background-color: #000;
    color: white !important;
}

.cmw-view-wishlist-btn:hover {
    background-color: #000;
    color: white !important;
}

.cmw-edit-wishlist-btn {
    background-color: #6c757d;
    color: white;
}

.cmw-edit-wishlist-btn:hover {
    background-color: #5a6268;
}

.cmw-delete-wishlist-btn {
    position: absolute;
    top: 0;
    right: 0;
    background-color: transparent;
    color: #000;
    width: 42px;
    height: 42px;
    border-radius: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    line-height: 1;
    border: none;
    box-shadow: none;
    z-index: 10;
    transition: all 0.2s ease;
}

.cmw-delete-wishlist-btn:hover {
    background-color: transparent;
    transform: scale(1.05);
    box-shadow: none;
}

.cmw-delete-icon {
    font-weight: 900;
    line-height: 1;
    font-size: 24px;
}

/* Create Wishlist Modal */
.cmw-create-wishlist-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.cmw-add-to-wishlist-trigger-btn-container {
    display: flex;
    justify-content:end
}

@media (min-width: 768px) {
    .cmw-enhanced-wishlist-selector {
        max-width: 90%;
    }
}

.cmw-modal-content {
    background: white;
    padding: 30px;
    min-width: 400px;
    text-align: center;
}

.cmw-modal-content h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 20px !important;
}

.cmw-modal-content p {
    font-size: 13px !important;
}

.cmw-modal-content .cmw-new-wishlist-name {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 13px;
}

.cmw-modal-actions {
    display: flex;
    gap: 15px;
    justify-content: space-between;
}

.cmw-cancel-btn,
.cmw-create-btn {
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.2s;
}

.cmw-cancel-btn {
    background-color: #6c757d;
    color: white;
}

.cmw-cancel-btn:hover {
    background-color: #5a6268;
}

.cmw-create-btn {
    background-color: #007cba;
    color: white;
}

.cmw-create-btn:hover {
    background-color: #005a87;
}

/* Category Selection Modal */
.cmw-category-selection-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.cmw-category-dropdown {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 16px;
    background-color: white;
}

.cmw-category-dropdown:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0,124,186,0.2);
}

.cmw-explore-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.2s;
    background-color: #82a54b;
    color: white;
}

.cmw-explore-btn:hover:not(:disabled) {
    background-color: #82a54b;
}

.cmw-explore-btn:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

/* Enhanced Wishlist Selector - Multi-Step Form */
.cmw-enhanced-wishlist-selector {
    margin: 20px 0;
    position: relative;
}

/* Step 1: Add to Wishlist Button */
.cmw-add-to-wishlist-trigger-btn:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

.cmw-variation-required {
    margin-bottom: 15px;    
}

.cmw-variation-message {
    color: #dc3545;
    font-size: 14px;
    margin-bottom: 10px;
    font-weight: 500;
}

.cmw-add-to-wishlist-trigger-btn:hover {
    background-color: #005a87;
    transform: translateY(-1px);
}

/* Step 2: Wishlist Selection Modal */
.cmw-wishlist-selection-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.cmw-wishlist-selection-modal .cmw-modal-content {
    background: white;
    padding: 30px;
    min-width: 600px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.cmw-wishlist-selection-modal h3 {
    margin: 0 0 20px 0;
    color: #333;
    text-align: center;
    font-size: 20px;
}

.cmw-wishlist-selection-modal h4 {
    margin: 0 0 10px 0;
    color: #555;
    font-size: 16px;
}

.cmw-existing-wishlists {
    margin-bottom: 25px;
}

.cmw-wishlist-dropdown {
    width: 100%;
    padding: 8px;
    border: 1px solid #272727;
    border-radius: 6px;
    font-size: 16px;
    background-color: white;
    margin-bottom: 10px;
}

.cmw-wishlist-dropdown:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0,124,186,0.2);
}

.cmw-create-new-section {
    margin-bottom: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.cmw-new-wishlist-name:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0,124,186,0.2);
}

.cmw-wishlist-selection-modal .cmw-modal-actions {
    display: flex;
    gap: 15px;
    justify-content: space-between;
}

.cmw-wishlist-selection-modal .cmw-add-to-wishlist-btn:hover:not(:disabled) {
    background-color: #82a54b;
}

.cmw-wishlist-selection-modal .cmw-add-to-wishlist-btn:disabled {
    background-color: #b1cd83;
    cursor: not-allowed;
}

/* Step 3: Success Message - Popup Style */
.cmw-step-3 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.cmw-success-message {
    text-align: center;
    padding: 40px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    max-width: 520px;
    margin: 0 auto;
    position: relative;
}

.cmw-success-icon {
    width: 40px;
    height: 40px;
    background-color: #82a54b;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    margin: 0 auto 20px;
}

.cmw-success-message h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 20px !important;
}

.cmw-success-message p {
    margin: 0 0 30px 0;
    color: #666;
    font-size: 13px !important;
}

.cmw-success-actions {
    display: flex;
    gap: 15px;
    justify-content: space-between;
    flex-wrap: wrap;
}

.cmw-success-actions .cmw-view-wishlist-btn {
    background-color: #82a54b !important;
    color: white;
    text-decoration: none;
}

.cmw-continue-shopping-btn {
    padding: 12px 24px;
    background-color: #6c757d;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.2s;
}

.cmw-continue-shopping-btn:hover {
    background-color: #5a6268;
}

.cmw-no-wishlists {
    margin-bottom: 25px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 6px;
    text-align: center;
}

.cmw-no-wishlists p {
    margin: 0;
    color: #666;
    font-style: italic;
}

.cmw-selector-header h4 {
    margin: 0 0 10px 0;
    color: #333;
}

.cmw-selector-header p {
    margin: 0 0 20px 0;
    color: #666;
}

.cmw-wishlist-status {
    margin-bottom: 20px;
    padding: 15px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.cmw-current-wishlists {
    margin-bottom: 10px;
}

.cmw-wishlist-tag {
    display: inline-block;
    background: #e9ecef;
    padding: 4px 8px;
    border-radius: 4px;
    margin: 2px;
    font-size: 14px;
}

.cmw-remove-from-wishlist-btn {
    background: white !important;
    color: black !important;
    line-height: 1;
    margin-left: 8px;
    cursor: pointer;
    font-size: 12px !important;
}

.cmw-wishlist-actions {
    display: grid;
    gap: 20px;
}

.cmw-add-to-wishlist-section,
.cmw-create-wishlist-section {
    background: white;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.cmw-add-to-wishlist-section h5,
.cmw-create-wishlist-section h5 {
    margin: 0 0 15px 0;
    color: #333;
}

.cmw-wishlist-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cmw-add-to-wishlist-btn {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s;
    font-size: 14px;
}

.cmw-add-to-wishlist-btn:hover {
    background-color: #e9ecef;
}

.cmw-create-wishlist-form {
    display: flex;
    gap: 10px;
}

.cmw-create-wishlist-form input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.cmw-create-wishlist-btn {
    padding: 10px 20px;
    background-color: #007cba;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.cmw-create-wishlist-btn:hover {
    background-color: #005a87;
}

.cmw-wishlist-links {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.cmw-manage-wishlists-link {
    color: #007cba;
    text-decoration: none;
    font-weight: 500;
}

.cmw-manage-wishlists-link:hover {
    text-decoration: underline;
}
.cmw-wishlist-product {
    border: 1px solid #acacac !important;
}
.cmw-wishlist-product .cmw-product-image {
    position: relative;
}
.cmw-wishlist-product .cmw-product-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

/* Grouped by Location - Single Wishlist */
.cmw-wishlist-products-by-location {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 20px;
    margin-bottom: 20px;
}
.cmw-location-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.cmw-location-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    text-transform: capitalize;
}
.cmw-slider-nav button {
    background: #000;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 13px;
}
.cmw-location-slider {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 8px;
}
.cmw-location-slider .cmw-wishlist-product,
.cmw-location-slider .cmw-wishlist-card.cmw-add-new-product-card {
    min-width: 300px;
    max-width: 300px;
    flex: 0 0 auto;
}
@media (max-width: 768px) {
	.cmw-location-slider .cmw-wishlist-product,
	.cmw-location-slider .cmw-wishlist-card.cmw-add-new-product-card {
		min-width: 240px;
		max-width: 240px;
	}
}

/* Step 2 - Location selection inside modal */
.cmw-location-selection {
    margin: 20px 0;
    padding-top: 10px;
    border-top: 1px solid #eee;
}
.cmw-location-dropdown {
    width: 100%;
    padding: 8px;
    border: 1px solid #272727;
    border-radius: 6px;
    font-size: 16px;
    background-color: white;
    margin-bottom: 10px;
}
.cmw-location-dropdown:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0,124,186,0.2);
}
.cmw-new-location-name {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-top: 8px;
    font-size: 13px;
}
.cmw-wishlist-selection-modal .selectTitle {
    margin: 10px 0;
    font-size: 16px !important;
}
.cmw-wishlist-selection-modal .bottomSpacer {
    margin-bottom: 10px;
}
.cmw-wishlist-selection-modal .topSpacer {
    display: inline-block;
    margin: 6px 0;
}
button.cmw-remove-from-wishlist-btn {
    position: absolute;
    right: 0;
    top: 0;
    font-weight: 900 !important;
    font-size: 24px !important;
    height: 42px;
    width: 42px;
    background: transparent !important;
    border: none !important;
}
.cmw-brand {
    font-size: 9px;
    color: #1d1d1d;
    font-weight: 500;
}
.cmw-product-actions {
    align-items: center;
}
a.cmw-product-url {
    background: #000;
    color: #ffffff !important;
    font-size: 14px;
    text-decoration: none !important;
    display: flex;
    justify-content: center;
    padding: 5px 8px;
}
button.cmw-delete-wishlist-btn {
    background: transparent !important;
    color: #000000 !important;
    display: flex;
    gap: 6px;
    font-size: 15px !important;
}

button.cmw-delete-wishlist-btn:hover {
    color: #000 !important;
}
button.cmw-edit-name-btn {
    background: transparent !important;
    color: #000 !important;
    padding: 0;
}
button.cmw-edit-name-btn span
{
    font-size: 30px;
}
/* Responsive Design */
@media (max-width: 768px) {
    .cmw-wishlist-product { grid-template-columns: 72px 1fr; }
    .cmw-product-image img { width: 72px; height: 72px; }
    
    .cmw-wishlist-product {
        flex-direction: column;
        gap: 15px;
    }
    
    .cmw-product-actions {
        flex-direction: column;
    }
    
    .cmw-create-wishlist {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cmw-all-wishlists-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .cmw-wishlists-grid {
        grid-template-columns: 1fr;
    }
    
    .cmw-wishlist-actions {
        grid-template-columns: 1fr;
    }
    
    .cmw-modal-content {
        min-width: 90%;
        margin: 20px;
    }
    
    .cmw-modal-actions {
        flex-direction: column;
    }
    
    .cmw-wishlist-preview-image img {
        height: 150px;
    }
    
    /* Multi-step form responsive */
    .cmw-wishlist-selection-modal .cmw-modal-content {
        min-width: 90%;
        margin: 20px;
        padding: 20px;
    }
    
    .cmw-success-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .cmw-success-actions .cmw-view-wishlist-btn,
    .cmw-continue-shopping-btn {
        width: 100%;
        max-width: 200px;
    }

    .cmw-share-url-container {
        flex-direction: column;
    }
}

.cmw-share-restriction-note {
	margin-top: 8px;
	font-size: 13px;
	color: #856404;
	background: #fff3cd;
	border-left: 4px solid #ffc107;
	padding: 8px 10px;
	border-radius: 4px;
	display: inline-block;
}

/* Unified button style for Custom Multi Wishlist UI (applies last to standardize) */
.cmw-add-to-wishlist-trigger-btn,
.cmw-add-new-product-btn,
.cmw-share-wishlist-btn,
.cmw-add-shared-wishlist-btn,
.cmw-add-shared-wishlist-confirm-btn,
.cmw-copy-url-btn,
.cmw-modal-close-btn,
.cmw-cancel-btn,
.cmw-create-btn,
.cmw-explore-btn,
.cmw-wishlist-selection-modal .cmw-cancel-btn,
.cmw-wishlist-selection-modal .cmw-add-to-wishlist-btn,
.cmw-success-actions .cmw-view-wishlist-btn,
.cmw-create-new-wishlist-btn,
.cmw-continue-shopping-btn,
.cmw-add-to-cart-btn,
.cmw-modal-cancel-btn,
.cmw-modal-explore-btn {
	background-color: #121313;
	color: white;
	border: none;
	padding: 8px 16px;
	font-size: 13px !important;
	font-weight: 500;
	cursor: pointer;
	text-decoration: none;
	display: inline-block;
	line-height: 1.4;
}

/* Standardize select sizing across plugin */
.cmw-wishlist-dropdown,
.cmw-category-dropdown,
select.cmw-copy-to-wishlist {
	font-size: 13px;
}
