// Wishlist Sidebar Styles
// Floating Button Styles
.wcps-floating-wishlist-btn,
.proddisp-floating-wishlist {
    position: fixed;
    z-index: 9999;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;

    &:hover {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    }

    &:active {
        transform: scale(0.95);
    }

    // Positions
    &.top-left {
        top: 20px;
        left: 20px;
    }

    &.top-right {
        top: 20px;
        right: 20px;
    }

    &.bottom-left {
        bottom: 20px;
        left: 20px;
    }

    &.bottom-right {
        bottom: 20px;
        right: 20px;
    }

    &.center-left {
        top: 50%;
        left: 20px;
        transform: translateY(-50%);

        &:hover {
            transform: translateY(-50%) scale(1.05);
        }
    }

    &.center-right {
        top: 50%;
        right: 20px;
        transform: translateY(-50%);

        &:hover {
            transform: translateY(-50%) scale(1.05);
        }
    }

    // Styles
    &.circle {
        border-radius: 50%;
    }

    &.rounded {
        border-radius: 12px;
    }

    &.square {
        border-radius: 4px;
    }

    // Sizes
    &.small {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    &.medium {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    &.large {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }

    .wcps-wishlist-count {
        position: absolute;
        top: -5px;
        right: -5px;
        background: #dc3545;
        color: white;
        border-radius: 50%;
        width: 20px;
        height: 20px;
        display: none;
        align-items: center;
        justify-content: center;
        font-size: 11px;
        font-weight: 600;
        line-height: 1;
    }

    @media (max-width: 768px) {
        &.small {
            width: 45px;
            height: 45px;
            font-size: 18px;
        }

        &.medium {
            width: 55px;
            height: 55px;
            font-size: 22px;
        }

        &.large {
            width: 65px;
            height: 65px;
            font-size: 26px;
        }

        &.top-left,
        &.top-right {
            top: 15px;
        }

        &.bottom-left,
        &.bottom-right {
            bottom: 15px;
        }

        &.top-left,
        &.bottom-left,
        &.center-left {
            left: 15px;
        }

        &.top-right,
        &.bottom-right,
        &.center-right {
            right: 15px;
        }
    }
}

// Sidebar Overlay
.wcps-wishlist-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    &.active {
        opacity: 1;
        visibility: visible;
    }
}

// Sidebar
.wcps-wishlist-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px; // Default width
    height: 100%;
    background: #ffffff;
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);

    &.active {
        transform: translateX(0) !important;
    }
}

// More specific rule to override any conflicts
.wcps-wishlist-sidebar.active {
    transform: translateX(0) !important;
    right: 0 !important;

    @media (max-width: 768px) {
        width: 100% !important;
        max-width: 400px;
    }

    @media (max-width: 480px) {
        max-width: 100%;
    }
}

// Sidebar Header
.wcps-wishlist-sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    position: relative;
    margin-top: 25px;

    &::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
    }

    h3 {
        margin: 0;
        font-size: 18px;
        font-weight: 700;
        color: #1a202c;
        display: flex;
        align-items: center;
        gap: 10px;

        i {
            color: #e91e63;
            font-size: 18px;
        }

        .wcps-wishlist-sidebar-count {
            font-size: 14px;
            color: #718096;
            font-weight: 500;
            background: #e2e8f0;
            padding: 2px 8px;
            border-radius: 12px;
        }
    }

    .wcps-wishlist-sidebar-close {
        background: #ffffff;
        border: 1px solid #e2e8f0;
        color: #718096;
        font-size: 16px;
        cursor: pointer;
        padding: 0;
        border-radius: 8px;
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);

        &:hover {
            background: #fee2e2;
            border-color: #fca5a5;
            color: #dc2626;
            transform: scale(1.05);
        }

        &:active {
            transform: scale(0.95);
        }
    }

    @media (max-width: 480px) {
        padding: 15px;

        h3 {
            font-size: 16px;
        }
    }
}