/* Toaster Styles */
.cf7-toaster-container {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 9999;
    max-width: 356px;
    width: 100%;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cf7-toast {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.05);
    min-width: 320px;
    opacity: 0;
    pointer-events: auto;
    position: relative;
    transform: translateX(calc(100% + 16px));
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.cf7-toast.show {
    opacity: 1;
    transform: translateX(0);
}

.cf7-toast.removing {
    opacity: 0;
    transform: translateX(calc(100% + 16px)) scale(0.95);
    transition: all 0.25s cubic-bezier(0.4, 0, 1, 1);
}

.cf7-toast-content {
    display: flex;
    align-items: flex-start;
    padding: 16px;
    gap: 12px;
    position: relative;
}

.cf7-toast-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cf7-toast-icon svg {
    width: 100%;
    height: 100%;
}

.cf7-toast-message {
    flex: 1;
    font-size: 14px;
    line-height: 1.4;
    color: #374151;
    margin: 0;
    font-weight: 500;
}

.cf7-toast-close {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    flex-shrink: 0;
    font-size: 18px;
    line-height: 1;
    padding: 2px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.15s ease;
    margin-top: -1px;
}

.cf7-toast-close:hover {
    background: rgba(0, 0, 0, 0.06);
    color: #374151;
}

.cf7-toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(0, 0, 0, 0.08);
}

.cf7-toast-progress-bar {
    height: 100%;
    width: 100%;
    background: currentColor;
    transform-origin: left;
    animation: toast-progress linear forwards;
    opacity: 0.8;
}

@keyframes toast-progress {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.cf7-toast-spinner {
    animation: spin 1s linear infinite;
}

/* Toast Types */
.cf7-toast-success {
    border-left: 3px solid #22c55e;
    color: #22c55e;
}

.cf7-toast-error {
    border-left: 3px solid #ef4444;
    color: #ef4444;
}

.cf7-toast-warning {
    border-left: 3px solid #f59e0b;
    color: #f59e0b;
}

.cf7-toast-info {
    border-left: 3px solid #3b82f6;
    color: #3b82f6;
}

.cf7-toast-loading {
    border-left: 3px solid #3b82f6;
    color: #3b82f6;
}

@media (max-width: 479px) {
    .cf7-toaster-container {
        top: 12px;
        right: 12px;
        left: 12px;
        max-width: none;
    }
    
    .cf7-toast {
        min-width: auto;
        transform: translateY(-100%);
    }
    
    .cf7-toast.show {
        transform: translateY(0);
    }
    
    .cf7-toast.removing {
        transform: translateY(-100%) scale(0.95);
    }
}
