body .woocommerce-error.message-wrapper:focus {
    outline-width: 0 !important;
}

body .woocommerce-message:focus {
    outline-width: 0 !important;
}


.wcmw-wishlist {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.wcmw-avatar-img img {
    width: 100px;
    border-radius: 99px;
    margin-bottom: 20px;
}

.wcmw-files-upload-model {
    display: none !important;
}

.wcmw-container {
    max-width: 100%;
    padding: 20px;
    box-sizing: border-box;
    margin-bottom: 40px;
}

.wcmw-front .wcmw-container {
    margin-bottom: 0;
}

.wcmw-files-upload {
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    z-index: -1;
}

.wcmw-files-label {
    font-weight: 700;
    color: white !important;
    display: inline-block !important;
    background-color: #201330;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    height: auto;
    cursor: pointer;
}

#wcmw-max-upload {
    display: block;
    font-size: 12px;
    margin-bottom: 30px;
}

.wcmw-header {
    position: relative;
    background-color: #e3dffa;
    /* soft purple */
    border-radius: 16px;
    height: 16rem;
    width: 100%;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: top;
}

.wcmw-header-edit-icon {
    position: absolute;
    top: 12px;
    right: 12px;
}

.wcmw-edit-btn,
.wcmw-avatar-edit-btn {
    background-color: #6c7a89;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    overflow: hidden;
    cursor: pointer;
    min-height: auto !important;
}

.wcmw-edit-btn img,
.wcmw-avatar-edit-btn img {
    width: 14px;
    height: 14px;
}

.wcmw-avatar-container {
    position: absolute;
    left: 20px;
    bottom: -50px;
    display: flex;
    flex-direction: column;
    align-items: center;
}


.wcmw-avatar-wrapper {
    position: relative;
    width: 90px;
    height: 90px;
}



.wcmw-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 4px solid #fff;
    object-fit: cover;
    background-color: #b0bdc7;
    /* fallback if no image */
}



.wcmw-avatar-edit-btn {
    position: absolute;
    top: 0;
    right: 0;
}

.wcmw-avatar-text {
    margin-top: 6px;
    font-size: 13px;
    color: #5f7d95;
    text-align: center;

}

#validation-errors {
    margin-bottom: 30px;
}

/* Spinner container (centers it over avatar) */
.wcmw-avatar-spinner {
    position: absolute;
    top: 0;
    left: 0;
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    z-index: 2;
}

/* Spinner animation */
.wcmw-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid #ccc;
    border-top-color: #7b2da4;
    /* your brand color */
    border-radius: 50%;
    animation: wcmw-spin 0.6s linear infinite;
}

@keyframes wcmw-spin {
    to {
        transform: rotate(360deg);
    }
}


/* Spinner overlay for header */
.wcmw-header-spinner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.6);
    z-index: 5;
}

/* Reuse spinner style */
.wcmw-banner-spinner {
    width: 24px;
    height: 24px;
    border: 2px solid #ccc;
    border-top-color: #7b2da4;
    border-radius: 50%;
    animation: wcmw-spin 0.6s linear infinite;
}

@keyframes wcmw-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive tweak */
@media (max-width: 500px) {
    .wcmw-avatar-wrapper {
        width: 70px;
        height: 70px;
    }

    .wcmw-avatar {
        width: 70px;
        height: 70px;
    }

    .wcmw-avatar-text {
        font-size: 12px;
    }
}





/*  Front end styles*/
.wcmw-header-front {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}



.wcmw-header-image-front {
    width: 100%;
    max-height: 300px;
    min-height: 250px;
    object-fit: cover;
    display: block;
    border-radius: 16px;
}

.wcmw-header-content-front {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: -60px;
    padding: 0 20px;
    flex-wrap: wrap;
}

.wcmw-header-left-front {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
}

.wcmw-avatar-front {
    width: 111px;
    height: 111px;
    border-radius: 50%;
    border: 4px solid white;
    object-fit: cover;
}

.wcmw-header-text-front {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.wcmw-header-name-front {
    font-size: 20px;
    font-weight: 700;
    color: #000;
}

.wcmw-header-username-front {
    font-size: 14px;
    color: #666;
}

.wcmw-header-actions-front {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: -40px;
}

.wcmw-header-icon-btn-front {
    background-color: #f2f2f2;
    border: none;
    border-radius: 999px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
}

.wcmw-header-icon-btn-front img {
    width: 16px;
    height: 16px;
}

.wcmw-header-share-btn-front {
    background-color: #22ff88;
    color: #000;
    font-weight: 600;
    border: none;
    border-radius: 999px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 14px;
}

.wcmw-header-share-btn-front .dashicons {
    padding-top: 6px;
}

/* Responsive */
@media (max-width: 600px) {
    .wcmw-header-content-front {

        margin-top: -36px;
        gap: 10px;
    }



    .wcmw-header-share-btn-front {
        padding: 6px 12px;
        font-size: 13px;
    }

    .wcmw-header-icon-btn-front {
        width: 32px;
        height: 32px;
    }

    .wcmw-header-left-front {
        align-items: flex-start;
        text-align: left;
    }

    .wcmw-avatar-front {
        width: 80px;
        height: 80px;

    }

    .wcmw-header-actions-front {
        gap: 6px;
        margin-top: 0;
    }

    .wcmw-header-image-front {

        min-height: 145px;

    }
}


/* Wishlist navigation  */

.wcmw-wishlist-container {
    padding: 20px;
    overflow-x: hidden;
}

.wcmw-wishlist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.wcmw-wishlist-tabs {
    display: flex;
    gap: 16px;
}

.wcmw-tab {
    font-size: 1.5rem;
    font-weight: 600;
    color: #999;
    cursor: pointer;
}

.wcmw-tab.wcmw-tab-active {
    font-weight: 700;
    color: #000;
}

.wcmw-fan-suggestions-btn {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    padding: 4px 16px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.04);
}

.wcmw-wishlist-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
}

.wcmw-wishlist-scroll::-webkit-scrollbar {
    height: 6px;
}

.wcmw-wishlist-scroll::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 3px;
}

/* Wishlist card (All, Collection, Add) */
.wcmw-wishlist-card {
    width: 115px;
    height: 130px;
    background-color: #f8f8f8;
    border-radius: 12px;
    text-align: center;

    font-size: 14px;
    position: relative;
    flex: 0 0 auto;
    box-sizing: border-box;
}

/* "All My Wishes" special style */
.wcmw-wishlist-card.all {
    border: 2px solid #000;
}

.wcmw-wishlist-card.add {
    border: 2px dashed #ccc;
}

.wcmw-wishlist-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.wcmw-wishlist-text {
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.2;
    padding-top: 10px;
}

.wcmw-wishlist-count {
    font-size: 12px;
    color: #999;
    font-family: monospace;
}

.wcmw-wishlist-label {
    font-weight: 700;
    color: #fff;
    position: absolute;
    bottom: 8px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 13px;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

/* Add Collection */
.wcmw-wishlist-plus {
    font-size: 24px;
    font-weight: bold;
    color: #666;
}

/* Remove Button */
.wcmw-remove-btn {
    position: absolute;
    top: 4px;
    left: 4px;
    background: #fff;
    border: none;
    border-radius: 999px;
    width: 20px;
    height: 20px;
    font-size: 14px;
    cursor: pointer;
    padding: 0;
    line-height: 20px;
    text-align: center;
}

/* Product Section */

.wcmw-product-section {
    padding: 20px;
    max-width: 100%;
    box-sizing: border-box;
}

.wcmw-product-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-start;
}

/* Add Wish Card */
.wcmw-card-add {
    width: 220px;
    height: 340px;
    border: 2px dashed #dcdcdc;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #444;
    text-align: center;
    flex: 0 0 auto;
}

.wcmw-add-icon {
    font-size: 40px;
    color: #6a35ff;
    margin-bottom: 12px;
}

.wcmw-add-text {
    font-weight: 600;
    font-size: 16px;
}

/* Product Card */
.wcmw-card-product {
    width: 280px;
    border-radius: 16px;
    border: 1px solid #e0e0e0;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
    flex: 0 0 auto;
    position: relative;
}

.wcmw-card-remove {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #fff;
    border: none;
    border-radius: 999px;
    width: 24px;
    height: 24px;
    font-size: 16px;
    line-height: 22px;
    cursor: pointer;
    z-index: 2;
}

.wcmw-product-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    background-color: #f9f9f9;

    box-sizing: border-box;
}

.wcmw-product-details {
    padding: 12px 16px;
}

.wcmw-product-title {
    font-weight: 600;
    font-size: 15px;
    line-height: 1.3;
    margin-bottom: 4px;
    color: #222;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wcmw-product-brand {
    font-size: 12px;
    color: #888;
    margin-bottom: 4px;
}

.wcmw-product-price {
    font-weight: 600;
    margin-bottom: 4px;
}

.wcmw-badge {
    font-size: 10px;
    color: #008000;
    background: #e4f9e4;
    border: 1px solid #88dd88;
    padding: 2px 4px;
    border-radius: 4px;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 10px;
}

/* Action Icons */
.wcmw-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.wcmw-icon-btn {
    background: #f2f2f2;
    border: none;
    border-radius: 999px;
    width: 32px;
    height: 32px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Add to Cart Button */
.wcmw-add-cart-btn {
    background: #6a35ff;
    color: #fff;
    font-weight: 600;
    border: none;
    border-radius: 999px;
    padding: 10px;
    width: 100%;
    font-size: 14px;
    cursor: pointer;
}

/* Footer Section */
.wcmw-product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.wcmw-footer-left {
    font-size: 14px;
    color: #555;
}

.wcmw-footer-right {
    margin-top: 8px;
}

.wcmw-select {
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 999px;
    font-size: 14px;
    cursor: pointer;
    background: #fff;
}

/* Mobile: switch to 2-column grid layout */
@media (max-width: 600px) {
    .wcmw-product-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .wcmw-card-add,
    .wcmw-card-product {
        width: 100%;
        /* make sure grid controls the width */
    }

    .wcmw-product-img {
        height: 100%;
        min-height: 150px;
        max-height: 185px;
    }
}



.wcmw-dropdown-container {
    position: relative;
    display: inline-block;
    font-family: sans-serif;
    width: 100%;
    max-width: 250px;
}

.wcmw-dropdown-toggle {
    padding: 8px 12px;
    border: 1px solid #ccc;
    background: white;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

.wcmw-dropdown-arrow {
    margin-left: 10px;
    font-size: 10px;
}

.wcmw-dropdown-menu {
    margin-top: 4px;
    width: 100%;
    background: white;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 8px 0;
    display: none;
    position: absolute;
    z-index: 1000;
    box-sizing: border-box;
}

.wcmw-dropdown-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    cursor: pointer;
    position: relative;
}

.wcmw-dropdown-item:hover {
    background-color: #f2f2f2;
}

.wcmw-list-thumb {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    object-fit: cover;
    margin-right: 10px;
    flex-shrink: 0;
}

.wcmw-list-text {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.wcmw-list-title {
    font-weight: 600;
    font-size: 14px;
}

.wcmw-list-privacy {
    font-size: 12px;
    color: #777;
}

/* Checkmark for selected */
.wcmw-checkmark {
    font-size: 14px;
    color: #4caf50;
    display: none;
}

.wcmw-dropdown-item.wcmw-selected .wcmw-checkmark {
    display: inline-block;
}

/* Disabled item */
.wcmw-dropdown-item.wcmw-disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Create list */
.wcmw-dropdown-create {
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #0073e6;
    cursor: pointer;
    border-top: 1px solid #eee;
    margin-top: 4px;
}

.wcmw-dropdown-create:hover {
    background-color: #f9f9f9;
}

.wcmw-create-icon {
    font-size: 16px;
}

/* Scrollbar (optional for long lists) */
.wcmw-dropdown-menu::-webkit-scrollbar {
    width: 6px;
}

.wcmw-dropdown-menu::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.wcmw-dropdown-menu {
    max-height: 300px;
    overflow-y: auto;
}

/* Mobile responsiveness */
@media (max-width: 480px) {
    .wcmw-dropdown-container {
        width: 100%;
    }

    .wcmw-dropdown-toggle {
        width: 100%;
    }

    .wcmw-dropdown-menu {
        width: 100vw;
        left: 0 !important;
        right: 0;
        border-radius: 0;
        box-shadow: none;
    }
}

.wcmw-create-text {
    background: none;
    border: none;
    color: #0073e6;
    font-size: 14px;
    padding: 0;
    cursor: pointer;
    text-align: left;
}




/* form css */
.wcmw-modal_form select {
    font-size: 0.875rem;
    line-height: 1.25rem;
    max-height: none;
    min-height: initial;
    padding: 0.6875rem 2rem 0.6875rem 1rem;
    border: 1px solid #9092b2;
    border-radius: 3px;
    color: #242748;
    font-family: inherit;
    transition: box-shadow 0.15s ease, background-color 0.15s ease;
}


.wcmw-modal_form input[type="email"],
.wcmw-modal_form input[type="number"],
.wcmw-modal_form input[type="password"],
.wcmw-modal_form input[type="text"],
.wcmw-modal_form input[type="search"],
.wcmw-modal_form input[type="url"],
.wcmw-modal_form input[type="tel"],
.wcmw-modal_form select,
.wcmw-modal_form textarea {
    background-color: #fff;
    border: 1px solid #9092b2;
    border-radius: 3px;
    color: #242748;
    font-family: inherit;
    font-size: 0.875rem;
    line-height: 1.25rem;
    padding: 0.6875rem 1rem;
    transition: box-shadow 0.15s ease, background-color 0.15s ease;
    width: 100%;

}



.wcmw-modal_form input[type="email"]:focus,
.wcmw-modal_form input[type="number"]:focus,
.wcmw-modal_form input[type="password"]:focus,
.wcmw-modal_form input[type="text"]:focus,
.wcmw-modal_form input[type="url"]:focus,
.wcmw-modal_form input[type="tel"]:focus,
.wcmw-modal_form select:focus,
.wcmw-modal_form textarea:focus {
    border: 1px solid #3178c5;
    box-shadow: 0 0.125rem 0.0675rem rgba(28, 31, 63, 0.0634624), 0 0 0 2px #bed8ed;
    color: #242748;
}