/*
|--------------------------------------------------------------------------
| ONLYUSED SÆLGERSTATUS & BADGES
|--------------------------------------------------------------------------
| - Dokan sælger-topbar i fuld bredde
| - Navn under profilbillede
| - Online/offline prik
| - Medlemskabs-diamanter
| - Aktivitetsbadges
|--------------------------------------------------------------------------
*/


/*
|--------------------------------------------------------------------------
| PRODUKTKORT BASIS
|--------------------------------------------------------------------------
*/

.woocommerce ul.products li.product,
.fusion-product-wrapper,
.fusion-clean-product-image-wrapper {
    position: relative;
}


/*
|--------------------------------------------------------------------------
| DOKAN SÆLGER TOPBAR
|--------------------------------------------------------------------------
*/

.dokan-seller-badge {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 30 !important;

    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 58px !important;

    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.97) 0%,
        rgba(255, 255, 255, 0.92) 42%,
        rgba(255, 255, 255, 0.58) 76%,
        rgba(255, 255, 255, 0) 100%
    ) !important;

    border-radius: 0 !important;
    padding: 6px 9px !important;
    box-shadow: none !important;

    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);

    text-align: left !important;
    overflow: visible !important;
}

.dokan-seller-badge > a {
    display: grid !important;
    grid-template-columns: 30px 1fr !important;
    grid-template-rows: 30px 16px !important;
    column-gap: 7px !important;
    row-gap: 1px !important;

    width: 100% !important;
    height: 100% !important;

    align-items: center !important;
    color: #111 !important;
    text-decoration: none !important;
}


/*
|--------------------------------------------------------------------------
| AVATAR
|--------------------------------------------------------------------------
*/

.dokan-seller-avatar {
    grid-column: 1 !important;
    grid-row: 1 !important;

    display: block !important;

    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;

    border-radius: 50% !important;
    object-fit: cover !important;
    border: 2px solid #fff !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.12) !important;
}


/*
|--------------------------------------------------------------------------
| SÆLGERNAVN + DIAMANT
|--------------------------------------------------------------------------
*/

.dokan-seller-name {
    grid-column: 1 / 3 !important;
    grid-row: 2 !important;

    display: block !important;
    margin: 0 !important;
    padding: 0 0 0 1px !important;

    max-width: 100% !important;
    overflow: hidden !important;

    color: #111 !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
    letter-spacing: 0 !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
}

.dokan-seller-name strong {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 5px !important;

    max-width: 100% !important;
    overflow: hidden !important;
}


/*
|--------------------------------------------------------------------------
| ONLINE / OFFLINE PRIK
|--------------------------------------------------------------------------
*/

.dokan-vendor-status-dot {
    position: absolute !important;
    left: 29px !important;
    top: 28px !important;

    display: block !important;
    width: 9px !important;
    height: 9px !important;

    border-radius: 50% !important;
    border: 2px solid #fff !important;
    z-index: 40 !important;
}

.dokan-vendor-status-dot.online {
    background: #18b34b !important;
    animation: ousbPulse 1.8s infinite ease-in-out;
}

.dokan-vendor-status-dot.offline {
    background: #d33 !important;
}

@keyframes ousbPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(24, 179, 75, 0.45);
    }

    70% {
        transform: scale(1.08);
        box-shadow: 0 0 0 7px rgba(24, 179, 75, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(24, 179, 75, 0);
    }
}


/*
|--------------------------------------------------------------------------
| MEDLEMSKABS-DIAMANTER
|--------------------------------------------------------------------------
*/

img.ousb-tier-img,
.dokan-seller-name img.ousb-tier-img {
    display: inline-block !important;

    width: 16px !important;
    height: 16px !important;
    max-width: 16px !important;
    max-height: 16px !important;

    object-fit: contain !important;
    vertical-align: middle !important;

    margin-left: 0 !important;
    flex-shrink: 0 !important;
}

img.ousb-tier-img--pro {
    filter: drop-shadow(0 0 3px rgba(212, 175, 55, 0.35));
}


/*
|--------------------------------------------------------------------------
| AKTIVITETSBADGES
|--------------------------------------------------------------------------
*/

.ousb-activity-badge-wrap {
    position: absolute !important;
    top: 6px !important;
    right: 8px !important;
    z-index: 35 !important;
}

.ousb-activity-badge {
    display: inline-block !important;

    padding: 4px 7px !important;
    border-radius: 999px !important;

    background: rgba(255, 255, 255, 0.94) !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.10) !important;

    font-size: 9px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;

    cursor: help;
}

.ousb-activity-new {
    color: #444 !important;
}

.ousb-activity-starter {
    color: #1663a7 !important;
}

.ousb-activity-active {
    color: #18794e !important;
}

.ousb-activity-popular {
    color: #a16207 !important;
}

.ousb-activity-top {
    color: #7c3aed !important;
}

.ousb-activity-elite {
    color: #7a5200 !important;
}


/*
|--------------------------------------------------------------------------
| MOBIL
|--------------------------------------------------------------------------
*/

@media (max-width: 768px) {

    .dokan-seller-badge {
        height: 52px !important;
        padding: 5px 7px !important;
    }

    .dokan-seller-badge > a {
        grid-template-columns: 26px 1fr !important;
        grid-template-rows: 26px 15px !important;
        column-gap: 6px !important;
        row-gap: 1px !important;
    }

    .dokan-seller-avatar {
        width: 26px !important;
        height: 26px !important;
        min-width: 26px !important;
    }

    .dokan-seller-name {
        font-size: 9px !important;
        padding-left: 1px !important;
    }

    .dokan-seller-name strong {
        gap: 4px !important;
    }

    .dokan-vendor-status-dot {
        left: 25px !important;
        top: 25px !important;

        width: 8px !important;
        height: 8px !important;
    }

    img.ousb-tier-img,
    .dokan-seller-name img.ousb-tier-img {
        width: 13px !important;
        height: 13px !important;
        max-width: 13px !important;
        max-height: 13px !important;
    }

    .ousb-activity-badge-wrap {
        top: 5px !important;
        right: 5px !important;
    }

    .ousb-activity-badge {
        font-size: 8px !important;
        padding: 3px 6px !important;
    }
}