.afpwa-toast-container {
    position: fixed;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    max-width: 360px;
    width: calc(100% - 40px);
}

.afpwa-toast-container.top-right {
    top: 20px;
    right: 20px;
    align-items: flex-end;
}

.afpwa-toast-container.top-center {
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    align-items: center;
}

.afpwa-toast-container.bottom-right {
    bottom: 20px;
    right: 20px;
    align-items: flex-end;
    flex-direction: column-reverse;
}

.afpwa-toast-container.bottom-center {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    align-items: center;
    flex-direction: column-reverse;
}

.afpwa-toast {
    background: #ffffff;
    color: #1e1e1e;
    border-radius: 8px;
    padding: 14px 18px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    border-left: 5px solid #2271b1;
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    line-height: 1.4;
    min-width: 250px;
    max-width: 100%;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.afpwa-toast.visible {
    opacity: 1;
    transform: translateY(0);
}

.afpwa-toast.afpwa-toast-success {
    border-left-color: #00a32a;
}

.afpwa-toast.afpwa-toast-error {
    border-left-color: #d63638;
}

.afpwa-toast.afpwa-toast-warning {
    border-left-color: #dba617;
}

.afpwa-toast.afpwa-toast-info {
    border-left-color: #2271b1;
}

.afpwa-toast-icon {
    font-size: 18px;
    line-height: 1;
    flex-shrink: 0;
}

.afpwa-toast-message {
    flex: 1;
    word-break: break-word;
}

.afpwa-toast-close {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    padding: 0;
    flex-shrink: 0;
}

.afpwa-toast-close:hover {
    color: #000;
}

@media (prefers-color-scheme: dark) {
    .afpwa-toast {
        background: #1f1f1f;
        color: #f0f0f1;
    }
    .afpwa-toast-close {
        color: #aaa;
    }
}
