
/* DROPEEGO — AFFILIATE NEWS */

.elementor-element-0f6a412 {
    cursor: pointer;
}

.elementor-element-0f6a412 .ecomus-icon-box__icon {
    position: relative;
}

.elementor-element-0f6a412 .dropeego-affiliate-news-count {
    position: absolute;
    top: -7px;
    right: -9px;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border: 2px solid #fff;
    border-radius: 20px;
    background: #F5773E;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
}

.elementor-element-0f6a412 .dropeego-affiliate-news-count[hidden] {
    display: none;
}

.elementor-element-0f6a412.affiliate-news-open {
    cursor: pointer;
}

/* Notification panel */

.dropeego-affiliate-news-panel {
    position: fixed;
    top: 100px;
    right: 30px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    width: 390px;
    max-width: calc(100vw - 30px);
    max-height: min(600px, calc(100vh - 130px));
    overflow: hidden;
    border: 1px solid rgba(55, 88, 109, 0.12);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(12px);
    transition:
        opacity 0.22s ease,
        transform 0.22s ease,
        visibility 0.22s ease;
}

.dropeego-affiliate-news-panel.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

/* Panel header */

.dropeego-affiliate-news-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 20px;
    border-bottom: 1px solid #edf0f2;
    background: #fff;
}

.dropeego-affiliate-news-heading {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dropeego-affiliate-news-heading strong {
    color: #37586D;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
}

.dropeego-affiliate-news-heading span {
    color: #888;
    font-size: 12px;
    line-height: 1.4;
}

.dropeego-affiliate-news-close {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f5f6f7;
    color: #37586D;
    font-size: 23px;
    line-height: 1;
    cursor: pointer;
    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.dropeego-affiliate-news-close:hover {
    background: #F5773E;
    color: #fff;
}

/* Notification list */

.dropeego-affiliate-news-list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.dropeego-affiliate-news-item {
    position: relative;
    padding: 17px 20px;
    border-bottom: 1px solid #f0f1f2;
    background: #fff;
    transition: background 0.2s ease;
}

.dropeego-affiliate-news-item:last-child {
    border-bottom: 0;
}

.dropeego-affiliate-news-item:hover {
    background: #fafbfc;
}

.dropeego-affiliate-news-item.is-unread {
    background: #fffaf7;
}

.dropeego-affiliate-news-item.is-unread::before {
    position: absolute;
    top: 21px;
    left: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #F5773E;
    content: "";
}

.dropeego-affiliate-news-item-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.dropeego-affiliate-news-title {
    color: #37586D;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
}

.dropeego-affiliate-news-date {
    flex: 0 0 auto;
    color: #999;
    font-size: 10px;
    line-height: 1.5;
    white-space: nowrap;
}

.dropeego-affiliate-news-excerpt {
    margin: 8px 0 0;
    color: #707070;
    font-size: 12px;
    line-height: 1.65;
}

.dropeego-affiliate-news-link {
    display: inline-block;
    margin-top: 10px;
    color: #37586D;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease;
}

.dropeego-affiliate-news-link:hover {
    color: #F5773E;
}

/* Empty state */

.dropeego-affiliate-news-empty {
    padding: 35px 20px;
    color: #999;
    font-size: 13px;
    text-align: center;
}

/* Tablet */

@media (max-width: 1024px) {
    .dropeego-affiliate-news-panel {
        top: 90px;
        right: 20px;
        width: 370px;
        max-height: calc(100vh - 110px);
    }
}

/* Mobile */

@media (max-width: 767px) {
    .dropeego-affiliate-news-panel {
        top: 75px;
        right: 10px;
        left: 10px;
        width: auto;
        max-width: none;
        max-height: calc(100vh - 90px);
        border-radius: 12px;
    }

    .dropeego-affiliate-news-header {
        padding: 16px;
    }

    .dropeego-affiliate-news-item {
        padding: 15px 16px;
    }

    .dropeego-affiliate-news-item.is-unread::before {
        left: 6px;
    }

    .dropeego-affiliate-news-title {
        font-size: 13px;
    }

    .dropeego-affiliate-news-excerpt {
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dropeego-affiliate-news-panel,
    .dropeego-affiliate-news-close,
    .dropeego-affiliate-news-link {
        transition: none;
    }
}
