/* Shopee Affiliate Popup */
#kvx-shopee-overlay {
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

#kvx-shopee-overlay.kvx-show {
    opacity: 1;
    visibility: visible;
}

.kvx-shopee-popup {
    background: #ffffff;
    max-width: 380px;
    width: 100%;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.kvx-shopee-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.kvx-shopee-img-wrap {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #ff7f50, #ff5722);
}

.kvx-shopee-img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    transform: scale(1.02);
    transition: transform 0.3s ease;
}

.kvx-shopee-popup:hover .kvx-shopee-img {
    transform: scale(1.05);
}

.kvx-shopee-content {
    padding: 14px 16px 16px;
    background: #ffffff;
}

.kvx-shopee-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: rgba(255, 87, 34, 0.08);
    color: #ff5722;
    margin-bottom: 8px;
}

.kvx-shopee-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff5722;
    margin-right: 6px;
}

.kvx-shopee-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 10px;
    color: #222222;
    line-height: 1.4;
}

.kvx-shopee-price-row {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    margin-bottom: 8px;
}

.kvx-shopee-price-main {
    font-size: 20px;
    font-weight: 700;
    color: #ff3b30;
    margin-right: 10px;
}

.kvx-shopee-price-old {
    font-size: 13px;
    color: #999999;
    text-decoration: line-through;
    margin-right: 8px;
}

.kvx-shopee-discount {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 6px;
    border-radius: 4px;
    background: #ffecec;
    color: #ff3b30;
}

.kvx-shopee-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 12px;
    color: #666666;
}

.kvx-shopee-meta-left {
    display: flex;
    align-items: center;
}

.kvx-shopee-flash {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    margin-right: 6px;
    background: linear-gradient(135deg, #ff9800, #ff5722);
    color: #ffffff;
    font-size: 11px;
}

.kvx-shopee-meta-right {
    font-size: 12px;
    color: #444444;
}

.kvx-shopee-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 93%;
    padding: 9px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff5722, #ff3b30);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    box-shadow: 0 10px 18px rgba(255, 87, 34, 0.35);
    border: none;
    outline: none;
}

.kvx-shopee-cta-icon {
    margin-right: 6px;
    font-size: 14px;
}

/* Close button */
.kvx-shopee-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: none;
    outline: none;
    background: rgba(0, 0, 0, 0.4);
    color: #ffffff;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
    z-index: 1;
}

.kvx-shopee-close:hover {
    background: rgba(0, 0, 0, 0.65);
    transform: translateY(-1px);
}

/* Small screens */
@media (max-width: 480px) {
    .kvx-shopee-popup {
        max-width: 360px;
    }

    .kvx-shopee-price-main {
        font-size: 18px;
    }

    .kvx-shopee-title {
        font-size: 14px;
    }
}
