.approval-download-widget {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 1085;
    width: 340px;
    max-width: calc(100vw - 32px);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(16, 24, 40, 0.18);
    border: 1px solid rgba(16, 24, 40, 0.08);
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(14px);
    transition: opacity .2s ease, transform .2s ease;
}

.approval-download-widget.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.approval-download-widget__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    color: #fff;
    background: linear-gradient(135deg, #5d78ff 0%, #7b61ff 100%);
}

.approval-download-widget__title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .01em;
}

.approval-download-widget__toggle {
    width: 26px;
    height: 26px;
    border: 0;
    border-radius: 9px;
    color: #fff;
    background: rgba(255, 255, 255, .18);
    line-height: 1;
    font-weight: 700;
}

.approval-download-widget__toggle:hover {
    background: rgba(255, 255, 255, .28);
}

.approval-download-widget__body {
    padding: 12px;
    max-height: 280px;
    overflow-y: auto;
}

.approval-download-widget.is-minimized {
    width: 240px;
}

.approval-download-widget.is-minimized .approval-download-widget__body {
    display: none;
}

.approval-download-item {
    padding: 10px;
    border-radius: 12px;
    background: #f7f9fc;
    border: 1px solid #edf0f5;
}

.approval-download-item + .approval-download-item {
    margin-top: 10px;
}

.approval-download-item__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.approval-download-item__actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.approval-download-item__cancel {
    width: 22px;
    height: 22px;
    border: 0;
    border-radius: 8px;
    color: #667085;
    background: rgba(16, 24, 40, 0.06);
    line-height: 1;
    font-size: 16px;
    font-weight: 700;
    padding: 0;
}

.approval-download-item__cancel:hover {
    color: #d92d20;
    background: rgba(217, 45, 32, 0.1);
}

.approval-download-item__name {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: #202837;
    font-size: 13px;
    font-weight: 700;
}

.approval-download-item__percent {
    color: #5d78ff;
    font-size: 12px;
    font-weight: 700;
}

.approval-download-item__bar {
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: #e8ecf5;
}

.approval-download-item__bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #5d78ff, #23c16b, #5d78ff);
    background-size: 180% 100%;
    animation: approval-download-progress 1.2s linear infinite;
    transition: width .25s ease;
}

@keyframes approval-download-progress {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 180% 0;
    }
}

.approval-download-item__message {
    margin-top: 7px;
    color: #667085;
    font-size: 12px;
}

.approval-download-item.is-error .approval-download-item__percent,
.approval-download-item.is-error .approval-download-item__message {
    color: #d92d20;
}

.approval-download-item.is-cancelled .approval-download-item__percent,
.approval-download-item.is-cancelled .approval-download-item__message {
    color: #667085;
}

.approval-download-item.is-error .approval-download-item__cancel,
.approval-download-item.is-cancelled .approval-download-item__cancel {
    color: #d92d20;
    background: rgba(217, 45, 32, 0.12);
    border: 1px solid rgba(217, 45, 32, 0.25);
}

.approval-download-item.is-error .approval-download-item__bar span,
.approval-download-item.is-cancelled .approval-download-item__bar span {
    animation: none;
    background: #d0d5dd;
}

body[data-color="1E202D"] .approval-download-widget,
body[data-color="1e202d"] .approval-download-widget {
    background: #252932;
    border-color: rgba(255, 255, 255, .08);
    box-shadow: 0 18px 45px rgba(0, 0, 0, .35);
}

body[data-color="1E202D"] .approval-download-item,
body[data-color="1e202d"] .approval-download-item {
    background: #1f2430;
    border-color: rgba(255, 255, 255, .08);
}

body[data-color="1E202D"] .approval-download-item__name,
body[data-color="1e202d"] .approval-download-item__name {
    color: #f4f7fb;
}

body[data-color="1E202D"] .approval-download-item__bar,
body[data-color="1e202d"] .approval-download-item__bar {
    background: rgba(255, 255, 255, .1);
}

body[data-color="1E202D"] .approval-download-item__message,
body[data-color="1e202d"] .approval-download-item__message {
    color: #b8c0cf;
}

body[data-color="1E202D"] .approval-download-item__cancel,
body[data-color="1e202d"] .approval-download-item__cancel {
    color: #b8c0cf;
    background: rgba(255, 255, 255, 0.08);
}

body[data-color="1E202D"] .approval-download-item__cancel:hover,
body[data-color="1e202d"] .approval-download-item__cancel:hover {
    color: #ff8a80;
    background: rgba(255, 138, 128, 0.12);
}

@media (max-width: 576px) {
    .approval-download-widget {
        right: 12px;
        bottom: 82px;
        width: calc(100vw - 24px);
    }
}
