.scope-toast {
    width: 392px;
    min-height: 44px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 10px;
    background: #292929;
    box-shadow: 0 8px 24px rgba(39, 39, 42, 0.08);
    color: #ffffff;
}

.scope-toast:has(.scope-toast__action) {
    padding-right: 10px;
}

.scope-toast:not(:has(.scope-toast__action)) {
    padding-right: 44px;
}

.scope-toast:has([data-description]) {
    align-items: flex-start;
}

.scope-toast__icon {
    margin-top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.scope-toast__icon svg {
    display: block;
}

.scope-toast:has([data-description]) .scope-toast__icon {
    margin-top: 2px;
}

.scope-toast__title {
    padding-right: 4px;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 500;
    color: #ffffff;
}

.scope-toast__description {
    margin-top: 3px;
    padding-right: 4px;
    font-size: 12px;
    line-height: 1.35;
    color: #9b9ba1;
}

.scope-toast__action {
    margin-left: auto;
    margin-top: 1px;
    height: 34px;
    min-width: 74px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.95);
    font-size: 12px;
    line-height: 1;
    font-weight: 500;
}

.scope-toast__close {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    appearance: none;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    color: #9b9ba1;
    cursor: pointer;
}

.scope-toast:has([data-description]) .scope-toast__close {
    top: 12px;
    transform: none;
}

.scope-toast__close:hover {
    color: #c5c5cb;
    background: transparent;
}

.scope-toast__close svg {
    width: 20px;
    height: 20px;
}

.scope-toast [data-close-button='true'],
.scope-toast [data-close-button='true']:hover,
.scope-toast [data-close-button='true']:focus,
.scope-toast [data-close-button='true']:active {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    cursor: pointer !important;
}

.scope-toast[data-type='success'] .scope-toast__icon {
    color: #22c55e;
}

.scope-toast[data-type='warning'] .scope-toast__icon {
    color: #ff6f00;
}

.scope-toast[data-type='info'] .scope-toast__icon {
    color: #3b82f6;
}

.scope-toast[data-type='error'] .scope-toast__icon {
    color: #ef4444;
}
