:root {
    --scw-brand: #16a34a;
    --scw-brand-dark: #0f7a35;
    --scw-black: #111111;
    --scw-text: #111827;
    --scw-muted: #6b7280;
    --scw-border: #eeeeee;
    --scw-soft-bg: #f3f4f6;

    --scw-heart-default-bg: #ffffff;
    --scw-heart-default-color: #111111;

    --scw-heart-active-bg: #16a34a;
    --scw-heart-active-color: #ffffff;
}

.scw-wrapper {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Header Wishlist Button */

.scw-header-btn {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 1px solid black !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    color: var(--scw-black) !important;
    cursor: pointer !important;
    position: relative !important;
    font-size: 18px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    text-decoration: none !important;
    outline: none !important;
    overflow: visible !important;
    transition: all 0.25s ease !important;
}

.scw-header-btn i {
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 18px !important;
    line-height: 1 !important;
    color: inherit !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.scw-header-btn:hover {
    transform: translateY(-2px) !important;
    color: var(--scw-brand) !important;
    background: #ffffff !important;
    box-shadow: 2px 2px 5px rgba(17, 24, 39, 0.18) !important;
}

.scw-count {
    position: absolute !important;
    top: -5px !important;
    right: -5px !important;
    min-width: 19px !important;
    height: 19px !important;
    background: var(--scw-brand) !important;
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    padding: 0 5px !important;
    border-radius: 999px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 2px solid #ffffff !important;
    line-height: 1 !important;
    box-shadow: none !important;
}

/* Product Heart Button */

.scw-heart {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    max-width: 44px !important;
    max-height: 44px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    cursor: pointer !important;
    border-radius: 50% !important;
    background: var(--scw-heart-default-bg) !important;
    color: var(--scw-heart-default-color) !important;
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.12) !important;
    font-size: 18px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    line-height: 1 !important;
    text-decoration: none !important;
    outline: none !important;
    transition: all 0.25s ease !important;
    overflow: visible !important;
    z-index: 20 !important;
}

.scw-heart i {
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 18px !important;
    line-height: 1 !important;
    color: inherit !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.scw-heart:hover {
    transform: translateY(-2px) scale(1.03) !important;
    color: var(--scw-brand) !important;
    background: var(--scw-heart-default-bg) !important;
    box-shadow: 0 14px 34px rgba(17, 24, 39, 0.18) !important;
}

.scw-heart.is-active {
    background: var(--scw-heart-active-bg) !important;
    color: var(--scw-heart-active-color) !important;
    box-shadow: 0 12px 34px rgba(22, 163, 74, 0.32) !important;
}

.scw-heart.is-active:hover {
    background: var(--scw-brand-dark) !important;
    color: #ffffff !important;
}

.scw-heart.is-active i {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
}

/* Added / Removed Tooltip */

.scw-tooltip {
    position: absolute !important;
    left: 50% !important;
    bottom: calc(100% + 13px) !important;
    transform: translateX(-50%) translateY(6px) !important;
    background: var(--scw-black) !important;
    color: #ffffff !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    padding: 9px 13px !important;
    border-radius: 999px !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: all 0.25s ease !important;
    z-index: 2147483647 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25) !important;
}

.scw-tooltip::after {
    content: "" !important;
    position: absolute !important;
    left: 50% !important;
    top: 100% !important;
    transform: translateX(-50%) !important;
    border-width: 6px !important;
    border-style: solid !important;
    border-color: var(--scw-black) transparent transparent transparent !important;
}

.scw-heart.show-tooltip {
    z-index: 2147483646 !important;
}

.scw-heart.show-tooltip .scw-tooltip {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(-50%) translateY(0) !important;
}

/* Desktop Dropdown */

.scw-dropdown {
    display: none;
    position: absolute !important;
    left: 50% !important;
    top: calc(100% + 16px) !important;
    transform: translateX(-50%) translateY(10px) !important;
    width: 350px !important;
    max-width: calc(100vw - 24px) !important;
    background: #ffffff !important;
    border-radius: 18px !important;
    overflow: visible !important;
    box-shadow: 0 22px 60px rgba(17, 24, 39, 0.20) !important;
    z-index: 999999 !important;
    opacity: 0;
    border: 1px solid rgba(17, 24, 39, 0.07) !important;
}

/* Desktop top arrow */

.scw-dropdown::before {
    content: "" !important;
    position: absolute !important;
    top: -8px !important;
    left: 50% !important;
    width: 16px !important;
    height: 16px !important;
    background: #ffffff !important;
    transform: translateX(-50%) rotate(45deg) !important;
    border-left: 1px solid rgba(17, 24, 39, 0.07) !important;
    border-top: 1px solid rgba(17, 24, 39, 0.07) !important;
    z-index: 1 !important;
}

.scw-dropdown.open {
    display: block !important;
    animation: scwDropIn 0.22s ease forwards !important;
}

@keyframes scwDropIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.scw-dropdown-head {
    position: relative !important;
    z-index: 2 !important;
    padding: 13px 14px 10px !important;
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    border-bottom: 1px solid var(--scw-border) !important;
    background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%) !important;
    border-radius: 18px 18px 0 0 !important;
}

.scw-dropdown-head h4 {
    margin: 0 !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    color: var(--scw-text) !important;
}

.scw-dropdown-head p {
    margin: 3px 0 0 !important;
    font-size: 11px !important;
    color: var(--scw-muted) !important;
}

/* Close Button */

.scw-close {
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    min-height: 26px !important;
    max-width: 26px !important;
    max-height: 26px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 50% !important;
    background: var(--scw-black) !important;
    color: #ffffff !important;
    cursor: pointer !important;
    font-size: 11px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    text-decoration: none !important;
    outline: none !important;
    box-shadow: none !important;
    transition: all 0.2s ease !important;
}

.scw-close i {
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 11px !important;
    line-height: 1 !important;
    color: inherit !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.scw-close:hover {
    background: var(--scw-brand) !important;
    color: #ffffff !important;
    transform: rotate(90deg) !important;
}

.scw-items {
    position: relative !important;
    z-index: 2 !important;
    max-height: 360px !important;
    overflow-y: auto !important;
    background: #ffffff !important;
    border-radius: 0 0 18px 18px !important;
}

.scw-items::-webkit-scrollbar {
    width: 5px !important;
}

.scw-items::-webkit-scrollbar-thumb {
    background: #d1d5db !important;
    border-radius: 20px !important;
}

/* Empty State */

.scw-empty {
    padding: 26px 18px !important;
    text-align: center !important;
}

.scw-empty-icon {
    width: 44px !important;
    height: 44px !important;
    margin: 0 auto 10px !important;
    border-radius: 50% !important;
    background: rgba(22, 163, 74, 0.10) !important;
    color: var(--scw-brand) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px !important;
}

.scw-empty-icon i {
    color: inherit !important;
    font-size: 18px !important;
    line-height: 1 !important;
}

.scw-empty h4 {
    margin: 0 0 5px !important;
    font-size: 14px !important;
    color: var(--scw-text) !important;
}

.scw-empty p {
    margin: 0 !important;
    font-size: 12px !important;
    color: var(--scw-muted) !important;
}

/* Wishlist Items - Compact Minimalist */

.scw-item {
    display: flex !important;
    gap: 8px !important;
    padding: 8px 10px !important;
    min-height: 58px !important;
    border-bottom: 1px solid #f1f1f1 !important;
    align-items: center !important;
    background: #ffffff !important;
    transition: background 0.2s ease !important;
}

.scw-item:hover {
    background: #fafafa !important;
}

.scw-item:last-child {
    border-bottom: none !important;
}

.scw-image-link {
    width: 48px !important;
    height: 48px !important;
    flex: 0 0 48px !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    background: var(--scw-soft-bg) !important;
    display: block !important;
    text-decoration: none !important;
}

.scw-image-link img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    transition: transform 0.25s ease !important;
}

.scw-image-link:hover img {
    transform: scale(1.06) !important;
}

.scw-content {
    flex: 1 !important;
    min-width: 0 !important;
}

.scw-title {
    display: -webkit-box !important;
    -webkit-line-clamp: 1 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    margin-bottom: 3px !important;
    line-height: 1.2 !important;
}

.scw-title a {
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    color: var(--scw-text) !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

.scw-title a:hover {
    color: var(--scw-brand) !important;
}

.scw-price {
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
    color: var(--scw-text) !important;
}

/* Remove Button */

.scw-remove {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 50% !important;
    background: var(--scw-black) !important;
    color: #ffffff !important;
    cursor: pointer !important;
    font-size: 10px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
    flex: 0 0 24px !important;
    line-height: 1 !important;
    text-decoration: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.scw-remove i {
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 10px !important;
    line-height: 1 !important;
    color: inherit !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.scw-remove:hover {
    background: var(--scw-brand) !important;
    color: #ffffff !important;
    transform: scale(1.06) !important;
}

/* Mobile Backdrop */

.scw-mobile-backdrop {
    display: none !important;
}

body.scw-drawer-active {
    overflow: hidden !important;
}

/* Mobile Slide Panel Animation */

@keyframes scwMobilePanelIn {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}

/* Mobile Slide Panel */

@media (max-width: 768px) {

    .scw-mobile-backdrop {
        display: block !important;
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        background: rgba(0, 0, 0, 0.42) !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        transition: all 0.25s ease !important;
        z-index: 2147482000 !important;
    }

    .scw-mobile-backdrop.open {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }

    .scw-header-btn {
        width: 39px !important;
        height: 39px !important;
        min-width: 39px !important;
        min-height: 39px !important;
        max-width: 39px !important;
        max-height: 39px !important;
        font-size: 17px !important;
    }

    .scw-header-btn i {
        font-size: 17px !important;
    }

    .scw-heart {
        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important;
        min-height: 42px !important;
        max-width: 42px !important;
        max-height: 42px !important;
    }

    .scw-dropdown {
        display: flex !important;
        flex-direction: column !important;

        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        left: auto !important;
        bottom: auto !important;

        width: 88vw !important;
        max-width: 380px !important;
        height: 100vh !important;

        border-radius: 22px 0 0 22px !important;
        background: #ffffff !important;

        transform: translateX(100%) !important;
        opacity: 1 !important;
        visibility: hidden !important;
        pointer-events: none !important;

        box-shadow: -18px 0 55px rgba(17, 24, 39, 0.25) !important;
        z-index: 2147483000 !important;

        overflow: hidden !important;
        border: none !important;
        animation: none !important;
    }

    .scw-dropdown.open {
        transform: translateX(0) !important;
        visibility: visible !important;
        pointer-events: auto !important;
        animation: scwMobilePanelIn 0.28s ease forwards !important;
    }

    .scw-dropdown::before {
        display: none !important;
        content: none !important;
    }

    .scw-dropdown-head {
        flex: 0 0 auto !important;
        padding: 16px 16px 13px !important;
        border-radius: 22px 0 0 0 !important;
        background: #ffffff !important;
        box-shadow: 0 8px 22px rgba(17, 24, 39, 0.06) !important;
    }

    .scw-dropdown-head h4 {
        font-size: 15px !important;
    }

    .scw-dropdown-head p {
        font-size: 11.5px !important;
    }

    .scw-close {
        width: 30px !important;
        height: 30px !important;
        min-width: 30px !important;
        min-height: 30px !important;
        max-width: 30px !important;
        max-height: 30px !important;
        font-size: 12px !important;
    }

    .scw-close i {
        font-size: 12px !important;
    }

    .scw-items {
        flex: 1 1 auto !important;
        max-height: none !important;
        height: auto !important;
        overflow-y: auto !important;
        border-radius: 0 !important;
        padding-bottom: 18px !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .scw-item {
        padding: 9px 11px !important;
        gap: 8px !important;
        min-height: 56px !important;
    }

    .scw-image-link {
        width: 46px !important;
        height: 46px !important;
        flex: 0 0 46px !important;
        border-radius: 10px !important;
    }

    .scw-title {
        margin-bottom: 3px !important;
        -webkit-line-clamp: 1 !important;
    }

    .scw-title a {
        font-size: 12px !important;
        line-height: 1.2 !important;
    }

    .scw-price {
        font-size: 11px !important;
        line-height: 1.1 !important;
    }

    .scw-remove {
        width: 24px !important;
        height: 24px !important;
        min-width: 24px !important;
        min-height: 24px !important;
        max-width: 24px !important;
        max-height: 24px !important;
        flex: 0 0 24px !important;
        font-size: 10px !important;
    }

    .scw-remove i {
        font-size: 10px !important;
    }

    .scw-empty {
        padding: 40px 22px !important;
    }

    .scw-empty-icon {
        width: 48px !important;
        height: 48px !important;
        font-size: 19px !important;
    }

    .scw-empty-icon i {
        font-size: 19px !important;
    }

    .scw-empty h4 {
        font-size: 15px !important;
    }

    .scw-empty p {
        font-size: 12px !important;
    }
}